-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathlatin-replacements.ts
56 lines (56 loc) · 2.3 KB
/
latin-replacements.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
* Latin replacements. Note that accents are not included here, as they are handled by
* calling normalize("NFKD") and removing non alpha numeric characters.
*/
export class LatinReplacements {
/**
* The latin replacements singleton.
*/
public static Value: Map<string, string[]> = new Map<string, string[]>([
['a', ['ᶏ', 'ⱥ', 'ɑ', 'ᴀ', 'ɐ', 'ɒ']],
['aa', ['å', 'ꜳ']],
['ae', ['ä', 'æ', 'ᴁ', 'ᴭ', 'ᵆ', 'ǽ', 'ǣ', 'ᴂ']],
['ao', ['ꜵ']],
['au', ['ꜷ']],
['av', ['ꜹ', 'ꜻ']],
['ay', ['ꜽ']],
['b', ['ƀ', 'ɓ', 'ƃ', 'ᵬ', 'ᶀ', 'ʙ']],
['c', ['ȼ', 'ƈ', 'ɕ', 'ᴄ', 'ꜿ', 'ↄ']],
['d', ['đ', 'ð', 'ɖ', 'ɗ', 'ƌ', 'ᵭ', 'ᶁ', 'ᶑ', 'ȡ', 'ᴅ', 'ꝺ']],
['db', ['ȸ']],
['e', ['ᶒ', 'ɇ', 'ⱸ', 'ᴇ', 'ə', 'ǝ', 'ɛ']],
['eo', ['ᴔ']],
['f', ['ƒ', 'ᵮ', 'ᶂ', 'ꜰ', 'ꝼ']],
['g', ['ǥ', 'ɠ', 'ᶃ', 'ɢ', 'ȝ', 'ŋ', 'ꞡ', 'ᵹ', 'ꝿ']],
['h', ['ħ', 'ⱨ', 'ɦ', 'ʜ', '̃', 'ɧ', 'ⱶ', 'ɥ']],
['hv', ['ƕ']],
['i', ['ɨ', 'ᵻ', 'ᶖ', 'ı', 'ɪ', 'ɩ']],
['j', ['ɉ', 'ȷ', 'ʝ', 'ɟ', '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