Debian Codegraph @

tables/en-gb-g1.utb

raw
1 # liblouis: U.K. English Grade 1 table
2 #
3 # ------------
4 #-name: British English grade 1
5 #-index-name: English, U.K., uncontracted
6 #-display-name: English uncontracted braille as used in the U.K.
7 #
8 #+language:en
9 #+region:en-GB
10 #+type:literary
11 #+contraction:no
12 #+grade:1
13 #+system:bauk
14 # Marked as "direction:forward" by Bue Vester-Andersen
15 # as tests only run forward.
16 #+direction:forward
17 #
18 # TODO: Please correct the metadata above. It is not meant to be
19 # accurate nor complete. It hasn't been verified by the table
20 # author yet. It is merely an attempt by the liblouis maintainers
21 # to get some sensible initial values in place.
22 #
23 # TODO: Please add a reference to official documentation about
24 # the implemented braille code. Preferably submit the documents
25 # to https://github.com/liblouis/braille-specs.
26 # ------------
27 #
28 # Based on the braille contraction modules in BRLTTY
29 #
30 # Copyright (C) 1995-2004 by The BRLTTY Team.
31 # Copyright (C) 2004 ViewPlus Technologies, Inc., www.viewplustech.com
32 # Copyright (C) 2004 Computers to Help People, Inc., www.chpi.org
33
34 # This file is free software; you can redistribute it and/or
35 # modify it under the terms of the GNU Lesser General Public
36 # License as published by the Free Software Foundation; either
37 # version 2.1 of the License, or (at your option) any later version.
38
39 # This file is distributed in the hope that it will be useful,
40 # but WITHOUT ANY WARRANTY; without even the implied warranty of
41 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
42 # Lesser General Public License for more details.
43
44 # You should have received a copy of the GNU Lesser General Public
45 # License along with this file; if not, write to the Free Software
46 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
47 # liblouis comes with ABSOLUTELY NO WARRANTY.
48
49 # Maintained by Paul Wood, Torch Trust: paulw torchtrust.org
50
51 include text_nabcc.dis All display opcodes
52
53 include ukchardefs.cti All character definition opcodes
54
55
56 # accented letters
57
58 lowercase \x00E0 1 # a with grave
59 lowercase \x00E1 1 # a with acute
60 lowercase \x00E2 1 # a with circumflex
61 lowercase \x00E3 1 # a with tilde
62 lowercase \x00E4 1 # a with dieresis
63 lowercase \x00E5 1 # a with ring above
64 lowercase \x00E6 1 # letter ae
65 lowercase \x00E7 14 # c with cedilla
66 lowercase \x00E8 15 # e with grave
67 lowercase \x00E9 15 # e with acute
68 lowercase \x00EA 15 # e with circumflex
69 lowercase \x00EB 15 # e with dieresis
70 lowercase \x00EC 24 # i with grave above
71 lowercase \x00ED 24 # i with acute above
72 lowercase \x00EE 24 # i with circumflex
73 lowercase \x00EF 24 # i with dieresis
74 lowercase \x00F0 15 # letter eth
75 lowercase \x00F1 1345 # n with tilde
76 lowercase \x00F2 135 # o with grave above
77 lowercase \x00F3 135 # o with acute above
78 lowercase \x00F4 135 # o with circumflex
79 lowercase \x00F5 135 # o with tilde
80 lowercase \x00F6 135 # o with dieresis
81
82 # \x00D7 × multiplication sign ----------------------
83
84 lowercase \x00F8 135 # o with stroke
85 lowercase \x00F9 136 # u with grave above
86 lowercase \x00FA 136 # u with acute above
87 lowercase \x00FB 136 # u with circumflex above
88 lowercase \x00FC 136 # u with dieeresis
89 lowercase \x00FD 13456 # y with acute above
90 lowercase \x00FE 2345 # letter thorn
91 letter \x00DF 2346 # small sharp s
92 lowercase \x0175 2456 w with circumflex
93 lowercase \x0177 13456 # y with circumflex
94 lowercase \x00ff 13456 # y with diaeresis
95 lowercase \x1EF3 13456 # y with grave
96
97 largesign \x00C0 4-1 [C0] upper a grave
98 largesign \x00E0 4-1 [E0] lower a grave
99
100 largesign \x00C1 4-1 [C1] upper a acute
101 largesign \x00E1 4-1 [E1] lower a acute
102
103 largesign \x00C2 4-1 [C2] upper a circumflex
104 largesign \x00E2 4-1 [E2] lower a circumflex
105
106 largesign \x00C3 4-1 [C3] upper a tilde
107 largesign \x00E3 4-1 [E3] lower a tilde
108
109 largesign \x00C4 4-1 [C4] upper a dieresis
110 largesign \x00E4 4-1 [E4] lower a dieresis
111
112 largesign \x00C5 4-1 [C5] upper a ring
113 largesign \x00E5 4-1 [E5] lower a ring
114
115 largesign \x00C6 1-15 [C6] upper ae
116 largesign \x00E6 1-15 [E6] lower ae
117
118 largesign \x00C7 4-14 [C7] upper c cedilla
119 largesign \x00E7 4-14 [E7] lower c cedilla
120
121 largesign \x00C8 4-15 [C8] upper e grave
122 largesign \x00E8 4-15 [E8] lower e grave
123
124 largesign \x00C9 4-15 [C9] upper e acute
125 largesign \x00E9 4-15 [E9] lower e acute
126
127 largesign \x00CA 4-15 [CA] upper e circumflex
128 largesign \x00EA 4-15 [EA] lower e circumflex
129
130 largesign \x00CB 4-15 [CB] upper e dieresis
131 largesign \x00EB 4-15 [EB] lower e dieresis
132
133 largesign \x00CC 4-24 [CC] upper i grave
134 largesign \x00EC 4-24 [EC] lower i grave
135
136 largesign \x00CD 4-24 [CD] upper i acute
137 largesign \x00ED 4-24 [ED] lower i acute
138
139 largesign \x00CE 4-24 [CE] upper i circumflex
140 largesign \x00EE 4-24 [EE] lower i circumflex
141
142 largesign \x00CF 4-24 [CF] upper i dieresis
143 largesign \x00EF 4-24 [EF] lower i dieresis
144
145 largesign \x00D0 4-15 [D0] upper eth
146 largesign \x00F0 4-15 [F0] lower eth
147
148 largesign \x00D1 4-1345 [D1] upper n tilde
149 largesign \x00F1 4-1345 [F1] lower n tilde
150
151 largesign \x00D2 4-135 [D2] upper o grave
152 largesign \x00F2 4-135 [F2] lower o grave
153
154 largesign \x00D3 4-135 [D3] upper o acute
155 largesign \x00F3 4-135 [F3] lower o acute
156
157 largesign \x00D4 4-135 [D4] upper o circumflex
158 largesign \x00F4 4-135 [F4] lower o circumflex
159
160 largesign \x00D5 4-135 [D5] upper o tilde
161 largesign \x00F5 4-135 [F5] lower o tilde
162
163 largesign \x00D6 4-135 [D6] upper o dieresis
164 largesign \x00F6 4-135 [F6] lower o dieresis
165
166 largesign \x00D8 4-135 [D8] upper o slash
167 largesign \x00f8 4-135 [F8] lower o slash
168
169 largesign \x00D9 4-136 [D9] upper u grave
170 largesign \x00F9 4-136 [F9] lower u grave
171
172 largesign \x00DA 4-136 [DA] upper u acute
173 largesign \x00FA 4-136 [FA] lower u acute
174
175 largesign \x00DB 4-136 [DB] upper u circumflex
176 largesign \x00FB 4-136 [FB] lower u circumflex
177
178 largesign \x00DC 4-136 [DC] upper u dieresis
179 largesign \x00FC 4-136 [FC] lower u dieresis
180
181 largesign \x00DD 4-13456 [DD] upper y acute
182 largesign \x00FD 4-13456 [FD] lower y acute
183
184 largesign \x00DE 4-2345 [DE] upper t horn
185 largesign \x00FE 4-2345 [FE] lower t horn
186
187 largesign \x00DF 234-234 (DF) lower ss
188
189
190 largesign \x0174 4-2456 lower w circumflex
191 largesign \x0175 4-2456 upper w circumflex
192
193 largesign \x0176 4-13456 upper y circumflex
194 largesign \x0177 4-13456 lower y circumflex
195
196 largesign \x0178 4-13456 upper y with dieresis
197 largesign \x00FF 4-13456 lower y with dieresis
198
199 largesign \x1EF2 4-13456 upper y with grave
200 largesign \x1EF3 4-13456 lower y with grave
201
202 hyphen \x2010 36 # 8208 hyphen
203
204 # punctuation \x2011 36 # 8209 non-breaking hyphen
205 punctuation \x2011 23478 # 8209 non-breaking hyphen
206
207 punctuation \x2212 36
208 noback always \x2212 36
209 always \s\x2212\s 36-36
210 midnum \x2013 36-3456
211 always \x2013 56-36 # 8211 smart minus sign
212
213
214 noback always \x201C 236 # 8220 smart opening double quote
215 noback always \x201D 356 # 8221 smart closing double quote
216 noback always \x201E 236 # 8222 smart double low quotation mark
217 noback always \x201F 356 # 8223 smart double high reverse quotation mark
218
219 # Uppercase letters
220 base uppercase \x00C0 \x00E0 # a with grave
221 base uppercase \x00C1 \x00E1 # a with acute
222 base uppercase \x00C2 \x00E2 # a with circumflex
223 base uppercase \x00C3 \x00E3 # a with tilde
224 base uppercase \x00C4 \x00E4 # a with dieresis
225 base uppercase \x00C5 \x00E5 # a with ring above
226 base uppercase \x00C6 \x00E6 # letter ae
227 base uppercase \x00C7 \x00E7 # c with cedilla
228 base uppercase \x00C8 \x00E8 # e with grave
229 base uppercase \x00C9 \x00E9 # e with acute
230 base uppercase \x00CA \x00EA # e with circumflex
231 base uppercase \x00CB \x00EB # e with dieresis
232 base uppercase \x00CC \x00EC # i with grave above
233 base uppercase \x00CD \x00ED # i with acute above
234 base uppercase \x00CE \x00EE # i with circumflex
235 base uppercase \x00CF \x00EF # i with dieresis
236 base uppercase \x00D0 \x00F0 # letter eth
237 base uppercase \x00D1 \x00F1 # n with tilde
238 base uppercase \x00D2 \x00F2 # o with grave above
239 base uppercase \x00D3 \x00F3 # o with acute above
240 base uppercase \x00D4 \x00F4 # o with circumflex
241 base uppercase \x00D5 \x00F5 # o with tilde
242 base uppercase \x00D6 \x00F6 # o with dieresis
243 base uppercase \x00D8 \x00F8 # o with stroke
244 base uppercase \x00D9 \x00F9 # u with grave above
245 base uppercase \x00DA \x00FA # u with acute above
246 base uppercase \x00DB \x00FB # u with circumflex above
247 base uppercase \x00DC \x00FC # u with dieeresis
248 base uppercase \x00DD \x00FD # y with acute above
249 base uppercase \x00DE \x00FE # letter thorn
250 base uppercase \x0174 \x0175 # w with circumflex
251 base uppercase \x0176 \x0177 # y with circumflex
252 base uppercase \x0178 \x00ff # y with diaeresis
253 base uppercase \x1EF2 \x1EF3 # y with grave
254
255 # Braille indicators
256 numsign 3456 number sign, just a dots operand
257 multind 56-6 letsign capsletter
258 letsign 56
259 capsletter 6
260 begcapsword 6-6
261 endcapsword 6-3
262 emphclass italic
263 emphclass underline
264 emphclass bold
265 begemph italic 46
266 endemph italic 46-3
267 begemph bold 46-46
268 endemph bold 46-3
269 begcomp 6-346
270 endcomp 6-346
271
272 # the decimal digits
273 include litdigits6Dots.uti
274
275 # Letters are defined in en-chardefs
276
277 #single letter words
278 largesign a 1
279 largesign A 1
280 word I 24
281 word O 135
282 word o 135
283
284 # abbreviations
285 contraction ie
286 word i.e. 24-256-15-256
287 contraction ok
288 word o.k. 135-256-13-256
289 contraction eg
290
291 # Roman Numerals
292 contraction ii
293 contraction iii
294 contraction iv
295 contraction vi
296 contraction vii
297 contraction viii
298 contraction ix
299 contraction xi
300 contraction xii
301 contraction xiii
302
303
304 # punctuation
305 prepunc " 236
306 postpunc " 356
307 always \s-" 36-36-356
308 always \s-” 36-36-356
309 always ..." 3-3-3-356
310 always …" 3-3-3-356
311 always ...” 3-3-3-356
312 always …” 3-3-3-356
313 always ?" 236-356
314 word " 236
315 begnum ' 3
316 prepunc ' 6-236
317 postpunc ' 356-3
318 postpunc '' 356
319 postpunc ''' 356-3-356
320
321 noback always ' 3
322 word 'ave 3-1-1236-15
323 word ’ave 3-1-1236-15
324 midendword 'an 3-1-1345
325 midendword ’an 3-1-1345
326 endword 'ah 3-1-125
327 endword ’ah 3-1-125
328 midendword 'am 3-1-134
329 midendword ’am 3-1-134
330 word c'mon 14-3-134-135-1345
331 word c’mon 14-3-134-135-1345
332 endword 'd 3-145
333 endword ’d 3-145
334 begword d' 145-3
335 begword d’ 145-3
336 word 'em 3-15-134
337 word ’em 3-15-134
338 word 'ear 3-15-1-1235
339 word ’ear 3-15-1-1235
340 midendword e'e 15-3-15
341 midendword e’e 15-3-15
342 word goin' 1245-135-24-1345-3
343 word goin’ 1245-135-24-1345-3
344 begword ha'p 125-1-3-1234
345 begword ha’p 125-1-3-1234
346 endword 'll 3-123-123
347 endword ’ll 3-123-123
348 endword 'm 3-134
349 endword ’m 3-134
350 endword 'n 3-1345
351 endword ’n 3-1345
352 begword o'd 135-3-145
353 begword o’d 135-3-145
354 begword o'l 135-3-123
355 begword o’l 135-3-123
356 word 'ome 3-135-134-15
357 word ’ome 3-135-134-15
358 endword 're 3-1235-15
359 endword ’re 3-1235-15
360 endword 'ry 3-1235-13456
361 endword ’ry 3-1235-13456
362 endword 'r 3-1235
363 endword ’r 3-1235
364 endword 's 3-234
365 endword ’s 3-234
366 endword 't 3-2345
367 endword ’t 3-2345
368 word 'tis =
369 word 'twas =
370 word 'uns 3-136-1345-234
371 word ’uns 3-136-1345-234
372 endword 've 3-1236-15
373 endword ’ve 3-1236-15
374 midnum , 3
375 noback always , 2
376 midnum . 2
377 #decpoint . 2 # removed to sort out translations such as p.11
378 noback always . 256
379 noback always ; 23
380 midnum : 3456
381 noback always : 25
382 #endnum ! 6-235
383 noback always ! 235
384 begnum # 4
385 always # 4-3456
386 midnum / 456-34-3456
387 always / 456-34
388 always // 345
389 noback always ? 236
390 endnum % 0-25-1234
391 always % 25-1234
392 midnum ^ 346-3456
393 always ^ 456-126
394 always ~ 4-156
395 always & 4-12346
396 midnum * 0-56-236-3456
397 always * 35-35
398 repeated *** 35-35-0-35-35-0-35-35
399 noback always ( 2356
400 prepunc ( 2356
401 postpunc ) 2356
402 begword ( 2356
403 endword ) 2356
404 always [ 6-2356
405 always ] 2356-3
406 always { 46-2356
407 always } 46-2356
408 always -com 36-14-135-134
409 endword -to 36-2345-135 pointed-to resource
410 endword -by 36-12-13456 used-by
411 # always _ 78
412 prepunc `` 236
413 postpunc ` 6-236
414 prepunc ` 6-236
415 postpunc ’ 356-3 end single curly quote
416 prepunc ’ 356-3
417 always ‘ 6-236 start single curly quote
418 noback always ` 4
419 begword @ 4-2346
420 noback always @ 2346
421 always \\ 5-16
422 always | 5-123
423 repeated \x00a0 0 no break space
424 repeated --- 36-36-36
425
426 # repeated ___ 78-78-78
427 repeated ___ 46-46-46
428
429 repeated ::: 25-25-25
430
431 repeated === 56-2356-56-2356-56-2356
432 repeated ~~~ 4-156-4-156-4-156
433 always \s-\s 36-36
434 always \s-\scom 36-36-14-135-134
435 always ... 3-3-3
436 always .\s.\s. 3-3-3 . . .
437 # always \x2026 3-3-3 # 8230 MS Word smart ellipsis
438
439 # the hyphen
440 always \s–\s 36-36
441 #always - 36
442 repeated ­­­ 36-36-36
443 always \s­\s 36-36
444 midword - 36
445 joinword - 36
446 begword - 36
447 hyphen - 36
448
449
450
451 # mathematical symbols
452 #decpoint . 2 # removed to sort out translations such as p.11
453 noback always < 246
454 joinword = 56-2356
455 joinnum = 56-2356
456 noback always > 135
457 midnum + 0-56-235-3456
458 begnum + 56-235
459 joinnum + 56-235
460 joinword + 56-235
461 midnum - 36-3456 removed for verse references
462 midnum \x2013 36
463 #always - 36
464 joinnum × 56-236
465 joinword × 56-236
466 midnum ÷ 0-56-256-3456 division sign
467 joinnum ÷ 56-256
468 joinword ÷ 56-256
469 begnum £ 123
470 always £ 4-123 pounds
471
472 # other special characters
473 always © 45-14 copyright
474 sign ™ 45-2345 trademark
475 sign ® 45-1235 registered
476 always ¶ 1234-345 paragraph
477 always § 234-3 section
478 noback always ° 356 degrees
479 begnum $ 256
480 always $ 4-256
481 always ¢ 4-14 cents
482 sign € 4-15 euro
483 always € 4-15 euro
484 always ¥ 4-13456 yen
485 always µ 2-134 mu
486
487 # special character sequences
488 compbrl :// URLs
489 compbrl www.
490
491 compbrl .com
492 compbrl .edu
493 compbrl .gov
494 compbrl .mil
495 compbrl .net
496 compbrl .org
497 compbrl .doc
498 compbrl .xml
499 compbrl .xsl
500 compbrl .htm
501 compbrl .html
502 compbrl .tex
503 compbrl .txt
504 compbrl .gif
505 compbrl .jpg
506 compbrl .png
507 compbrl .wav
508 compbrl .tar
509 compbrl .zip
510 compbrl .uk
511
512 # include countries.cti
513
514 # Problems handled with context
515 #context _$l["."]$l @256 U.S.
516 noback context _$d["a"] @56-1
517 noback context _$d["A"] @56-1
518 #corrects Capital A's after a number ending up with letter sign AFTER Caps sign
519 noback pass2 @6-56 @56-6
520 include braille-patterns.cti
521 # Remove space between word and italic signs
522 noback pass2 [@0-46-3] @46@3
523 noback pass2 [@46@0] @46
524 #pass2 \s+ \s
525 noback pass2 [@345-0-0] @345@0
526 noback pass2 [@345-0-0-0] @345@0
527