Skip to content

Commit

Permalink
Separate common characters from charset-specific ones (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored Mar 24, 2021
1 parent b86dde4 commit 6acf7d9
Showing 1 changed file with 34 additions and 56 deletions.
90 changes: 34 additions & 56 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,38 @@ const escapeStringRegexp = require('escape-string-regexp');

const {platform} = process;

const common = {
bullet: '●',
dot: '․',
line: '─',
ellipsis: '…',
pointerSmall: '›',
heart: '♥',
arrowUp: '↑',
arrowDown: '↓',
arrowLeft: '←',
arrowRight: '→',
arrowLeftRight: '↔',
arrowUpDown: '↕',
oneHalf: '½',
oneThird: '⅓',
oneQuarter: '¼',
oneFifth: '⅕',
oneSixth: '⅙',
oneEighth: '⅛',
twoThirds: '⅔',
twoFifths: '⅖',
threeQuarters: '¾',
threeFifths: '⅗',
threeEighths: '⅜',
fourFifths: '⅘',
fiveSixths: '⅚',
fiveEighths: '⅝',
sevenEighths: '⅞'
};

const main = {
...common,
tick: '✔',
cross: '✖',
star: '★',
Expand All @@ -19,53 +50,27 @@ const main = {
circleCross: 'ⓧ',
circlePipe: 'Ⓘ',
circleQuestionMark: '?⃝',
bullet: '●',
dot: '․',
line: '─',
ellipsis: '…',
pointer: '❯',
pointerSmall: '›',
info: 'ℹ',
warning: '⚠',
hamburger: '☰',
smiley: '㋡',
mustache: '෴',
heart: '♥',
nodejs: '⬢',
arrowUp: '↑',
arrowDown: '↓',
arrowLeft: '←',
arrowRight: '→',
arrowLeftRight: '↔',
arrowUpDown: '↕',
radioOn: '◉',
radioOff: '◯',
checkboxOn: '☒',
checkboxOff: '☐',
checkboxCircleOn: 'ⓧ',
checkboxCircleOff: 'Ⓘ',
questionMarkPrefix: '?⃝',
oneHalf: '½',
oneThird: '⅓',
oneQuarter: '¼',
oneFifth: '⅕',
oneSixth: '⅙',
oneSeventh: '⅐',
oneEighth: '⅛',
oneNinth: '⅑',
oneTenth: '⅒',
twoThirds: '⅔',
twoFifths: '⅖',
threeQuarters: '¾',
threeFifths: '⅗',
threeEighths: '⅜',
fourFifths: '⅘',
fiveSixths: '⅚',
fiveEighths: '⅝',
sevenEighths: '⅞'
oneTenth: '⅒'
};

const fallback = {
...common,
tick: '√',
cross: '×',
star: '✶',
Expand All @@ -81,50 +86,23 @@ const fallback = {
circleCross: '(×)',
circlePipe: '(│)',
circleQuestionMark: '(?)',
bullet: main.bullet,
dot: main.dot,
line: main.line,
ellipsis: main.ellipsis,
pointer: '>',
pointerSmall: main.pointerSmall,
info: 'i',
warning: '‼',
hamburger: '≡',
smiley: '☺',
mustache: '┌─┐',
heart: main.heart,
nodejs: '♦',
arrowUp: main.arrowUp,
arrowDown: main.arrowDown,
arrowLeft: main.arrowLeft,
arrowRight: main.arrowRight,
arrowLeftRight: main.arrowLeftRight,
arrowUpDown: main.arrowUpDown,
radioOn: '(*)',
radioOff: '( )',
checkboxOn: '[×]',
checkboxOff: '[ ]',
checkboxCircleOn: '(×)',
checkboxCircleOff: '( )',
questionMarkPrefix: '?',
oneHalf: main.oneHalf,
oneThird: main.oneThird,
oneQuarter: main.oneQuarter,
oneFifth: main.oneFifth,
oneSixth: main.oneSixth,
oneSeventh: '1/7',
oneEighth: main.oneEighth,
oneNinth: '1/9',
oneTenth: '1/10',
twoThirds: main.twoThirds,
twoFifths: main.twoFifths,
threeQuarters: main.threeQuarters,
threeFifths: main.threeFifths,
threeEighths: main.threeEighths,
fourFifths: main.fourFifths,
fiveSixths: main.fiveSixths,
fiveEighths: main.fiveEighths,
sevenEighths: main.sevenEighths
oneTenth: '1/10'
};

if (platform === 'linux') {
Expand Down

0 comments on commit 6acf7d9

Please sign in to comment.