Debian Codegraph @

tables/ru-comp6.utb

raw
1 # liblouis: Russian translation table for program sources
2 #
3 # -----------
4 #-index-name: Russian, computer, 6-dot
5 #-display-name: Russian 6-dot computer braille
6 #
7 #+language: ru
8 #+type: computer
9 #+grade: 0
10 #+dots: 6
11 #
12 # TODO: Please add a reference to official documentation about
13 # the implemented braille code. Preferably submit the documents
14 # to https://github.com/liblouis/braille-specs.
15 # -----------
16 #
17 # Copyright (C) 2013 Igor B. Poretsky <[email protected]>
18 #
19 # This file is part of liblouis.
20 #
21 # liblouis is free software: you can redistribute it and/or modify it
22 # under the terms of the GNU Lesser General Public License as
23 # published by the Free Software Foundation, either version 2.1 of
24 # the License, or (at your option) any later version.
25 #
26 # liblouis is distributed in the hope that it will be useful, but
27 # WITHOUT ANY WARRANTY; without even the implied warranty of
28 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29 # Lesser General Public License for more details.
30 #
31 # You should have received a copy of the GNU Lesser General Public
32 # License along with liblouis. If not, see
33 # <http://www.gnu.org/licenses/>.
34
35 # This table is not a computer braille in usual sense.
36 # It is intended for producing printable braille representation
37 # of a program source text, especially when it contains
38 # Russian comments or literals. Use it as an alternative
39 # literary braille table.
40
41 # Display and character definitions:
42 include ru-letters.dis
43
44 # Character definitions for unicode cyrillic letters.
45 # All dot-patterns have dot 9 set to make them distinguishable from the latins.
46 # Dot 7 indicates uppercase letters.
47
48 lowercase \x0430 19
49 lowercase \x0431 129
50 lowercase \x0432 24569
51 lowercase \x0433 12459
52 lowercase \x0434 1459
53 lowercase \x0435 159
54 lowercase \x0436 2459
55 lowercase \x0437 13569
56 lowercase \x0438 249
57 lowercase \x0439 123469
58 lowercase \x043A 139
59 lowercase \x043B 1239
60 lowercase \x043C 1349
61 lowercase \x043D 13459
62 lowercase \x043E 1359
63 lowercase \x043F 12349
64 lowercase \x0440 12359
65 lowercase \x0441 2349
66 lowercase \x0442 23459
67 lowercase \x0443 1369
68 lowercase \x0444 1249
69 lowercase \x0445 1259
70 lowercase \x0446 149
71 lowercase \x0447 123459
72 lowercase \x0448 1569
73 lowercase \x0449 13469
74 lowercase \x044A 123569
75 lowercase \x044B 23469
76 lowercase \x044C 234569
77 lowercase \x044D 2469
78 lowercase \x044E 12569
79 lowercase \x044F 12469
80 lowercase \x0451 169
81
82 # Uppercase letters
83 base uppercase \x0401 \x0451
84 base uppercase \x0410 \x0430
85 base uppercase \x0411 \x0431
86 base uppercase \x0412 \x0432
87 base uppercase \x0413 \x0433
88 base uppercase \x0414 \x0434
89 base uppercase \x0415 \x0435
90 base uppercase \x0416 \x0436
91 base uppercase \x0417 \x0437
92 base uppercase \x0418 \x0438
93 base uppercase \x0419 \x0439
94 base uppercase \x041A \x043A
95 base uppercase \x041B \x043B
96 base uppercase \x041C \x043C
97 base uppercase \x041D \x043D
98 base uppercase \x041E \x043E
99 base uppercase \x041F \x043F
100 base uppercase \x0420 \x0440
101 base uppercase \x0421 \x0441
102 base uppercase \x0422 \x0442
103 base uppercase \x0423 \x0443
104 base uppercase \x0424 \x0444
105 base uppercase \x0425 \x0445
106 base uppercase \x0426 \x0446
107 base uppercase \x0427 \x0447
108 base uppercase \x0428 \x0448
109 base uppercase \x0429 \x0449
110 base uppercase \x042A \x044A
111 base uppercase \x042B \x044B
112 base uppercase \x042C \x044C
113 base uppercase \x042D \x044D
114 base uppercase \x042E \x044E
115 base uppercase \x042F \x044F
116
117 # Uppercase letters in computer braille mode
118 comp6 \x0401 1679
119 comp6 \x0410 179
120 comp6 \x0411 1279
121 comp6 \x0412 245679
122 comp6 \x0413 124579
123 comp6 \x0414 14579
124 comp6 \x0415 1579
125 comp6 \x0416 24579
126 comp6 \x0417 135679
127 comp6 \x0418 2479
128 comp6 \x0419 1234679
129 comp6 \x041A 1379
130 comp6 \x041B 12379
131 comp6 \x041C 13479
132 comp6 \x041D 134579
133 comp6 \x041E 13579
134 comp6 \x041F 123479
135 comp6 \x0420 123579
136 comp6 \x0421 23479
137 comp6 \x0422 234579
138 comp6 \x0423 13679
139 comp6 \x0424 12479
140 comp6 \x0425 12579
141 comp6 \x0426 1479
142 comp6 \x0427 1234579
143 comp6 \x0428 15679
144 comp6 \x0429 134679
145 comp6 \x042A 1235679
146 comp6 \x042B 234679
147 comp6 \x042C 2345679
148 comp6 \x042D 24679
149 comp6 \x042E 125679
150 comp6 \x042F 124679
151 nofor always \x0401 1679
152 nofor always \x0410 179
153 nofor always \x0411 1279
154 nofor always \x0412 245679
155 nofor always \x0413 124579
156 nofor always \x0414 14579
157 nofor always \x0415 1579
158 nofor always \x0416 24579
159 nofor always \x0417 135679
160 nofor always \x0418 2479
161 nofor always \x0419 1234679
162 nofor always \x041A 1379
163 nofor always \x041B 12379
164 nofor always \x041C 13479
165 nofor always \x041D 134579
166 nofor always \x041E 13579
167 nofor always \x041F 123479
168 nofor always \x0420 123579
169 nofor always \x0421 23479
170 nofor always \x0422 234579
171 nofor always \x0423 13679
172 nofor always \x0424 12479
173 nofor always \x0425 12579
174 nofor always \x0426 1479
175 nofor always \x0427 1234579
176 nofor always \x0428 15679
177 nofor always \x0429 134679
178 nofor always \x042A 1235679
179 nofor always \x042B 234679
180 nofor always \x042C 2345679
181 nofor always \x042D 24679
182 nofor always \x042E 125679
183 nofor always \x042F 124679
184
185 # English character definitions
186 include en-chardefs.cti
187
188 # Braille indicators:
189 numsign 3456 number sign, just a dots operand
190 capsletter 46
191 begcapsword 56
192 endcapsword 6
193
194 # The decimal digits:
195 include litdigits6Dots.uti
196
197 # Punctuations:
198 decpoint . 256
199 prepunc " 236
200 postpunc " 356
201 hyphen - 36
202 noback always . 256
203 noback always , 2
204 always ; 6-23
205 noback always : 25
206 always ? 6-26
207 always ! 6-235
208 noback always ' 3
209 noback always ` 4
210
211 # Special symbols:
212 always @ 4-1
213 always # 4-1345
214 always $ 4-145
215 always % 3456-356
216 always ^ 56-26
217 always & 6-12346
218 noback always * 23
219 noback always ( 126
220 noback always ) 345
221 always _ 6-25
222 noback always [ 12356
223 noback always ] 23456
224 always { 46-126
225 always } 46-345
226 always \\ 4-16
227 always | 456-3
228 noback always ~ 26
229
230 # mathematical symbols:
231 noback always - 36
232 noback always + 235
233 always / 6-34
234 always < 4-246
235 always > 4-135
236 noback always = 2356
237
238 # Symbol classes for special rules below:
239 attribute upperlatin ABCDEFGHIJKLMNOPQRSTUVWXYZ
240 attribute lowerlatin abcdefghijklmnopqrstuvwxyz
241 attribute uppercyrillic \x0401\x0410\x0411\x0412\x0413\x0414\x0415\x0416\x0417\x0418\x0419\x041A\x041B\x041C\x041D\x041E\x041F\x0420\x0421\x0422\x0423\x0424\x0425\x0426\x0427\x0428\x0429\x042A\x042B\x042C\x042D\x042E\x042F
242 attribute lowercyrillic \x0430\x0431\x0432\x0433\x0434\x0435\x0436\x0437\x0438\x0439\x043A\x043B\x043C\x043D\x043E\x043F\x0440\x0441\x0442\x0443\x0444\x0445\x0446\x0447\x0448\x0449\x044A\x044B\x044C\x044D\x044E\x044F\x0451
243
244 attribute latin ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
245 attribute cyrillic \x0401\x0410\x0411\x0412\x0413\x0414\x0415\x0416\x0417\x0418\x0419\x041A\x041B\x041C\x041D\x041E\x041F\x0420\x0421\x0422\x0423\x0424\x0425\x0426\x0427\x0428\x0429\x042A\x042B\x042C\x042D\x042E\x042F\x0430\x0431\x0432\x0433\x0434\x0435\x0436\x0437\x0438\x0439\x043A\x043B\x043C\x043D\x043E\x043F\x0440\x0441\x0442\x0443\x0444\x0445\x0446\x0447\x0448\x0449\x044A\x044B\x044C\x044D\x044E\x044F\x0451
246
247 swapcd updigit 1234567890 1,12,14,145,15,124,1245,125,24,245
248
249 # Mark letters immediately following digits.
250 noback context [$d]%lowerlatin %updigit@6
251 noback context [$d]%lowercyrillic %updigit@5
252 noback context [$d"."]%lowerlatin %updigit@256@6
253 noback context [$d"."]%lowercyrillic %updigit@256@5
254
255 # Fix cyrillic letter marks.
256 noback pass2 [@46]%cyrillic @45
257 noback pass2 [@56]%cyrillic @456
258 noback pass2 [@6]%cyrillic @5