-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathbraille8new.js
128 lines (124 loc) · 2.04 KB
/
braille8new.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
// TODO: find the real table
// New 8 dots braille parameters
// dotMap: the dot numbering from x, y coordinates:
// New 8-dot Braille numbering
//
// x: 0 1
// y
// 1 4 5
// 2 3 6
// 3 2 7
// 4 1 8
languages['new 8 dots'] = {
dotMap: {
0: {
0: 4,
1: 3,
2: 2,
3: 1
},
1: {
0: 5,
1: 6,
2: 7,
3: 8
}
},
numberPrefix: [4, 5, 7, 8],
latinToBraille: {
"!" : [2,3,4,6],
'"' : [5],
"#" : [3,4,5,6],
"$" : [1,2,4,6],
"%" : [1,4,6],
"&" : [1,2,3,4,6],
"'" : [3],
"(" : [1,2,3,5,6],
")" : [2,3,4,5,6],
"*" : [1,6],
"+" : [3,4,6],
"," : [6],
"-" : [3,6],
"." : [4,6],
"/" : [3,4],
"0" : [3,5,6],
"1" : [2],
"2" : [2,3],
"3" : [2,5],
"4" : [2,5,6],
"5" : [2,6],
"6" : [2,3,5],
"7" : [2,3,5,6],
"8" : [2,3,6],
"9" : [3,5],
":" : [1,5,6],
";" : [5,6],
"<" : [1,2,6],
"=" : [1,2,3,4,5,6],
">" : [3,4,5],
"?" : [1,4,5,6],
"@" : [4],
"A" : [1,7],
"B" : [1,2,7],
"C" : [1,4,7],
"D" : [1,4,5,7],
"E" : [1,5,7],
"F" : [1,2,4,7],
"G" : [1,2,4,5,7],
"H" : [1,2,5,7],
"I" : [2,4,7],
"J" : [2,4,5,7],
"K" : [1,3,7],
"L" : [1,2,3,7],
"M" : [1,3,4,7],
"N" : [1,3,4,5,7],
"O" : [1,3,5,7],
"P" : [1,2,3,4,7],
"Q" : [1,2,3,4,5,7],
"R" : [1,2,3,5,7],
"S" : [2,3,4,7],
"T" : [2,3,4,5,7],
"U" : [,1,3,6,7],
"V" : [1,2,3,6,7],
"W" : [2,4,5,6,7],
"X" : [1,3,4,6,7],
"Y" : [1,3,4,5,6,7],
"Z" : [1,3,5,6,7],
"[" : [2,4,6],
"\\" : [1,2,5,6],
"]" : [1,2,4,5,6],
"^" : [4,5],
"_" : [4,5,6],
"`" : [4,7],
"a" : [1],
"b" : [1,2],
"c" : [1,4],
"d" : [1,4,5],
"e" : [1,5],
"f" : [1,2,4],
"g" : [1,2,4,5],
"h" : [1,2,5],
"i" : [2,4],
"j" : [2,4,5],
"k" : [1,3],
"l" : [1,2,3],
"m" : [1,3,4],
"n" : [1,3,4,5],
"o" : [1,3,5],
"p" : [1,2,3,4],
"q" : [1,2,3,4,5],
"r" : [1,2,3,5],
"s" : [2,3,4],
"t" : [2,3,4,5],
"u" : [1,3,6],
"v" : [1,2,3,6],
"w" : [2,4,5,6],
"x" : [1,3,4,6],
"y" : [1,3,4,5,6],
"z" : [1,3,5,6],
"{" : [2,4,6,7],
"|" : [1,2,5,6,7],
"}" : [1,2,4,5,6,7],
"~" : [4,5,7]
}
}