Debian Codegraph @

tables/xh-za-g2.ctb

raw
1 # liblouis: isiXhosa/isiZulu braille code (grade 2)
2
3 #-display-name: isiXhosa contracted braille
4 #-index-name: isiXhosa, contracted
5
6 #-copyright: 2021, South African Braille Authority
7 #-license: LGPLv2.1
8
9 # Copyright (C) 2021 South African Braille Authority <http://www.sabrailleauthority.org.za>
10 #
11 # This file is part of liblouis.
12 #
13 # liblouis is free software: you can redistribute it and/or modify it
14 # under the terms of the GNU Lesser General Public License as
15 # published by the Free Software Foundation, either version 2.1 of
16 # the License, or (at your option) any later version.
17 #
18 # liblouis is distributed in the hope that it will be useful, but
19 # WITHOUT ANY WARRANTY; without even the implied warranty of
20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 # Lesser General Public License for more details.
22 #
23 # You should have received a copy of the GNU Lesser General Public
24 # License along with liblouis. If not, see
25 # <http://www.gnu.org/licenses/>.
26
27 #+language: xh
28 #+type: literary
29 #+contraction: full
30 #+grade: 2
31 #+direction: both
32
33 #+system: ubc-nguni
34 # "UBC" stands for "Unified Braille Code" and is a generalization of UEB.
35 # See https://sabrailleauthority.org.za/unified-braille-code-ubc.
36
37 # The same table is used for isiXhosa and isiZulu. IsiXhosa and
38 # isiZulu are two of the most widely spoken languages in South
39 # Africa. They belong to the Nguni language family and are mutually
40 # intelligible. IsiXhosa is predominent in the Eastern and Western
41 # Cape provinces, but is spoken across South Africa. IsiZulu is
42 # predominent in the KwaZulu-Natal province, but is also widely spoken
43 # in South Africa.
44 #
45 # The Nguni braille code is based on UEB, therefore the grade 1 system
46 # is identical to UEB. The grade 2 system is simple, with less than 40
47 # contractions and no complex rules, yet it achieves approximately 21%
48 # contraction.
49 #
50 # No additional codes such as Nemeth or computer braille codes are
51 # used; the unified Nguni code is used also for technical material.
52
53 # The table has been created by Christo de Klerk <[email protected]> and
54 # Laurent Cadet de Fontenay <[email protected]>, according to the
55 # official code for these languages under the auspices of and approved
56 # by the South African Braille Authority (SABA).
57
58 # The table is maintained by Christo de Klerk <[email protected]>.
59
60 #-author: Laurent Cadet de Fontenay <[email protected]>
61 #-author: Christo de Klerk <[email protected]>
62 #-maintainer: Christo de Klerk <[email protected]>
63
64 include xh-za-g1.utb
65
66 multind 56-6 nocontractsign capsletter
67
68 seqdelimiter -—
69 seqdelimiter ‐ \x2010
70 seqdelimiter ‑ \x2011
71 seqdelimiter – \x2013
72 seqdelimiter — \x2014
73 seqbeforechars ([{"“'‘
74 seqafterchars )]}"”'’.,;:.!?…
75 seqafterpattern 'd
76 seqafterpattern 'll
77 seqafterpattern 're
78 seqafterpattern 's
79 seqafterpattern 't
80 seqafterpattern 've
81 seqafterpattern ’d
82 seqafterpattern ’ll
83 seqafterpattern ’re
84 seqafterpattern ’s
85 seqafterpattern ’t
86 seqafterpattern ’ve
87 #TODO: all caps words (see lou_translateString.c:inSequence()
88 seqafterpattern 'D
89 seqafterpattern 'LL
90 seqafterpattern 'RE
91 seqafterpattern 'S
92 seqafterpattern 'T
93 seqafterpattern 'VE
94 seqafterexpression '([DSTdst]|ll|[rv]e|LL|[RV]E)
95 seqafterpattern ’D
96 seqafterpattern ’LL
97 seqafterpattern ’RE
98 seqafterpattern ’S
99 seqafterpattern ’T
100 seqafterpattern ’VE
101 seqafterexpression ’([DSTdst]|ll|[rv]e|LL|[RV]E)
102
103 # Alphabetic Wordsigns
104 # - standing alone
105 # - followed by 'd, 'll, 're, 's, 't, 've and standing alone
106 # - These rules need to be adapted for isiXhosa, but may cause no harm left in place.
107
108 # must be before contractions?
109 match %[^_~]%<* kodwa (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?%>*%[^_~] 13
110 match %[^_~]%<* ukuthi (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?%>*%[^_~] 136
111
112 nofor word kodwa 13
113 nofor word ukuthi 136
114
115
116 contraction k
117 contraction u
118
119 contraction K
120 contraction U
121
122
123 # 10.2 Strong Wordsigns
124 # - 10.2.1 standing alone
125 # - 10.2.2 followed by 'd, 'll, 're, 's, 't, 've and standing alone
126 # - Unsure if the following appear standing alone in isiXhosa, but rules can be adapted as appropriate and have been left in place for now to cater for English words.
127
128 match %[^_~]%<* ya (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?%>*%[^_~] 16
129 match %[^_~]%<* sh (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?%>*%[^_~] 146
130 match %[^_~]%<* th (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?%>*%[^_~] 1456
131
132 nofor word ya 16
133 nofor word sh 146
134 nofor word th 1456
135
136
137
138 # 10.3 Strong Groupsigns
139 # - It may be that some of these appear as strong contractions in isiXhosa, but they are lumped together here.
140 # - Rules are also to be adapted as appropriate.
141
142 # ba
143 always ba 126
144 # match (%[^_~]%<*) ba ('([DSTdst]|ll|[rv]e|LL|[RV]E))?(%>*%[^_~]) =
145
146 # ka
147 always ka 2346
148
149 # kh
150 always kh 23456
151
152 # ku
153 always ku 346
154
155 # la
156 always la 156
157
158 # le
159 always le 1246
160
161 # na
162 always na 12356
163
164 # nd
165 always nd 12346
166
167 # ne
168 always ne 34
169
170 # ng
171 always ng 123456
172
173 # ni
174 always ni 345
175
176 # sh
177 always sh 146
178 # match (%[^_~]%<*) sh (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?(%>*%[^_~]) =
179
180 # th
181 always th 1456
182 # match (%[^_~]%<*) th (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?(%>*%[^_~]) =
183
184 # wa
185 always wa 12456
186
187 # we
188 always we 1256
189
190 # ya
191 always ya 16
192 # match (%[^_~]%<*) ya (['’]([DSTdst]|ll|[rv]e|LL|[RV]E))?(%>*%[^_~]) =
193
194 # zi
195 always zi 246
196
197
198
199
200 # 10.5 Lower Wordsigns
201
202 attribute 1 +=*,.?!"'“”‘’ punctuation with only lower dots (except hyphens)
203 #class lowerdotspunc +=*,.?!"'“”‘’
204
205 # ye
206 match %[^_]|%[^_~]%<*[([{] ye %[^_]|[)}\]]%>*%[^_~] 26
207 partword ye 26
208 nofor always ye 26
209
210 # si
211 match %[^_]|%[^_~]%<*[([{] si %[^_]|[)}\]]%>*%[^_~] 35
212 nofor always si 35
213
214
215
216 # 10.6 Lower Groupsigns
217
218 # bh
219 match %a bh %a 23
220 nofor sufword bh 23
221
222 empmatchbefore empmatchafter match %a bh %a 23
223 nofor midword bh 23
224
225 # bh 10.6.5 10.6.6
226 empmatchbefore empmatchafter match %a bh %a 23
227
228 nofor midword bh 23
229
230 empmatchafter match %[^_~]%<* bh [Cc]![Hh] 23
231 empmatchafter match %[^_~]%<* bh [Ee][Ss][Tt] 23
232 empmatchafter match %[^_~]%<* bh [ABDFGHIJLMNOPQRTUVWXYZabdfghijlmnopqrtuvwxyz] 23
233
234 nofor begword bh 23
235
236 # nt 10.6.5 10.6.6
237 empmatchbefore empmatchafter match %a nt %a 25
238
239 nofor midword nt 25
240
241
242 empmatchafter match %[^_~]%<* nt [Cc]![Hh] 25
243 empmatchafter match %[^_~]%<* nt [Ee][Ss][Tt] 25
244 empmatchafter match %[^_~]%<* nt [ABDFGHIJLMNOPQRTUVWXYZabdfghijlmnopqrtuvwxyz] 25
245
246 nofor begword nt 25
247
248
249 # hl 10.6.5 10.6.6
250 empmatchbefore empmatchafter match %a hl %a 235
251
252 nofor midword hl 235
253
254 # ph
255 begmidword ph 356
256
257 empmatchbefore empmatchafter match %a ph %a 356
258
259 nofor midword ph 356
260
261 empmatchafter match %[^_~]%<* ph [Cc]![Hh] 356
262 empmatchafter match %[^_~]%<* ph [Ee][Ss][Tt] 356
263 empmatchafter match %[^_~]%<* ph [ABDFGHIJLMNOPQRTUVWXYZabdfghijlmnopqrtuvwxyz] 356
264
265 nofor begword ph 356
266
267 # si
268 partword si 35
269 word sisi 35-234-24
270
271 # 10.7 Initial-Letter Contractions
272
273 # emva
274 always emva 5-15
275
276 # emuva
277 always emuva 45-15
278
279 # fana
280 always fana 5-124
281
282 # futhi
283 always futhi 456-124
284
285 # jalo
286 always jalo 5-245
287
288 # kakhulu
289 always kakhulu 5-2346
290
291 # khona
292 always khona 5-23456
293
294 # kanti
295 always kanti 45-2346
296
297 # lokho
298 always lokho 5-123
299
300 # lapha
301 always lapha 5-156
302
303 # lapho
304 always lapho 45-156
305
306 # uma
307 always uma 5-134
308
309 # ama
310 always ama 456-134
311
312 # noma
313 always noma 5-1345
314
315 # ngoba
316 always ngoba 5-123456
317
318 # ngoku
319 always ngoku 45-123456
320
321 # onke
322 always onke 5-135
323
324 # pansi
325 always pansi 5-1234
326
327 # uthi
328 match %[^_~]%<*|![ao] uthi - 5-136
329 nofor always uthi 5-136
330
331 # ukuba
332 always ukuba 45-136
333
334 # ulu
335 always ulu 456-136
336
337 # nxa
338 always nxa 5-1346
339
340
341
342 # 10.8 Final-Letter Groupsigns
343
344 # None applicable
345
346
347 # 10.9 Shortforms not including 10.9.3
348 #TODO: 2.6.4
349
350 attribute 2 BCDFGHJKLMNPQRSTVWXZbcdfghjklmnpqrstvwxz'’ no vowels (except w) and 2.6.4
351
352 match %[_~^]%<* phambi ([Ss]|['’][Ss])?%>*%[_~^] 356-12
353 match %[_~^]%<* phambili ([Ss]|['’][Ss])?%>*%[_~^] 356-12-123
354 match %[_~^]%<* phandle ([Ss]|['’][Ss])?%>*%[_~^] 356-145
355 match %[_~^]%<* phakathi ([Ss]|['’][Ss])?%>*%[_~^] 356-13
356 match %[_~^]%<*%a* phantsi (%2%a*)?%>*%[_~^] 356-234
357 match %[_~^]%<* phezu ([Ss]|['’][Ss])?%>*%[_~^] 356-1356
358 match %[_~^]%<* phezulu ([Ss]|['’][Ss])?%>*%[_~^] 356-1356-123
359
360 nofor word phambi 356-12
361 nofor word phambili 356-12-123
362 nofor word phandle 356-145
363 nofor word phakathi 356-13
364 nofor word phantsi 356-234
365 nofor word phezu 356-1356
366 nofor word phezulu 356-1356-123
367
368 contraction 0b phambi
369 contraction 0bl phambili
370 contraction 0d phandle
371 contraction 0k phakathi
372 contraction 0s phantsi
373 contraction 0z phezu
374 contraction 0zl phezulu
375
376
377 # Shape symbols require a grade 1 indicator (Section 3.22.1)
378 contraction \x25a0 ■ filled (solid) square
379 contraction \x25a1 □ square
380 contraction \x25a7 ▧ shaded square (upper left to lower right)
381 contraction \x25b2 ▲ filled (solid) (equilateral) triangle
382 contraction \x25b3 △ regular (equilateral) triangle
383 contraction \x25cb ○ circle
384 contraction \x25cd ◍ shaded circle
385
386