summaryrefslogtreecommitdiff
path: root/layouts/community/ortho_4x12/jotix/unicode.c
blob: 1935d3a721424d0c9bc2ceaaf611b7a9f02b7f42 (plain)
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
enum unicode_names {
    A_ACUTE,
    A_ACUTEC,
    E_ACUTE,
    E_ACUTEC,
    I_ACUTE,
    I_ACUTEC,
    O_ACUTE,
    O_ACUTEC,
    U_ACUTE,
    U_ACUTEC,
    U_DIERESIS,
    U_DIERESISC,
    N_TILDE,
    N_TILDEC,
    OPEN_EXCML,
    OPEN_QUEST,
    EURO,
    POUND,
    LEFT_ARROW,
    DOWN_ARROW,
    UP_ARROW,
    RIGHT_ARROW,
    LEFT_DARROW,
    DOWN_DARROW,
    UP_DARROW,
    RIGHT_DAROW,
    LEFT_DQUOT,
    RGHT_DQUOT,
    DEGREE,
    DEGREE_CELCIUS,
    SUPER_1,
    SUPER_2,
    SUPER_3,
    ONE_HALF,
    PER_MILLE,
    PER_THOUS,
    PILCROW,
    COPYRIGHT,
    REGISTERED,
    MICRO,
    MIDDLE_DOT,
    BOX_CORNER_1,
    BOX_CORNER_2,
    BOX_CORNER_3,
    BOX_CORNER_4,
    BOX_HORIZONTAL,
    BOX_VERTICAL,
    BOX_CROSS,
    BOX_UNION_1,
    BOX_UNION_2,
    BOX_UNION_3,
    BOX_UNION_4,
    DBOX_CORNER_1,
    DBOX_CORNER_2,
    DBOX_CORNER_3,
    DBOX_CORNER_4,
    DBOX_HORIZONT,
    DBOX_VERTICAL,
    DBOX_CROSS,
    DBOX_UNION_1,
    DBOX_UNION_2,
    DBOX_UNION_3,
    DBOX_UNION_4,
    LESS_EQUAL,
    MORE_EQUAL,
    DIVISION,
    SQUARE_ROOT,
    CUBE_ROOT,
    SPADE_SUIT,
    TREBOL_SUIT,
    HEART_SUIT,
    DIAMOND_SUIT,
    NARRAY_SUM,
    INFINIT_SYMBOL,
    DIAMOND_BULLET,
    CIRCLE_BULLET,
    SMILE_FACE,
    SAD_FACE
};

const uint32_t PROGMEM unicode_map[] = {
    [A_ACUTE]       = 0x00E1,
    [A_ACUTEC]      = 0x00C1,
    [E_ACUTE]       = 0x00E9,
    [E_ACUTEC]      = 0x00C9,
    [I_ACUTE]       = 0x00ED,
    [I_ACUTEC]      = 0x00CD,
    [O_ACUTE]       = 0x00F3,
    [O_ACUTEC]      = 0x00D3,
    [U_ACUTE]       = 0x00FA,
    [U_ACUTEC]      = 0x00DA,
    [U_DIERESIS]    = 0x00FC,
    [U_DIERESISC]   = 0x00DC,
    [N_TILDE]       = 0x00F1,
    [N_TILDEC]      = 0x00D1,
    [OPEN_EXCML]    = 0x00A1,
    [OPEN_QUEST]    = 0x00BF,
    [EURO]          = 0x20AC,
    [POUND]         = 0x00A3,
    [LEFT_ARROW]    = 0x2190,
    [DOWN_ARROW]    = 0x2193,
    [UP_ARROW]      = 0x2191,
    [RIGHT_ARROW]   = 0x2192,
    [LEFT_DARROW]   = 0x21E6,
    [DOWN_DARROW]   = 0x21D3,
    [UP_DARROW]     = 0x21D1,
    [RIGHT_DAROW]   = 0x21D2,
    [LEFT_DQUOT]    = 0x00AB,
    [RGHT_DQUOT]    = 0x00BB,
    [DEGREE]        = 0x00B0,
    [DEGREE_CELCIUS]= 0x2103,
    [SUPER_1]       = 0x00B9,
    [SUPER_2]       = 0x00B2,
    [SUPER_3]       = 0x00B3,
    [ONE_HALF]      = 0x00BD,
    [PER_MILLE]     = 0x0609,
    [PER_THOUS]     = 0x060A,
    [PILCROW]       = 0x00B6,
    [COPYRIGHT]     = 0x00A9,
    [REGISTERED]    = 0x00AE,
    [MICRO]         = 0x00B5,
    [MIDDLE_DOT]    = 0x00B7,
    [BOX_CORNER_1]  = 0x250C,
    [BOX_CORNER_2]  = 0x2510,
    [BOX_CORNER_3]  = 0x2514,
    [BOX_CORNER_4]  = 0x2518,
    [BOX_HORIZONTAL]= 0x2500,
    [BOX_VERTICAL]  = 0x2502,
    [BOX_CROSS]     = 0x253C,
    [BOX_UNION_1]   = 0x2524,
    [BOX_UNION_2]   = 0x252C,
    [BOX_UNION_3]   = 0x2534,
    [BOX_UNION_4]   = 0x251C,
    [DBOX_CORNER_1] = 0x2554,
    [DBOX_CORNER_2] = 0x2557,
    [DBOX_CORNER_3] = 0x255A,
    [DBOX_CORNER_4] = 0x255D,
    [DBOX_HORIZONT] = 0x2550,
    [DBOX_VERTICAL] = 0x2551,
    [DBOX_CROSS]    = 0x256C,
    [DBOX_UNION_1]  = 0x2563,
    [DBOX_UNION_2]  = 0x2566,
    [DBOX_UNION_3]  = 0x2569,
    [DBOX_UNION_4]  = 0x2560,
    [LESS_EQUAL]    = 0x2264,
    [MORE_EQUAL]    = 0x2265,
    [DIVISION]      = 0x00F7,
    [SQUARE_ROOT]   = 0x221A,
    [CUBE_ROOT]     = 0x221B,
    [SPADE_SUIT]    = 0x2660,
    [TREBOL_SUIT]   = 0x2663,
    [HEART_SUIT]    = 0x2664,
    [DIAMOND_SUIT]  = 0x2665,
    [NARRAY_SUM]    = 0x2211,
    [INFINIT_SYMBOL]= 0x221E,
    [DIAMOND_BULLET]= 0x2B25,
    [CIRCLE_BULLET] = 0x2981,
    [SMILE_FACE]    = 0x263A,
    [SAD_FACE]      = 0x2639
};

#define UN_ESC  XP(DEGREE, DEGREE_CELCIUS)
#define UN_Q    XP(OPEN_EXCML, SUPER_1)
#define UN_W    XP(SUPER_2, SUPER_3)
#define UN_E    XP(E_ACUTE, E_ACUTEC)
#define UN_R    XP(EURO, ONE_HALF)
#define UN_T    XP(PER_MILLE, PER_THOUS)
#define UN_Y    XP(U_DIERESIS, U_DIERESISC)
#define UN_U    XP(U_ACUTE, U_ACUTEC)
#define UN_I    XP(I_ACUTE, I_ACUTEC)
#define UN_O    XP(O_ACUTE, O_ACUTEC)
#define UN_P    XP(POUND, PILCROW)
#define UN_BSPC XP(BOX_CROSS, DBOX_CROSS)
#define UN_TAB  XP(DIAMOND_BULLET, CIRCLE_BULLET)
#define UN_A    XP(A_ACUTE, A_ACUTEC)
#define UN_S    XP(BOX_CORNER_1, DBOX_CORNER_1)
#define UN_D    XP(BOX_CORNER_2, DBOX_CORNER_2)
#define UN_F    XP(BOX_CORNER_3, DBOX_CORNER_3)
#define UN_G    XP(BOX_CORNER_4, DBOX_CORNER_4)
#define UN_H    XP(BOX_UNION_1, DBOX_UNION_1)
#define UN_J    XP(BOX_UNION_2, DBOX_UNION_2)
#define UN_K    XP(BOX_UNION_3, DBOX_UNION_3)
#define UN_L    XP(BOX_UNION_4, DBOX_UNION_4)
#define UN_SCLN XP(BOX_HORIZONTAL, DBOX_HORIZONT)
#define UN_ENT  XP(BOX_VERTICAL, DBOX_VERTICAL)
#define UN_Z    XP(NARRAY_SUM, INFINIT_SYMBOL)
#define UN_X    XP(SMILE_FACE, SAD_FACE)
#define UN_C    XP(COPYRIGHT, REGISTERED)
#define UN_V    XP(SPADE_SUIT, TREBOL_SUIT)
#define UN_B    XP(HEART_SUIT, DIAMOND_SUIT)
#define UN_N    XP(N_TILDE, N_TILDEC)
#define UN_M    XP(MICRO, MIDDLE_DOT)
#define UN_COMM XP(LESS_EQUAL, LEFT_DQUOT)
#define UN_DOT  XP(MORE_EQUAL, RGHT_DQUOT)
#define UN_SLSH XP(OPEN_QUEST, DIVISION)
#define UN_LEFT XP(LEFT_ARROW, LEFT_DARROW)
#define UN_DOWN XP(DOWN_ARROW, DOWN_DARROW)
#define UN_UP   XP(UP_ARROW, UP_DARROW)
#define UN_RGHT XP(RIGHT_ARROW, RIGHT_DAROW)