Debian Codegraph @

tables/hu-hu-g2.ctb

raw
1 # liblouis: Hungarian Grade 2 table
2 #
3 # -----------
4 #-index-name: Hungarian, contracted
5 #-display-name: Hungarian contracted braille
6 #
7 #+language:hu
8 #+type:literary
9 #+contraction:full
10 #+grade:2
11 # Marked as "direction:forward" by Bue Vester-Andersen
12 # as tests only run forward.
13 #+direction:both
14 #
15 # Braille-specs documentation link: https://liblouis.io/braille-specs/hungarian
16 # -----------
17 #
18 # Copyright (C) 2017-2022 Attila Hammer from IT Foundation for the Visually Impaired - Hungary. www.infoalap.hu
19 #
20 # This file is part of liblouis.
21 #
22 # liblouis is free software: you can redistribute it and/or modify it
23 # under the terms of the GNU Lesser General Public License as
24 # published by the Free Software Foundation, either version 2.1 of the
25 # License, or (at your option) any later version.
26 #
27 # liblouis is distributed in the hope that it will be useful, but
28 # WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30 # Lesser General Public License for more details.
31 #
32 # You should have received a copy of the GNU Lesser General Public
33 # License along with liblouis. If not, see
34 # <http://www.gnu.org/licenses/>.
35 #
36 # Maintained by Attila Hammer [email protected]
37 #
38 # If you found bugs with hungarian grade1 table, report it with following address:
39 # Attila Hammer <[email protected]
40 #If you have a Launchpad account, report table related requests with following bug tracker address: https://bugs.launchpad.net/belin
41
42 attribute notaccentedletters abcdefghijABCDEFGHIJ-
43 attribute accentedletters áéíöőüűúóklmnopqrstuvwxyz
44 include hu-backtranslate-correction.dis
45 include hu-chardefs.cti
46 include hu-hu-g2_exceptions.cti
47 include hu-exceptionwords.cti
48 include hu-backtranslate-word-corrections.cti
49 include braille-patterns.cti
50 #Braille indicators
51 nonumsign 6
52 numsign 3456
53 capsletter 46a
54 noback pass4 @46a ? # remove in a second pass because single capital letters are not indicated
55 begcapsword 46
56 emphclass italic
57 emphclass underline
58 emphclass bold
59 begemph italic 356
60 endemph italic 236
61 begemph bold 356
62 endemph bold 236
63 begemph underline 356
64 endemph underline 236
65 begcomp 456-346
66 endcomp 456-156
67 # literary forms of the decimal digits
68 include litdigits6Dots.uti
69 include hu-hu-g1_braille_input.cti
70 midendnumericmodechars ,:.-
71 numericnocontchars abcdefghijABCDEFGHIJ
72 attribute notaccentedletters abcdefghijABCDEFGHIJ-
73 attribute accentedletters áéíöőüűúóklmnopqrstuvwxyz
74 #Correcting forward translation when after a number following a hyphen
75 #character, and a literary digit letter (for example a, b, c, etc).
76 #This situation not need putting the dot 6 combination
77 noback pass2 $D[@36-6]%notaccentedletters @36
78 noback pass3 $D[@36-46a-6]%notaccentedletters @36
79 noback pass2 $D[@36-36-6]%notaccentedletters @36-36
80 #Correct forward translation, when after a number not need putting the dot 6 prefix the v abbreviation (for example the 4-gyel string
81 noback pass2 $D[@6-1236] @1236
82 #Correcting backward translation too, because for example the „#bj-ai”,
83 #„#be-ei” eurobraille output since Liblouis 3.9.0 version producing numbers
84 #the back translation, not the „20-ai”, „25-ei” strings.
85 #wrong backtranslated output is „20-19”, „25-59”
86 nofor pass2 $D[@36-36]%notaccentedletters @36-36-6
87 nofor pass2 $D[@36]%notaccentedletters @36-6
88 nofor correct "—annyi" "--ai"
89 nofor correct "—ennyi" "--ei"
90 nofor correct $D1-30["--annyi"] "--ai"
91 nofor correct $D1-30["--ennyi"] "--ei"
92 nofor correct $D1-30["-annyi"] "-ai"
93 nofor correct $D1-30["-ennyi"] "-ei"
94 #Special letter replacements
95 always cs 146 General need replacing cs letters with a combined dot combination
96 always ccs 146-146 General need replacing ccs letters with a combined dot combination
97 always csz 14-156
98 always cszs 146-345
99 always ccsz 14-14-156
100 always gy 1456 General need replacing gy letters with a combined dot combination
101 always ggy 1456-1456 General need replacing ggy letters with a combined dot combination
102 always ly 456
103 always lly 456-456 General need replacing ly letters with a combined dot combination
104 always ny 1246 General need replacing ny letters with a combined dot combination
105 always nny 1246-1246 General need replacing nny letters with a combined dot combination
106 always ty 1256 General need replacing ty letter pairs with a combined dot combination
107 always tty 1256-1256 General need replacing ty letter pairs with a combined dot combination
108 always sz 156 General need replacing sz letters with a combined dot combination
109 always ssz 156-156
110 always zsz 126-156
111 always zs 345 General need replacing zs letters with a combined dot combination
112 always zzs 345-345 General need replacing zs letters with a combined dot combination
113 always " 236 Need this rule to present one left quotation mark if the user firsttyping the " character
114 always ( 2346 Need this rule to the user always see 2346 dot combination if type first ( character a text
115 always ) 1356 Need this rule to the user always see 2346 dot combination if type first ) character a text
116 #Other exceptions With need marking different dot combination
117 always # 123456
118 always $ 5-145
119 always % 3456-245-356
120 always ~ 5-2345
121 always < 5-13
122 always > 46-2
123 always / 5-2
124 always | 5-1245
125 always { 5-2346
126 always } 5-1356
127 always [ 46-2346
128 always ] 46-1356
129 always \\ 5-16
130 always ^ 5-124
131 always ` 5-14
132 noback always Æ 1
133 always lyú 456-346
134 always lysz 456-156
135
136 #define context rules related need classes
137 attribute orszag O
138 attribute nevelo A
139 attribute oneromannumber I
140 attribute fiveromannumber V
141 attribute tenromannumber X
142 attribute fiftyromannumber L
143 attribute hundredromannumber C
144 attribute nagysz S
145
146 #handle extra special abbreviation rules with context opcodes
147 #not always need abbreviate the ország word, for example person and continent names. The next rule handle this situation
148 noback context $U["rszág"]$s$U$a @1235-156-4-1245
149
150 #general, need abbreviate the "volt" word, but this word some time meaning hungarian language the electric measurement.
151 #following context rules handles this extra situation
152 noback context [%nevelo$s"Volt"]$s"egy"$s @2-1236-135-123-2345
153 noback context ["volt"]$s"körül" @1236-135-123-2345
154 noback context ["egyenlő\shány\svolt"] @15-1456-15-1345-123-12456-0-125-4-1246-0-1236-135-123-2345
155 noback context $l["ány\svolt\sáram"] @4-1246-0-1236-135-123-2345-0-4-1235-1-134
156
157 #some context rules with the "az" and "a" verbs related
158 noback context ["az\sokoz"] @1-126-0-135-13-135-126
159 noback context ["az\saz\s"] @1-126-0-3 General, if a text part have the "az" word, need joining the second word before a dot3 cell dot. But, if a text part have the az word two times, the first az word not need abbreviate with dot2 and joining the second az word, the first az word need presenting with following dots: 1-126-0. An example: az az igazság
160 noback context ["az\sa\s"] @1-126-0-2
161 noback context [%nevelo"z\sa\s"] @1-126-0-2
162 noback context ["az\s"]"is"$p @1-126-0
163 noback context ["az\s"]"is\s" @1-126-0
164 noback context [%nevelo"z\sis\s"] @1-126-0-24-0
165 noback context [%nevelo"z\s"]"is"$p @1-126-0
166 noback context ["a\s"]"és" @1-0
167 noback context ["az\segyelőre"] @1-126-0-15-1456-15-123-12456-1235-15
168 noback context ["az\sugyanis"] @1-126-0-136-1456-1-1345-24-234
169 noback context ["az\sadja"] @1-126-0-1-145-245-1
170 noback context ["az\sadta"] @1-126-0-1-145-2345-1
171 noback context ["az\ssem"]$s @1-126-0-234-15-134
172 noback context ["az\ssem"]$p @1-126-0-234-15-134
173 noback context ["az\saz\ssem"]$p @1-126-0-1-126-0-234-15-134
174 noback context ["az\slenne"] @1-126-0-123-15-1345-1345-15
175 noback context ["az\slesz"] @1-126-0-123
176 noback context ["az\sleszel"] @1-126-0-123-15-156-15-123
177 noback context ["az\sleszek"] @1-126-0-123-15-156-15-13
178 noback context ["az\s"]"volt" @1-126-0
179 noback context [%nevelo"z"]$s"az"$s @1-126
180 noback context [%nevelo"z"]$s"okoz" @1-126
181 noback context [%nevelo"z"]$s"egyelőre" @1-126
182 noback context [%nevelo"z"]$s"ugyanis" @1-126
183 noback context [%nevelo"z"]$s"adja" @1-126
184 noback context [%nevelo"z"]$s"adta" @1-126
185 noback context [%nevelo"z"]$s"lenne" @1-126
186 noback context [%nevelo"z"]$s"sem" @1-126
187 noback context [%nevelo"z"]$s"lesz"$s @1-126
188 noback context [%nevelo"z"]$s"lesz" @1-126
189 noback context [%nevelo"z"]$s"lesz"$p @1-126
190 noback context [%nevelo"z"]$s"volt" @1-126
191 noback context [%nevelo"z"]$s"volt"$p @1-126
192 noback context ["az\salábbi"] @1-126-0-1-123-4-12-12-24
193 noback context [%nevelo"z\salábbi"] @1-126-0-1-123-4-12-12-24
194 #general, after comma character need joining the next text part with after the comma character, but need some context rules to this braille standard works gracefully
195 noback context [",\saz\sa\s"] @2-1-126-0-2
196 noback context [",\saz\saz\s"] @2-1-126-0-3
197 noback context [",\s"] @2
198 noback context [",\n"] @2
199 noback context [",\n\r"] @2
200 noback context $a["\na\s"] @0-2
201 #handle roman numbers related special rules
202 noback context [%oneromannumber]"." @46-24
203 noback context $U[%oneromannumber]"." @24
204 noback context [%fiveromannumber]"." @46-1236
205 noback context $U[%fiveromannumber]"." @1236
206 noback context [%tenromannumber]"." @46-1346
207 noback context $U[%tenromannumber]"." @1346
208 noback context [%fiftyromannumber]"." @46-123
209 noback context $U[%fiftyromannumber]"." @123
210 noback context [%hundredromannumber]"." @46-14
211 noback context $U[%hundredromannumber]"." @14
212
213 #some country names related context rules
214 noback context $U"io"$s["de"]$s$U"anerio" @145-15
215 noback context $U"io"$s["de"]$s$U"aneiro" @145-15
216
217 #General, need abbreviate end of llal suffix part, but the vállal word have some exceptions, depending the text context.
218 #Following context rules gracefully handle this different situations
219 noback context ["vállal"]$s"ige\s" @1236-4-123-123-1-123
220 noback context "ciát"$s["vállal"] @1236-4-123-123-1-123 For example the "garanciát vállal" context not need abbreviate the end of llal suffix
221 noback context "séget"$s["vállal"] @1236-4-123-123-1-123 For example felelősséget vállal context not need abbreviate the end of llal word suffix
222 noback context ["kockázatot\svállal"] @13-135-14-13-4-126-1-2345-135-2345-0-1236-4-123-123-1-123 This text part doesn't need abbreviate the llal suffix with end of vállal word, and the kockázatot text part need presenting with contracted word
223 noback context ["vállal"]$s"el" @1236-4-123-123-1-123
224 noback context ["vállal"]$s"felelősséget" @1236-4-123-123-1-123
225 noback context $l["em\svállal"] @0-1236-4-123-123-1-123 The "Nem vállal" and "nem vállal" text parts doesn't need abbreviate the end of llal suffix, only the nem and Nem word part
226 noback context $l["észt\svállal"] @16-156-2345-0-1236-4-123-123-1-123
227 noback context "ligha"$s["vállal"] @1236-4-123-123-1-123
228 noback context ["vállal"]$s"állás" @1236-4-123-123-1-123
229 noback context ["vállal"]$s"munkát" @1236-4-123-123-1-123
230 noback context ["vállal"]$s$s"fogcsonk" @1236-4-123-123-1-123
231 noback context ["vállal"]$s"fogcsonk" @1236-4-123-123-1-123
232 noback context ["vállal"]$s"kezes" @1236-4-123-123-1-123
233 noback context ["vállal"]$s"magára" @1236-4-123-123-1-123
234 always átvállal 4-2345-1236-4-123-123-1-123
235 always bevállal 12-15-1236-4-123-123-1-123
236 always elvállal 15-123-1236-4-123-123-1-123
237 noback context ["\f,"] @2
238 noback context $l["+"]$s$l @0-1234-123-136-156 If a word ends with a + simbol and follow up a next word after a space character, need replacing the + punctuation character with the "plusz" text
239
240 #names related context rules, when not need abbreviate a general abbreviated word part
241 noback context $U["oldog"]$s$U$a @135-123-145-135-1245 For example Boldog Gizella name not need abbreviate the boldog word part with 12-1245 dots
242 noback context $U["oldog"]$l1-30$s$U$a @135-123-145-135-1245 For example Boldogfalvi Tamás name not need abbreviate the boldog word part with 12-1245 dots
243 noback context $U$l1-30$s["de"]$s$U$a @145-15 General, need abbrewiate the de word with 1545 dots, but hungarian literary texts some spanish or portuguese names need replacing the abbreviated de word with normal 145-15 dots. For example: Rio de Janeiro,
244 noback context $U["ond"]$l1-30$s$U$a @135-1345-145 General need abbreviate the gond word part with 1245-145 dots, but in names, this is not need. For example: Gonda János, Gondos Réka.
245 noback context [%nagysz"zabad"]$s$U$a @156-1-12-1-145
246 noback context [%nagysz"zabad"]$l1-30$s$U$a @156-1-12-1-145
247 always ponta-kormá 1234-135-1345-2345-1-36-13-135-1235-134-4
248
249 noback context [", "] @2
250 noback context $U["emmel"]$s$U$a @15-134-134-15-123 For example Temmel Anikó, Temmel Márta names not need apply the suffix abbreviation
251 noback context $U["immel"]$s$U$a @24-134-134-15-123 For example Szabó-Kimmel Tamás related person exception
252 noback context $U["an"]$s$U"ogh" @1-1345
253
254 #Some pass2 step related rules
255 noback pass2 @135-1235-156-4-1245-1456 @135-1245-1456
256 noback pass2 @1234-16-1345-126 @1234-126
257 noback pass2 @13-15-1235-15-234-16-234-234-15-123 @13-234-16-234-1236
258 noback pass2 @13-15-1235-15-234-16-234 @13-234-16-234
259 noback pass2 @12345-156-156-15-13 @12345-15-13
260 noback pass2 @124-135-1235-1235-4-234 @1235-1235-4-234
261 noback pass2 @145-16-123-136-2345-4-1345 @145-16-123-136
262 noback pass2 @1236-24-123-4-1245 @1236-1245
263 space \xe000 46a
264 noback pass2 @1236-1-13-135-13$s$s.@1236-24-123-4-1245 @1236-1-13-135-13-0-1236-24-123-4-1245
265 always ä 5-1
266 uppercase Ä 5-1
267 noback context $l$p["–"] @36-36
268 noback context $l["–"] @36-36
269 noback always \\_ 6 letter sign before Roman page numbers
270 undefined 26