-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhomographs.js
180 lines (179 loc) · 10.9 KB
/
homographs.js
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
// https://en.wikipedia.org/wiki/IDN_homograph_attack
// https://unicode.org/cldr/utility/character.jsp
// http://shapecatcher.com
var homographs = {
'a' : [ '\u{1d5ba}', // 𝖺 MATHEMATICAL SANS-SERIF SMALL A
'\uff41', // a FULLWIDTH LATIN SMALL LETTER A
'\u0430' ], // а CYRILLIC SMALL LETTER A
'b' : [ '\u{1d5bb}', // 𝖻 MATHEMATICAL SANS-SERIF SMALL B
'\uff42' ], // b FULLWIDTH LATIN SMALL LETTER B
'c' : [ '\u{1d5bc}', // 𝖼 MATHEMATICAL SANS-SERIF SMALL C
'\uff43', // c FULLWIDTH LATIN SMALL LETTER C
'\u0441', // с CYRILLIC SMALL LETTER ES
'\u03f2' ], // ϲ GREEK LUNATE SIGMA SYMBOL
'd' : [ '\u{1d5bd}', // 𝖽 MATHEMATICAL SANS-SERIF SMALL D
'\uff44', // d FULLWIDTH LATIN SMALL LETTER D
'\u217e' ], // ⅾ SMALL ROMAN NUMERAL FIVE HUNDRED
'e' : [ '\u{1d5be}', // 𝖾 MATHEMATICAL SANS-SERIF SMALL E
'\uff45', // e FULLWIDTH LATIN SMALL LETTER E
'\u0435' ], // е CYRILLIC SMALL LETTER IE
'f' : [ '\u{1d5bf}', // 𝖿 MATHEMATICAL SANS-SERIF SMALL F
'\uff46' ], // f FULLWIDTH LATIN SMALL LETTER F
'g' : [ '\u{1d5c0}', // 𝗀 MATHEMATICAL SANS-SERIF SMALL G
'\uff47', // g FULLWIDTH LATIN SMALL LETTER G
'\u0261' ], // ɡ LATIN SMALL LETTER SCRIPT G
'h' : [ '\u{1d5c1}', // 𝗁 MATHEMATICAL SANS-SERIF SMALL H
'\uff48' ], // h FULLWIDTH LATIN SMALL LETTER H
'i' : [ '\u{1d5c2}', // 𝗂 MATHEMATICAL SANS-SERIF SMALL I
'\uff49', // i FULLWIDTH LATIN SMALL LETTER I
'\u0456' ], // і CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
'j' : [ '\u{1d5c3}', // 𝗃 MATHEMATICAL SANS-SERIF SMALL J
'\uff4a', // j FULLWIDTH LATIN SMALL LETTER J
'\u0458', // ј CYRILLIC SMALL LETTER JE
'\u03f3' ], // ϳ GREEK LETTER YOT
'k' : [ '\u{1d5c4}', // 𝗄 MATHEMATICAL SANS-SERIF SMALL K
'\uff4b' ], // k FULLWIDTH LATIN SMALL LETTER K
'l' : [ '\u{1d5c5}', // 𝗅 MATHEMATICAL SANS-SERIF SMALL L
'\uff4c', // l FULLWIDTH LATIN SMALL LETTER L
'\u0049', // I LATIN CAPITAL LETTER I
'\u0196' ], // Ɩ LATIN CAPITAL LETTER IOTA
'm' : [ '\u{1d5c6}', // 𝗆 MATHEMATICAL SANS-SERIF SMALL M
'\uff4d', // m FULLWIDTH LATIN SMALL LETTER M
'\u217f' ], // ⅿ SMALL ROMAN NUMERAL ONE THOUSAND
'n' : [ '\u{1d5c7}', // 𝗇 MATHEMATICAL SANS-SERIF SMALL N
'\uff4e' ], // n FULLWIDTH LATIN SMALL LETTER N
'o' : [ '\u{1d5c8}', // 𝗈 MATHEMATICAL SANS-SERIF SMALL O
'\uff4f', // o FULLWIDTH LATIN SMALL LETTER O
'\u043e', // о CYRILLIC SMALL LETTER O
'\u03bf' ], // ο GREEK SMALL LETTER OMICRON
'p' : [ '\u{1d5c9}', // 𝗉 MATHEMATICAL SANS-SERIF SMALL P
'\uff50', // p FULLWIDTH LATIN SMALL LETTER P
'\u0440' ], // р CYRILLIC SMALL LETTER ER
'q' : [ '\u{1d5ca}', // 𝗊 MATHEMATICAL SANS-SERIF SMALL Q
'\uff51', // q FULLWIDTH LATIN SMALL LETTER Q
'\u051b' ], // ԛ CYRILLIC SMALL LETTER QA
'r' : [ '\u{1d5cb}', // 𝗋 MATHEMATICAL SANS-SERIF SMALL R
'\uff52' ], // r FULLWIDTH LATIN SMALL LETTER R
's' : [ '\u{1d5cc}', // 𝗌 MATHEMATICAL SANS-SERIF SMALL S
'\uff53', // s FULLWIDTH LATIN SMALL LETTER S
'\u0455' ], // ѕ CYRILLIC SMALL LETTER DZE
't' : [ '\u{1d5cd}', // 𝗍 MATHEMATICAL SANS-SERIF SMALL T
'\uff54' ], // t FULLWIDTH LATIN SMALL LETTER T
'u' : [ '\u{1d5ce}', // 𝗎 MATHEMATICAL SANS-SERIF SMALL U
'\uff55' ], // u FULLWIDTH LATIN SMALL LETTER U
'v' : [ '\u{1d5cf}', // 𝗏 MATHEMATICAL SANS-SERIF SMALL V
'\uff56', // v FULLWIDTH LATIN SMALL LETTER V
'\u2174', // ⅴ SMALL ROMAN NUMERAL FIVE
'\u1d20' ], // ᴠ LATIN LETTER SMALL CAPITAL V
'w' : [ '\u{1d5d0}', // 𝗐 MATHEMATICAL SANS-SERIF SMALL W
'\uff57', // w FULLWIDTH LATIN SMALL LETTER W
'\u051d' ], // ԝ CYRILLIC SMALL LETTER WE
'x' : [ '\u{1d5d1}', // 𝗑 MATHEMATICAL SANS-SERIF SMALL X
'\uff58', // x FULLWIDTH LATIN SMALL LETTER X
'\u0445', // х CYRILLIC SMALL LETTER HA
'\u2179' ], // ⅹ SMALL ROMAN NUMERAL TEN
'y' : [ '\u{1d5d2}', // 𝗒 MATHEMATICAL SANS-SERIF SMALL Y
'\uff59', // y FULLWIDTH LATIN SMALL LETTER Y
'\u04af' ], // ү CYRILLIC SMALL LETTER STRAIGHT U
'z' : [ '\u{1d5d3}', // 𝗓 MATHEMATICAL SANS-SERIF SMALL Z
'\uff5a', // z FULLWIDTH LATIN SMALL LETTER Z
'\u1d22' ], // ᴢ LATIN LETTER SMALL CAPITAL Z
'A' : [ '\u{1d5a0}', // 𝖠 MATHEMATICAL SANS-SERIF CAPITAL A
'\uff21', // A FULLWIDTH LATIN CAPITAL LETTER A
'\u0410', // А CYRILLIC CAPITAL LETTER A
'\u0391' ], // Α GREEK CAPITAL LETTER ALPHA
'B' : [ '\u{1d5a1}', // 𝖡 MATHEMATICAL SANS-SERIF CAPITAL B
'\uff22', // B FULLWIDTH LATIN CAPITAL LETTER B
'\u0412' ], // В CYRILLIC CAPITAL LETTER VE
'C' : [ '\u{1d5a2}', // 𝖢 MATHEMATICAL SANS-SERIF CAPITAL C
'\uff23', // C FULLWIDTH LATIN CAPITAL LETTER C
'\u0421' ], // С CYRILLIC CAPITAL LETTER ES
'D' : [ '\u{1d5a3}', // 𝖣 MATHEMATICAL SANS-SERIF CAPITAL D
'\uff24', // D FULLWIDTH LATIN CAPITAL LETTER D
'\u216e' ], // Ⅾ ROMAN NUMERAL FIVE HUNDRED
'E' : [ '\u{1d5a4}', // 𝖤 MATHEMATICAL SANS-SERIF CAPITAL E
'\uff25', // E FULLWIDTH LATIN CAPITAL LETTER E
'\u0415' ], // Е CYRILLIC CAPITAL LETTER IE
'F' : [ '\u{1d5a5}', // 𝖥 MATHEMATICAL SANS-SERIF CAPITAL F
'\uff26', // F FULLWIDTH LATIN CAPITAL LETTER F
'\ua4dd' ], // ꓝ LISU LETTER TSA
'G' : [ '\u{1d5a6}', // 𝖦 MATHEMATICAL SANS-SERIF CAPITAL G
'\uff27', // G FULLWIDTH LATIN CAPITAL LETTER G
'\ua4d6' ], // ꓖ LISU LETTER GA
'H' : [ '\u{1d5a7}', // 𝖧 MATHEMATICAL SANS-SERIF CAPITAL H
'\uff28', // H FULLWIDTH LATIN CAPITAL LETTER H
'\u041d' ], // Н CYRILLIC CAPITAL LETTER EN
'I' : [ '\u{1d5a8}', // 𝖨 MATHEMATICAL SANS-SERIF CAPITAL I
'\uff29', // I FULLWIDTH LATIN CAPITAL LETTER I
'\u0406', // І CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
'\u04c0' ], // Ӏ CYRILLIC LETTER PALOCHKA
'J' : [ '\u{1d5a9}', // 𝖩 MATHEMATICAL SANS-SERIF CAPITAL J
'\uff2a', // J FULLWIDTH LATIN CAPITAL LETTER J
'\u0408' ], // Ј CYRILLIC CAPITAL LETTER JE
'K' : [ '\u{1d5aa}', // 𝖪 MATHEMATICAL SANS-SERIF CAPITAL K
'\uff2b', // K FULLWIDTH LATIN CAPITAL LETTER K
'\u041a' ], // К CYRILLIC CAPITAL LETTER KA
'L' : [ '\u{1d5ab}', // 𝖫 MATHEMATICAL SANS-SERIF CAPITAL L
'\uff2c', // L FULLWIDTH LATIN CAPITAL LETTER L
'\u216c', // Ⅼ ROMAN NUMERAL FIFTY
'\u14aa' ], // ᒪ CANADIAN SYLLABICS MA
'M' : [ '\u{1d5ac}', // 𝖬 MATHEMATICAL SANS-SERIF CAPITAL M
'\uff2d', // M FULLWIDTH LATIN CAPITAL LETTER M
'\u041c' ], // М CYRILLIC CAPITAL LETTER EM
'N' : [ '\u{1d5ad}', // 𝖭 MATHEMATICAL SANS-SERIF CAPITAL N
'\uff2e', // N FULLWIDTH LATIN CAPITAL LETTER N
'\u039d' ], // Ν GREEK CAPITAL LETTER NU
'O' : [ '\u{1d5ae}', // 𝖮 MATHEMATICAL SANS-SERIF CAPITAL O
'\uff2f', // O FULLWIDTH LATIN CAPITAL LETTER O
'\u041e', // О CYRILLIC CAPITAL LETTER O
'\u039f' ], // Ο GREEK CAPITAL LETTER OMICRON
'P' : [ '\u{1d5af}', // 𝖯 MATHEMATICAL SANS-SERIF CAPITAL P
'\uff30', // P FULLWIDTH LATIN CAPITAL LETTER P
'\u0420' ], // Р CYRILLIC CAPITAL LETTER ER
'Q' : [ '\u{1d5b0}', // 𝖰 MATHEMATICAL SANS-SERIF CAPITAL Q
'\uff31', // Q FULLWIDTH LATIN CAPITAL LETTER Q
'\u051a' ], // Ԛ CYRILLIC CAPITAL LETTER QA
'R' : [ '\u{1d5b1}', // 𝖱 MATHEMATICAL SANS-SERIF CAPITAL R
'\uff32', // R FULLWIDTH LATIN CAPITAL LETTER R
'\ua4e3' ], // ꓣ LISU LETTER ZHA
'S' : [ '\u{1d5b2}', // 𝖲 MATHEMATICAL SANS-SERIF CAPITAL S
'\uff33', // S FULLWIDTH LATIN CAPITAL LETTER S
'\u0405' ], // Ѕ CYRILLIC CAPITAL LETTER DZE
'T' : [ '\u{1d5b3}', // 𝖳 MATHEMATICAL SANS-SERIF CAPITAL T
'\uff34', // T FULLWIDTH LATIN CAPITAL LETTER T
'\u0422' ], // Т CYRILLIC CAPITAL LETTER TE
'U' : [ '\u{1d5b4}', // 𝖴 MATHEMATICAL SANS-SERIF CAPITAL U
'\uff35', // U FULLWIDTH LATIN CAPITAL LETTER U
'\u144c' ], // ᑌ CANADIAN SYLLABICS TE
'V' : [ '\u{1d5b5}', // 𝖵 MATHEMATICAL SANS-SERIF CAPITAL V
'\uff36', // V FULLWIDTH LATIN CAPITAL LETTER V
'\u142f' ], // ᐯ CANADIAN SYLLABICS PE
'W' : [ '\u{1d5b6}', // 𝖶 MATHEMATICAL SANS-SERIF CAPITAL W
'\uff37', // W FULLWIDTH LATIN CAPITAL LETTER W
'\u051c' ], // Ԝ CYRILLIC CAPITAL LETTER WE
'X' : [ '\u{1d5b7}', // 𝖷 MATHEMATICAL SANS-SERIF CAPITAL X
'\uff38', // X FULLWIDTH LATIN CAPITAL LETTER X
'\u0425' ], // Х CYRILLIC CAPITAL LETTER HA
'Y' : [ '\u{1d5b8}', // 𝖸 MATHEMATICAL SANS-SERIF CAPITAL Y
'\uff39', // Y FULLWIDTH LATIN CAPITAL LETTER Y
'\u04ae' ], // Ү CYRILLIC CAPITAL LETTER STRAIGHT U
'Z' : [ '\u{1d5b9}', // 𝖹 MATHEMATICAL SANS-SERIF CAPITAL Z
'\uff3a' ], // Z FULLWIDTH LATIN CAPITAL LETTER Z
'0' : [ '\u{1d7e2}' ], // 𝟢 MATHEMATICAL SANS-SERIF DIGIT ZERO
'1' : [ '\u{1d7e3}' ], // 𝟣 MATHEMATICAL SANS-SERIF DIGIT ONE
'2' : [ '\u{1d7e4}' ], // 𝟤 MATHEMATICAL SANS-SERIF DIGIT TWO
'3' : [ '\u{1d7e5}' ], // 𝟥 MATHEMATICAL SANS-SERIF DIGIT THREE
'4' : [ '\u{1d7e6}' ], // 𝟦 MATHEMATICAL SANS-SERIF DIGIT FOUR
'5' : [ '\u{1d7e7}' ], // 𝟧 MATHEMATICAL SANS-SERIF DIGIT FIVE
'6' : [ '\u{1d7e8}' ], // 𝟨 MATHEMATICAL SANS-SERIF DIGIT SIX
'7' : [ '\u{1d7e9}' ], // 𝟩 MATHEMATICAL SANS-SERIF DIGIT SEVEN
'8' : [ '\u{1d7ea}' ], // 𝟪 MATHEMATICAL SANS-SERIF DIGIT EIGHT
'9' : [ '\u{1d7eb}' ], // 𝟫 MATHEMATICAL SANS-SERIF DIGIT NINE
' ' : [ '\u00a0', // NO-BREAK SPACE
'\u2004', // THREE-PER-EM SPACE
'\u2005', // FOUR-PER-EM SPACE
'\u2006', // SIX-PER-EM SPACE
'\u2008', // PUNCTUATION SPACE
'\u2009', // THIN SPACE
'\u205F' ], // MEDIUM MATHEMATICAL SPACE
};