Debian Codegraph @

tables/hu-hu-g1_braille_input.cti

raw
1 # liblouis: Hungarian Grade 1 Braille input subtable
2 #
3 # Copyright (C) 2018-2023 Attila Hammer from IT Foundation for the Visually Impaired - Hungary. www.infoalap.hu
4 # Copyright (C) 2023 Norbert Markus from IT Foundation for the Visually Impaired - Hungary. www.infoalap.hu
5 #
6 # This file is part of liblouis.
7 #
8 # liblouis is free software: you can redistribute it and/or modify it
9 # under the terms of the GNU Lesser General Public License as
10 # published by the Free Software Foundation, either version 2.1 of the
11 # License, or (at your option) any later version.
12 #
13 # liblouis is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # Lesser General Public License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with liblouis. If not, see
20 # <http://www.gnu.org/licenses/>.
21 #
22 # Maintained by Attila Hammer [email protected]
23 #
24 # If you found bugs with hungarian grade1 table, report it with following address:
25 # Attila Hammer <[email protected]
26 #If you have a Launchpad account, report table related requests with following bug tracker address: https://bugs.launchpad.net/belin
27
28 #Hungarian Braille input related rules
29 #Exceptions for two simple equals special letter rules related (for example two literary cscs letter, two literary gygy letter, etc)
30 #cscs letter related input rules
31 nofor endnum cscs 146-5-146
32 noback endnum cscs 146-5-146
33 nofor endnum -cscs 36-146-5-146
34 noback endnum -cscs 36-146-5-146
35 nofor endnum -Cscs 36-46-146-5-146
36 noback endnum -Cscs 36-46-146-5-146
37 nofor always cscs 146-5-146
38 noback always cscs 146-5-146
39 noback pass3 $D@36%notaccentedletters.[@14-234-146] @146-5-146
40 noback pass3 $D@6%notaccentedletters.[@146-14-234] @146-5-146
41 noback pass3 $D%accentedletters.[@14-234-14-234] @146-5-146
42 noback pass3 $D%accentedletters.[@146-14-234] @146-5-146
43 noback pass4 @146-5-146 @146-146
44
45 #gygy letter related input rules
46 nofor endnum gygy 1456-5-1456
47 noback endnum gygy 1456-5-1456
48 nofor endnum -gygy 36-1456-5-1456
49 noback endnum -gygy 36-1456-5-1456
50 nofor endnum -Gygy 36-46-1456-5-1456
51 noback endnum -Gygy 36-46-1456-5-1456
52 nofor always gygy 1456-5-1456
53 noback always gygy 1456-5-1456
54 noback pass3 $D@36%notaccentedletters.[@1245-1456] @1456-5-1456
55 noback pass3 $D@6%notaccentedletters[@1245-1456] @1456-5-1456
56 noback pass3 $D%accentedletters.[@1456-1245-13456] @1456-5-1456
57 noback pass4 @1456-5-1456 @1456-1456
58
59 #nyny related input rules
60 nofor always nyny 1246-5-1246
61 noback always nyny 1246-5-1246
62 noback pass2 @1246-5-1246 @1246-1246
63
64 #Exceptions for lyly letter related input rules
65 nofor always lyly 456-5-456
66 noback always lyly 456-5-456
67 noback pass2 @456-5-456 @456-456
68
69 #Exceptions for tyty lrelated rules
70 nofor always tyty 1256-5-1256
71 noback always tyty 1256-5-1256
72 noback pass2 @1256-5-1256 @1256-1256
73
74 #Exception for szsz related input
75 nofor always szsz 156-5-156
76 noback always szsz 156-5-156
77 noback pass2 @156-5-156 @156-156
78
79 #Exception rules for zszs input related
80 endnum zszs 345-5-345
81 endnum -zszs 36-345-5-345
82 prepunc zszs 345-5-345
83 postpunc zszs 345-5-345
84 nofor always zszs 345-5-345
85 noback always zszs 345-5-345
86 noback pass2 @345-5-345 @345-345
87
88 #punctuation related exceptions
89 nofor endnum – 5-36
90 nofor always – 5-36
91 nofor context @8 "\n"
92 nofor context @235-8 "!\n"
93 nofor context @235-0 "!\s"
94
95 #for plus sign related rule
96 nofor context @5-235 "+"
97 #noback context $a["+"] @5-235
98 noback pass2 @5-235 @235
99
100 #for [ and ] character input related old dot combinations related rules, need keeping this rules with compatibility purposes
101 nofor always [ 5-12356
102 nofor always ] 5-23456
103 nofor pass2 @5-12356 @46-2346
104 nofor pass2 @5-23456 @46-1356
105
106 #for ` related exception rules
107 #Compatibility purposes handle older braille 5-4 dot combination when the user trying typing the 5-4 dot combination, and not known yet the new changed 5-14 dot combination
108 nofor always ` 5-4
109 nofor pass2 @5-4 @5-14
110 nofor context @5-4 "`" Handle the backtranslation too
111
112 #for { and } related old rules, need keeping this rules with compatibility purposes:
113 nofor always { 5-12345
114 nofor always } 5-12456
115 nofor pass2 @5-12345 @5-2346
116 nofor pass2 @5-12456 @5-1356
117
118 #Compatibility purposes handle older braille 5-45 dot combination when the user trying typing this dot combination he's braille display, and not known the new 5-1245 dot combination
119 nofor always | 5-45
120 nofor pass2 @5-45 @5-1245
121 nofor context @5-45 "|" Handle the back translation too
122
123 #Hessmark backtranslation handling related special rule
124 nofor context @123456 "#"
125 #Now, the dot 5 and dot 6 braille input forward translation rules are commented out
126 #nofor pass2 $U2-30[@5]$u2-30 @56
127 #nofor pass2 $U2-30[@6]$u @56
128
129 #Following part implementing the new Braille standard changes
130 midnum : 3
131 midnum - 36-3456
132 hyphen - 36
133 decpoint , 2
134 midnum . 3-3456
135 endnum . 3
136 endnum – 36-36
137 always . 3
138 #When some punctuation characters have after end of numbers, need add a dot6 prefix before the punctuation character dots
139 endnum : 6-25
140 endnum ? 6-26
141 endnum ; 6-23
142 endnum ! 6-235
143 endnum " 6-236
144 endnum * 6-35
145 prepunc ' 6-3
146 postpunc ' 6-3
147 postpunc ; 23
148 word ; 23
149 postpunc : 25
150 prepunc ! 235
151 postpunc ! 235
152 punctuation ! 235
153 endnum % 3456-245-356
154 endnum -% 36-3456-245-356
155 noback pass2 $D.@36-3456-245-356[@36-6]%notaccentedletters @36
156 endnum / 5-2
157 prepunc / 5-2
158 postpunc / 5-2
159 always ' 6-3
160 midnum : 3
161 endnum : 6-25
162 always : 25
163 always ! 235
164 always • 6-35
165
166 #numbers related braille input rules, trying temporary fixing with numericnocontchars abcdefghij related issue (the #615 issue), link is following:
167 #https://github.com/liblouis/liblouis/issues/615
168 #cs related number exceptions
169 endnum cs 146
170 endnum -cs 36-146
171 #prepunc cs 146
172 postpunc cs 146
173 always cs 146
174 noback pass2 $D@6%notaccentedletters[@14-234] @146
175 noback pass2 $D@6%notaccentedletters%accentedletters.[@14-234] @146
176 noback pass2 $D@46%notaccentedletters[@14-234] @146
177 noback pass2 $D@46%notaccentedletters%accentedletters.[@14-234] @146
178 noback pass2 $D@46-46%notaccentedletters[@14-234] @146
179 noback pass2 $D@46-46%notaccentedletters%accentedletters.[@14-234] @146
180 noback pass2 $D[@6-146] @146
181 #Following rules producing regression errors with large yaml test file, temporary commented out
182 noback pass2 @3456$D.%accentedletters.[@14-234] @146
183 noback pass2 @3456$D.%accentedletters.[@14-234] @146
184 noback pass2 $D@36%accentedletters1-30[@14-234] @146
185 noback pass2 $D@46%accentedletters1-30[@14-234] @146
186 noback pass2 $D@36-46%accentedletters1-30[@14-234] @146
187 noback pass2 $D@36-46-46%accentedletters1-30[@14-234] @146
188 noback pass2 $D@46-46%accentedletters1-30[@14-234] @146
189 noback pass3 $D[@36-146-6]%notaccentedletters. @36-146
190 nofor pass3 $D[@36-146]%notaccentedletters. @36-146
191
192 endnum ccsz 14-14-156
193 endnum -ccsz 36-14-14-156
194 prepunc ccsz 14-14-156
195 postpunc ccsz 14-14-156
196 always ccsz 14-14-156
197 noback pass2 $D@6%notaccentedletters[@14-14-234-126] @14-14-156
198 noback pass2 $D%accentedletters1-30[@14-14-234-126] @14-14-156
199
200
201 endnum ccs 146-146 General need replacing ccs letters with a combined dot combination
202 endnum -ccs 36-146-146
203 prepunc ccs 146-146 General need replacing ccs letters with a combined dot combination
204 postpunc ccs 146-146 General need replacing ccs letters with a combined dot combination
205 noback pass2 $D@6%notaccentedletters[@14-14-234] @146-146
206 noback pass2 $D%accentedletters1-30[@14-14-234] @146-146
207
208 endnum csz 14-156
209 endnum -csz 36-14-156
210 prepunc csz 14-156
211 postpunc csz 14-156
212 noback pass3 @3456$D%accentedletters.[@146-126] @14-156
213 noback pass3 @3456$D@46%accentedletters.[@146-126] @14-156
214 noback pass3 @3456$D@46-46%accentedletters.[@146-126] @14-156
215 noback pass3 $D@36%accentedletters.[@146-126] @14-156
216 noback pass3 $D@36-46%accentedletters.[@146-126] @14-156
217 noback pass3 $D@36-46-46%accentedletters.[@146-126] @14-156
218 noback pass3 $D@6%notaccentedletters.[@146-126] @14-156
219 noback pass3 $D@6%notaccentedletters2-30[@146-126] @14-156
220
221 endnum cszs 146-345
222 endnum -cszs 36-146-345
223 prepunc cszs 146-345
224 postpunc cszs 146-345
225 noback pass4 $D$l1-30[@14-156-234] @146-345
226 noback pass4 $D@6%notaccentedletters[@14-156-234] @146-345
227 noback pass4 $D[@6-14-156-234] @146-345
228 #noback pass4 $D%accentedletters1-30[@14-156-234] @146-345
229
230 noback endnum gy 1456 General need replacing gy letters with a combined dot combination
231 endnum -gy 36-1456 General need replacing gy letters with a combined dot combination
232 prepunc gy 1456 General need replacing gy letters with a combined dot combination
233 postpunc gy 1456 General need replacing gy letters with a combined dot combination
234 noback pass2 $D.[@6-1456] @1456
235 noback pass2 $D.[@36-1456-6]%notaccentedletters. @36-1456
236 noback pass3 $D.%accentedletters.[@1245-13456] @1456
237 noback pass2 $D.@46%accentedletters.[@1245-13456] @1456
238 noback pass2 $D.@46-46%accentedletters.[@1245-13456] @1456
239 noback pass2 $D.@36%accentedletters.[@1245-13456] @1456
240 noback pass2 $D.@36-46%accentedletters.[@1245-13456] @1456
241 noback pass2 $D.@36-46-46%accentedletters1-30[@1245-13456] @1456
242 noback pass3 $D.@6%notaccentedletters1-30[@1245-13456] @1456
243
244 endnum ggy 1456-1456 General need replacing ggy letters with a combined dot combination
245 endnum -ggy 36-1456-1456 General need replacing ggy letters with a combined dot combination
246 prepunc ggy 1456-1456 General need replacing ggy letters with a combined dot combination
247 postpunc ggy 1456-1456 General need replacing ggy letters with a combined dot combination
248 always ggy 1456-1456
249
250 endnum ly 456
251 endnum -ly 36-456
252 prepunc ly 456
253 postpunc ly 456
254 always ly 456
255 noback pass2 $D.[@36-456-6]%notaccentedletters. @36-456
256
257 endnum lly 456-456 General need replacing ly letters with a combined dot combination
258 endnum -lly 36-456-456 General need replacing ly letters with a combined dot
259 prepunc lly 456-456 General need replacing ly letters with a combined dot combination
260 postpunc lly 456-456 General need replacing ly letters with a combined dot combination
261 always lly 456-456
262
263 endnum ny 1246
264 endnum -ny 36-1246
265 prepunc ny 1246 General need replacing ny letters with a combined dot combination
266 postpunc ny 1246 General need replacing ny letters with a combined dot combination
267 noback pass2 $D.[@6-1246] @1246
268 noback pass2 $D.[@36-1246-6]%notaccentedletters. @36-1246
269
270 endnum nny 1246-1246 General need replacing nny letters with a combined dot combination
271 endnum -nny 36-1246-1246 General need replacing nny letters with a combined dot combination
272 prepunc nny 1246-1246 General need replacing nny letters with a combined dot combination
273 postpunc nny 1246-1246 General need replacing nny letters with a combined dot combination
274 always nny 1246-1246
275
276 endnum ty 1256 General need replacing ty letter pairs with a combined dot combination
277 endnum -ty 36-1256 General need replacing ty letter pairs with a combined dot combination
278 prepunc ty 1256 General need replacing ty letter pairs with a combined dot combination
279 postpunc ty 1256 General need replacing ty letter pairs with a combined dot combination
280 always ty 1256
281 noback pass2 $D.[@36-1256-6]%notaccentedletters. @36-1256
282
283 endnum tty 1256-1256 General need replacing ty letter pairs with a combined dot combination
284 endnum -tty 36-1256-1256 General need replacing ty letter pairs with a combined dot combination
285 prepunc tty 1256-1256 General need replacing ty letter pairs with a combined dot combination
286 postpunc tty 1256-1256 General need replacing ty letter pairs with a combined dot combination
287 always tty 1256-1256 General need replacing ty letter pairs with a combined dot combination
288
289 endnum sz 156 General need replacing sz letters with a combined dot combination
290 prepunc sz 156 General need replacing sz letters with a combined dot combination
291 postpunc sz 156 General need replacing sz letters with a combined dot combination
292 always biztosz 12-24-126-2345-135-234-126 For example gyerekbiztoszár word
293 always sz 156
294 noback pass2 $D.[@6-156] @156
295 noback pass2 $D.[@36-156-6]%notaccentedletters. @36-156
296 #noback pass3 $D.%accentedletters[@234-126] @156
297 noback pass2 $D.@46%accentedletters.[@234-126] @156
298 noback pass2 $D.@46-46%accentedletters.[@234-126] @156
299 noback pass3 $D.$p%accentedletters.[@234-126] @156
300 noback pass2 $D.@36-46%accentedletters.[@234-126] @156
301 noback pass2 $D.@36-46-46%accentedletters1-30[@234-126] @156
302 noback pass3 $D.@6%notaccentedletters.[@234-126] @156
303 noback pass3 $D.@6%notaccentedletters%accentedletters.[@234-126] @156
304 noback pass2 [@156-156-6] @156-156
305
306 endnum ssz 156-156
307 endnum -ssz 36-156-156
308 prepunc ssz 156-156
309 postpunc ssz 156-156
310 always ssz 156-156
311 noback pass3 $D.@6%notaccentedletters1-30[@234-234-126] @156-156
312 noback pass3 $D.[@36-156-6]%notaccentedletters. @36-156-156
313 noback pass3 $l.[@156-6]$a @156
314 endnum zsz 126-156
315 endnum -zsz 36-126-156
316 prepunc zsz 126-156
317 postpunc zsz 126-156
318 always zsz 126-156
319
320 endnum zs 345 General need replacing zs letters with a combined dot combination
321 endnum -zs 36-345 General need replacing zs letters with a combined dot combination
322 prepunc zs 345
323 postpunc zs 345
324 always zs 345
325 noback pass2 $D.[@36-345-6]%notaccentedletters. @36-345
326
327 endnum zzs 345-345 General need replacing zs letters with a combined dot combination
328 endnum -zzs 36-345-345 General need replacing zs letters with a combined dot combination
329 prepunc zzs 345-345 General need replacing zs letters with a combined dot combination
330 postpunc zzs 345-345 General need replacing zs letters with a combined dot combination
331 always zzs 345-345 General need replacing zs letters with a combined dot combination
332
333 #Special punctuation simbols
334 prepunc " 236 Opening quotation simbol
335 postpunc " 356 Closing quotation simbol
336 prepunc « 236
337 postpunc » 356
338 prepunc » 236
339 postpunc « 356
340 prepunc « 236
341 postpunc » 356
342 prepunc ‘ 236
343 postpunc ’ 356
344 prepunc ‚ 236
345 postpunc ‚ 356
346 prepunc “ 236
347 prepunc ” 236
348 postpunc ” 356
349 prepunc „ 236
350 postpunc „ 356
351
352 #some left and right parentheses related rules, with affecting only the back translation
353 nofor partword ( 2346 For example with csinál(hat) word correct backtranslation related
354 nofor partword ) 1356 Same the left parenthese related rule, this rule need only to Liblouis result correct back translation if inside a word have a right parenthese character
355 endnum ( 2346
356 prepunc ( 2346 Opening left parenthese
357 punctuation ( 2346 Opening left parenthese
358 postpunc ( 2346 Need this rule to the user always see 2346 dot combination
359 endnum ) 1356 Need this rule to the user always see 1356 dot combination if type first ) character a text
360 prepunc ) 1356 Need this rule to the user always see 1356 dot
361 postpunc ) 1356 Need this rule to the user always see 1356 dot
362
363 #Other exceptions With need marking different dot combination
364 endnum # 123456
365 prepunc # 123456
366 postpunc # 123456
367 punctuation # 123456
368 endnum $ 5-145
369 prepunc $ 5-145
370 postpunc $ 5-145
371 endnum ~ 5-2345
372 prepunc ~ 5-2345
373 punctuation ~ 5-2345
374 postpunc ~ 5-2345
375 endnum < 5-13
376 prepunc < 5-13
377 postpunc < 5-13
378 endnum > 46-2
379 prepunc > 46-2
380 postpunc > 46-2
381 endnum | 5-1245
382 prepunc | 5-1245
383 postpunc | 5-1245
384 endnum { 5-2346
385 prepunc { 5-2346
386 postpunc { 5-2346
387 endnum } 5-1356
388 prepunc } 5-1356
389 postpunc } 5-1356
390 endnum [ 46-2346
391 prepunc [ 46-2346
392 postpunc [ 46-2346
393 endnum ] 46-1356
394 prepunc ] 46-1356
395 postpunc ] 46-1356
396 endnum \\ 5-16
397 prepunc \\ 5-16
398 postpunc \\ 5-16
399 endnum ^ 5-124
400 prepunc ^ 5-124
401 postpunc ^ 5-124
402 endnum ` 5-14
403 prepunc ` 5-14
404 postpunc ` 5-14
405 punctuation ` 5-14
406 endnum lyú 456-346
407 endnum lysz 456-156
408 endnum ä 5-1
409 prepunc ä 5-1
410 postpunc ä 5-1
411 noback context $l$p["–"] @36-36
412 noback context $l["–"] @36-36
413 nofor correct $D1-30["--annyi"] "--ai"
414 nofor correct $D1-30["--ennyi"] "--ei"
415 #nofor correct $D1-30["-'annyi"] "-ai"
416 nofor correct $D1-30["-ennyi"] "-ei"
417
418 nofor correct $D["'"]$l ?
419 nofor correct $D["'"]$U ?
420 nofor correct ["—'"]$l "--"
421 nofor correct ["--'"]$l "-"
422 nofor correct ["-'"]$l "-"
423
424 #lowercase greek letters
425 math \x03b1 56-56-1 Greek small letter alpha
426 math \x03b2 56-56-12 Lowercase greek beta letter
427 math \x03b3 56-56-1245 Lowercase greek gamma letter
428 math \x03b4 56-56-145 Lowercase greek delta letter
429 math \x03b5 56-56-15 Lowercase greek epsilon letter
430 math \x03B6 56-56-1356 Greek small letter zeta
431 math \x03B7 56-56-156 Greek small letter eta
432 math \x03B8 56-56-1456 Greek small letter theta
433 math \x03B9 56-56-24 Greek small letter iota
434 math \x03BA 56-56-13 Greek small letter kappa
435 math \x03BB 56-56-123 Greek small letter lamda
436 math \x03BC 56-56-134 Greek small letter mu
437 math \x03BD 56-56-1345 Greek small letter nu
438 math \x03BE 56-56-1346 Greek small letter xi
439 math \x03BF 56-56-135 Greek small letter omicron
440 math \x03C0 56-56-1234 Greek small letter pi
441 math \x03C1 56-56-1235 Greek small letter rho
442 math \x03C2 5-56-234 Greek small letter final sigma
443 math \x03C3 56-56-234 Greek small letter sigma
444 math \x03C4 56-56-2345 Greek small letter tau
445 math \x03C5 56-56-136 Greek small letter upsilon
446 math \x03C6 56-56-124 Greek small letter phi
447 math \x03C7 56-56-12346 Greek small letter chi
448 math \x03C8 56-56-13456 Greek small letter psi
449 math \x03C9 56-56-2456 Greek small letter omega
450 math \x03D1 5-56-1456 GREEK THETA simbol
451 math \x03D5 5-56-124 GREEK phi simbol
452 math \x03D6 5-56-1234 GREEK PI simbol
453 math \x03F1 5-56-1235 Greek rho simbol
454 math \x03F5 5-56-15 Greek epsilon simbol
455
456 #uppercase greek letters
457 math \x0391 56-456-1 Greek capital letter alpha
458 math \x0392 56-456-12 Greek capital letter beta
459 math \x0393 56-456-1245 Greek capital letter gamma
460 math \x0394 56-456-145 Greek capital letter delta
461 math \x0395 56-456-15 Greek capital letter epsilon
462 math \x0396 56-456-1356 Greek capital letter zeta
463 math \x0397 56-456-156 Greek capital letter eta
464 math \x0398 56-456-1456 Greek capital letter theta
465 math \x0399 56-456-24 Greek capital letter iota
466 math \x039A 56-456-13 Greek capital letter kappa
467 math \x039B 56-456-123 Greek capital letter lamda
468 math \x039C 56-456-134 Greek capital letter mu
469 math \x039D 56-456-1345 Greek capital letter nu
470 math \x039E 56-456-1346 Greek capital letter xi
471 math \x039F 56-456-135 Greek capital letter omicron
472 math \x03A0 56-456-1234 Greek capital letter pi
473 math \x03A1 56-456-1235 Greek capital letter rho
474 math \x03A3 56-456-234 Greek capital letter sigma
475 math \x03A4 56-456-2345 Greek capital letter tau
476 math \x03A5 56-456-136 Greek capital letter upsilon
477 math \x03A6 56-456-124 Greek capital letter phi
478 math \x03A7 56-456-12346 Greek capital letter chi
479 math \x03A8 56-456-13456 Greek capital letter psi
480 math \x03A9 56-456-2456 Greek capital letter omega
481
482 #Mathematical symbols
483 sign \x00B0 56-4-356 Deegree sign
484 math \x2032 56-6-3 PRIME, angle minute
485 math \x2033 56-6-6-3 Double prime, angle second
486