-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunicode.mjs
83 lines (82 loc) · 2.67 KB
/
unicode.mjs
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
// source https://github.com/kounch/vscode_zx/ (python project)
export const BASIC = {
96: '£',
127: '©',
128: '\x80',
129: '\u259D', //Quadrant upper right
130: '\u2598', //Quadrant upper left
131: '\u2580', //Upper half block
132: '\u2597', //Quadrant lower right
133: '\u2590', //Right half block
134: '\u259A', //Quadrant upper left and lower right
135: '\u259C', //Quadrant upper left and upper right and lower right
136: '\u2596', //Quadrant lower left
137: '\u259E', //Quadrant upper right and lower left
138: '\u258C', //Left half block
139: '\u259B', //Quadrant upper left and upper right and lower left
140: '\u2584', //Lower half block
141: '\u259F', //Quadrant upper right and lower left and lower right
142: '\u2599', //Quadrant upper left and lower left and lower right
143: '\u2588', //Full block
144: '\\A', // UDG A
145: '\\B', // UDG B
146: '\\C', // UDG C
147: '\\D', // UDG D
148: '\\E', // UDG E
149: '\\F', // UDG F
150: '\\G', // UDG G
151: '\\H', // UDG H
152: '\\I', // UDG I
153: '\\J', // UDG J
154: '\\K', // UDG K
155: '\\L', // UDG L
156: '\\M', // UDG M
157: '\\N', // UDG N
158: '\\O', // UDG O
159: '\\P', // UDG P
160: '\\Q', // UDG Q
161: '\\R', // UDG R
162: '\\S', // UDG S
163: '\\T', // UDG T SPECTRUM
164: '\\U', // UDG U PLAY
};
export const TEXT = {
'£': '`',
'©': '\x7f',
'\u259D': '\x81', //Quadrant upper right
'\u2598': '\x82', //Quadrant upper left
'\u2580': '\x83', //Upper half block
'\u2597': '\x84', //Quadrant lower right
'\u2590': '\x85', //Right half block
'\u259A': '\x86', //Quadrant upper left and lower right
'\u259C': '\x87', //Quadrant upper left and upper right and lower right
'\u2596': '\x88', //Quadrant lower left
'\u259E': '\x89', //Quadrant upper right and lower left
'\u258C': '\x8a', //Left half block
'\u259B': '\x8b', //Quadrant upper left and upper right and lower left
'\u2584': '\x8c', //Lower half block
'\u259F': '\x8d', //Quadrant upper right and lower left and lower right
'\u2599': '\x8e', //Quadrant upper left and lower left and lower right
'\u2588': '\x8f', //Full block,
'\\A': '\x90', // UDG A
'\\B': '\x91', // UDG B
'\\C': '\x92', // UDG C
'\\D': '\x93', // UDG D
'\\E': '\x94', // UDG E
'\\F': '\x95', // UDG F
'\\G': '\x96', // UDG G
'\\H': '\x97', // UDG H
'\\I': '\x98', // UDG I
'\\J': '\x99', // UDG J
'\\K': '\x9A', // UDG K
'\\L': '\x9B', // UDG L
'\\M': '\x9C', // UDG M
'\\N': '\x9D', // UDG N
'\\O': '\x9E', // UDG O
'\\P': '\x9F', // UDG P
'\\Q': '\xA0', // UDG Q
'\\R': '\xA1', // UDG R
'\\S': '\xA2', // UDG S
'\\T': '\xA3', // UDG T SPECTRUM
'\\U': '\xA4', // UDG U PLAY
};