unicode-to-plain-text
Version:
Convert fancy Unicode text to plain ASCII with smart language preservation
31 lines (30 loc) • 502 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MIRRORED_LETTER_SWAPS = exports.MIRRORED_MAP = void 0;
exports.MIRRORED_MAP = {
ɘ: 'e',
ꙅ: 's',
ᴎ: 'n',
ꟻ: 'F',
ᴙ: 'r',
ꟼ: 'P',
Я: 'R',
ↄ: 'c',
ϱ: 'g',
ʜ: 'h',
į: 'i',
ɿ: 'r',
ƨ: 's',
ᙠ: 'C',
Ꙅ: 'S'
};
exports.MIRRORED_LETTER_SWAPS = {
b: 'd',
d: 'b',
p: 'q',
q: 'p',
B: 'D',
D: 'B',
P: 'Q',
Q: 'P'
};