Debian Codegraph @

tables/da-dk-g26-lit_1993.ctb

raw
1 # Liblouis: Danish table for 6 dots grade 2 forward translation (literary) 1993
2 #
3 # Copyright (C) 2014, 2016-2021, 2023, Bue Vester-Andersen <[email protected]>
4 #
5 # This file is part of liblouis.
6 #
7 # liblouis is free software: you can redistribute it and/or modify it
8 # under the terms of the GNU Lesser General Public License as
9 # published by the Free Software Foundation, either version 2.1 of the
10 # License, or (at your option) any later version.
11 #
12 # liblouis is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with liblouis. If not, see
19 # <http://www.gnu.org/licenses/>.
20 # This table is for 6 dots grade 2 literary Braille, embossable, not meant for back-translation.
21 #
22 # Version: Bue Vester-Andersen, December 2022
23
24 ### Table Metadata
25
26 #-name: Dansk forkortet 6-punkt 1993
27 #-index-name: Danish, contracted, 6-dot, 1993
28 #-display-name: Danish 6-dot contracted braille (1993 standard)
29
30 #+language: da
31 #+type: literary
32 #+contraction: full
33 #+grade: 2
34 #+dots: 6
35 #+direction: forward
36 #+system: ddp
37 #+version: 1993
38
39 #-has-nocross: yes
40
41 # Display opcodes
42 include da-dk-octobraille_1993.dis
43
44 ### Spaces
45
46 # These ctrl-chars have to have a representation, so that they can be properly converted back and forth.
47 space \t 2478 CHARACTER TABULATION
48 space \n 678 LINE FEED (LF)
49 space \v 1368 LINE TABULATION
50 space \f 12378 FORM FEED (FF)
51 space \r 257 CARRIAGE RETURN (CR)
52 space \x00a0 a
53
54 include spaces.uti
55
56 ### Character definitions
57
58 # Definition of dot cells
59 punctuation ! 235 EXCLAMATION MARK
60 punctuation " 2356 QUOTATION MARK
61 punctuation ' 4 APOSTROPHE
62 punctuation ( 236 LEFT PARENTHESIS
63 punctuation ) 356 RIGHT PARENTHESIS
64 punctuation , 2 COMMA
65 punctuation - 36 HYPHEN-MINUS
66 punctuation . 3 FULL STOP
67 punctuation / 34 SLASH
68 punctuation : 25 COLON
69 punctuation ; 23 SEMICOLON
70 punctuation ? 26 QUESTION MARK
71 lowercase a 1
72 lowercase b 12
73 lowercase c 14
74 lowercase d 145
75 lowercase e 15
76 lowercase f 124
77 lowercase g 1245
78 lowercase h 125
79 lowercase i 24
80 lowercase j 245
81 lowercase k 13
82 lowercase l 123
83 lowercase m 134
84 lowercase n 1345
85 lowercase o 135
86 lowercase p 1234
87 lowercase r 1235
88 lowercase s 234
89 lowercase t 2345
90 lowercase u 136
91 lowercase v 1236
92 lowercase y 13456
93
94 #use 8 dots for the following chars to avoid conflict with indicators
95 lowercase q 123457
96 lowercase w 24567
97 lowercase x 13467
98 lowercase z 13567
99 punctuation | 4568 VERTICAL LINE
100 punctuation ~ 467 TILDE (changed by pass 2 to not conflict with indicators
101 lowercase \x00fc 12567
102
103 include digits6Dots.uti
104
105 punctuation \x00a7 346 SECTION SIGN (0xa7)
106
107 lowercase \x00e5 16 LATIN LETTER A WITH RING ABOVE
108 lowercase \x00e6 345 LATIN LETTER AE
109 lowercase \x00f8 246 LATIN LETTER O WITH STROKE
110
111 # Uppercase letters
112 base uppercase A a
113 base uppercase B b
114 base uppercase C c
115 base uppercase D d
116 base uppercase E e
117 base uppercase F f
118 base uppercase G g
119 base uppercase H h
120 base uppercase I i
121 base uppercase J j
122 base uppercase K k
123 base uppercase L l
124 base uppercase M m
125 base uppercase N n
126 base uppercase O o
127 base uppercase P p
128 base uppercase R r
129 base uppercase S s
130 base uppercase T t
131 base uppercase U u
132 base uppercase V v
133 base uppercase Y y
134 base uppercase Q q
135 base uppercase W w
136 base uppercase X x
137 base uppercase Z z
138 base uppercase \x00dc \x00fc
139 base uppercase \x00c5 \x00e5 LATIN LETTER A WITH RING ABOVE
140 base uppercase \x00c6 \x00e6 LATIN LETTER AE
141 base uppercase \x00d8 \x00f8 LATIN LETTER O WITH STROKE
142
143 # cover all other Braille patterns
144 include braille-patterns.cti
145
146 # Characters with two or more cells
147
148 punctuation # 45-3456 NUMBER SIGN
149 sign $ 45-256 DOLLAR SIGN
150 math % 245-356 PERCENT SIGN
151 sign & 6-12346 AMPERSAND
152 punctuation * 6-35 ASTERISK
153 math + 45-235 PLUS SIGN
154 math < 45-134 LESS-THAN SIGN
155 math = 45-2356 EQUALS SIGN
156 math > 45-234 GREATER-THAN SIGN
157 sign @ 45-1 COMMERCIAL AT
158 punctuation [ 5-236 LEFT SQUARE BRACKET
159 punctuation \\ 45-16 REVERSE SLASH
160 punctuation ] 5-356 RIGHT SQUARE BRACKET
161 punctuation ^ 45-346 CIRCUMFLEX ACCENT
162 punctuation _ 45-36 LOW LINE
163 punctuation ` 4 GRAVE ACCENT
164 punctuation { 45-246 LEFT CURLY BRACKET
165 punctuation } 45-135 RIGHT CURLY BRACKET
166 math \x00f7 45-256 DIVISION SIGN
167
168 # Misc unicode characters
169 include da-dk-6miscChars_1993.cti
170
171 # Litdigits
172 include litdigits6Dots.uti
173
174 undefined 26
175
176 ### Braille indicators and special characters
177
178 #hyphen - 36
179
180 letsign 6
181
182 noletsign Ii\x00df\x0149\x0152\x0153
183
184 # Emphasis opcodes
185 emphclass italic
186 emphclass underline
187 emphclass bold
188
189 begemphphrase italic 56
190 endemphphrase italic after 56
191
192 begemphphrase bold 56
193 endemphphrase bold after 56
194
195 begemphphrase underline 56
196 endemphphrase underline after 56
197
198 capsletter 46
199 begcapsword 456
200 endcapsword 68 # Used during back-translation to stop overflow of capsword
201 multind 6-46 letsign capsletter
202 multind 46-6 capsletter letsign
203 multind 6-456 letsign begcapsword
204 multind 68-6-46 endcapsword letsign capsletter
205 multind 68-6-456 endcapsword letsign begcapsword
206 multind 68-6 endcapsword letsign
207
208 numsign 3456
209 multind 6-3456 letsign numsign
210
211 #class of none-space characters that demand double dashes
212 # Used in context lines later.
213 #must be the first class defined.
214 attribute charsWDoubleDash .,?!/:"'() # class w
215
216 ### Correct - forward translation
217
218 # Chars that don't require a space before percent and permille:
219 attribute charsBeforePercent "(\x201e\x0084\x201c\x0093\x201d\x0094\x00ab\x00bb #class x
220 noback correct `["%"] *
221 noback correct !$sx["%"] "\s%"
222 noback correct `["\x2030"] *
223 noback correct !$sx["\x2030"] "\s\x2030"
224 noback correct `["\x0089"] *
225 noback correct !$sx["\x0089"] "\s\x2030"
226
227 # Chars to be treated like digits when switching back to letter mode
228 attribute extraDigits \x00bc\x00bd\x00be
229
230 #Use the "correct" opcode to convert chars that can't be back-translated
231 # and make the table more simple.
232
233 # Dashes
234 attribute dashes \x2013\x2014\x0096\x0097\x00ad
235 noback correct %dashes "-"
236
237 attribute quotes \x201e\x0084\x201c\x0093\x201d\x0094\x00ab\x00bb
238 noback correct %quotes "\""
239
240 attribute apostrophes `\x201a\x0082\x2039\x008b\x2018\x0091\x2019\x0092\x203a\x009b\x00b4
241 noback correct %apostrophes "'"
242
243 # Convert most single caps to lowercase
244
245 #Special abbreviations with imbedded small letters.
246 # Must be handled by case in this version of liblouis
247 noback correct "KAbB" "KABB"
248 noback correct "CUDiM" "CUDIM"
249
250 swapcc UpperLower ABCDEFGHIJKLMNOPQRSTUVWXYZ\x00c0\x00c1\x00c2\x00c3\x00c4\x00c5\x00c6\x00c7\x00c8\x00c9\x00ca\x00cb\x00cc\x00cd\x00ce\x00cf\x00d0\x00d1\x00d2\x00d3\x00d4\x00d5\x00d6\x00d8\x00d9\x00da\x00db\x00dc\x00dd\x00de\x008a\x008c abcdefghijklmnopqrstuvwxyz\x00e0\x00e1\x00e2\x00e3\x00e4\x00e5\x00e6\x00e7\x00e8\x00e9\x00ea\x00eb\x00ec\x00ed\x00ee\x00ef\x00f0\x00f1\x00f2\x00f3\x00f4\x00f5\x00f6\x00f8\x00f9\x00fa\x00fb\x00fc\x00fd\x00fe\x009a\x009c
251 swapcc UpperLowerExt \x0100\x0102\x0104\x0106\x0108\x010a\x010c\x010e\x0110\x0112\x0114\x0116\x0118\x011a\x011c\x011e\x0120\x0122\x0124\x0126\x0128\x012a\x012c\x012e\x0130\x0132\x0134\x0136\x0139\x013b\x013d\x013f\x0141\x0143\x0145\x0147\x014a\x014c\x014e\x0150\x0152\x0154\x0156\x0158\x015a\x015c\x015e\x0160\x0162\x0164\x0166\x0168\x016a\x016c\x016e\x0170\x0172\x0174\x0176\x0178\x0179\x017b\x017d\x0386\x0388\x0389\x038a\x038c\x038e\x038f\x0391\x0392\x0393\x0394\x0395\x0396\x0397\x0398\x0399\x039a\x039b\x039c\x039d\x039e\x039f\x03a0\x03a1\x03a3\x03a4\x03a5\x03a6\x03a7\x03a8\x03a9 \x0101\x0103\x0105\x0107\x0109\x010b\x010d\x010f\x0111\x0113\x0115\x0117\x0119\x011b\x011d\x011f\x0121\x0123\x0125\x0127\x0129\x012b\x012d\x012f\x0131\x0133\x0135\x0137\x013a\x013c\x013e\x0140\x0142\x0144\x0146\x0148\x014b\x014d\x014f\x0151\x0153\x0155\x0157\x0159\x015b\x015d\x015f\x0161\x0163\x0165\x0167\x0169\x016b\x016d\x016f\x0171\x0173\x0175\x0177\x00ff\x017a\x017c\x017e\x03ac\x03ad\x03ae\x03af\x03cc\x03cd\x03ce\x03b1\x03b2\x03b3\x03b4\x03b5\x03b6\x03b7\x03b8\x03b9\x03ba\x03bb\x03bc\x03bd\x03be\x03bf\x03c0\x03c1\x03c3\x03c4\x03c5\x03c6\x03c7\x03c8\x03c9
252
253 # I is a special case
254 noback correct _$sp["I"]$sp "i"
255 noback correct `["I"]$sp "i"
256 noback correct _$sp["I"]~ "i"
257
258 noback correct $sSpu[%UpperLower]$u %UpperLower
259 noback correct `[%UpperLower]$u %UpperLower
260
261 noback correct $sSpu[%UpperLowerExt]$u %UpperLowerExt
262 noback correct `[%UpperLowerExt]$u %UpperLowerExt
263
264
265 ### Pass 1
266
267 # Punctuations, math and numbers
268 midnum , 2
269 midnum . 3
270 # the following rule is doubtful, but probably does not apply.
271 #midnum - 36
272 endnum - 36
273 midnum / 34
274 midnum : 25
275 nofor midnum ^ 346
276 nofor midnum ^ 45-346
277
278 midnum ^ 45-346
279 midnum \x00d7 45-3-3456
280
281 # Remove space between § and numbers.
282 noback begnum § 346
283 begnum §\s 346
284 begnum §§\s 346-346
285 always §§ 346-346
286
287 # Punctuation
288 prepunc " 2356
289 postpunc " 2356
290 always /\s 6-34-0
291 always \s/ 0-6-34
292 prepunc - 36
293 postpunc - 36
294 always :- 25-36
295 always ;- 23-36
296 always --- 36-36-36
297 always ---- 36-36-36-36
298 always ----- 36-36-36-36-36
299 # Star enclosed by parentheses
300 always (*) 236-35-356
301
302 before punctuation before sign always ( 6-236
303
304 # these characters must be separated from ")" by a letsign.
305 attribute SepToRightpar Jj%'\x2030\x0089\x201a\x0082\x2039\x009b\x2018\x0091\x2019\x0092\x203a\x009b
306 after SepToRightpar always ) 6-356
307 after punctuation after sign always ) 6-356
308
309 prepunc ( 236
310 postpunc ) 356
311 always .) 3-356
312 always ( 6-236
313 always ) 6-356
314
315 always ... 3-3-3
316
317 # Exclamation and "fra"
318 always fra! 124-1235-1-235
319 always !fra 235-124-1235-1
320 always ?! 26-6-235
321 always )! 356-6-235
322 always (!) 236-6-235-356
323 always "fra" 2356-124-1235-1-2356
324 always "!" 2356-6-235-2356
325 always !! 235-235
326 always !!! 235-235-235
327 always !!!! 235-235-235-235
328 always !!!!! 235-235-235-235-235
329 always '! 4-6-235
330 always \s! 0-6-235
331 prepunc ! 6-235
332 always \x00a1 6-256
333
334 ### Contractions ###
335
336 #Special sequences, urls emails and file names.
337
338 nocont $
339 nocont \x005c
340 nocont @
341 nocont ://
342 nocont www
343
344 # Ensure no contractions in English ordinal numbers
345 endnum nd 6-1345-145
346 endnum st 6-234-2345
347 endnum ve 6-1236-15
348
349 #Words
350 word af 356
351 always 'af 4-1-124
352 word aldrig 1-35
353 word aig =
354 word alle 1-15
355 begnum ae 6-1-15
356 contraction ae
357 word allerede 1-123-1235
358 begnum alr 6-1-123-1235
359 contraction alr
360 word alligevel 1-123-1236
361 begnum alv 6-1-123-1236
362 contraction alv
363 word altid 1-2345-145
364 begnum atd 6-1-2345-145
365 contraction atd
366 word altså 1-16
367 begnum aå 6-1-16
368 contraction aå
369 word at 1
370
371 word blevet 12-2345
372 begnum bt 6-12-2345
373 contraction bt
374 word blev 12-1236
375 begnum bv 6-12-1236
376 contraction bv
377 word blive 12-3456
378 word bve 12-1236-15
379 word bliver 12
380
381 word derefter 23456-1356
382 word derst =
383 word deres 256
384 word derfor 23456-124
385 word derf =
386 word derigennem 23456-24-12456
387 word derige 1456-1235-24-12456
388 word dermed 23456-134
389 word derm =
390 word derned 23456-1246
391 word derne =
392 word derop 23456-135
393 word dero =
394 word derover 23456-1346
395 word deror =
396 word derpå 23456-1234
397 word derp =
398 word dersom 23456-234
399 word ders =
400 word dertil 23456-2345
401 word dert =
402 word derunder 23456-12345
403 word derved 23456-1236
404 word din 145-1345
405 begnum dn 6-145-1345
406 contraction dn
407 word disse 145-234
408 begnum ds 6-145-234
409 contraction ds
410 word dit 145-2345
411 begnum dt 6-145-2345
412 contraction dt
413 word du 145
414
415 word efter 1356
416 word eller 15
417 word endnu 15-136
418 begnum eu 6-15-136
419 contraction eu
420
421 word fik 124-13
422 begnum fk 6-124-13
423 contraction fk
424 word fordi 124-145
425 begnum fd 6-124-145
426 contraction fd
427 word forskellige 124-123456-15
428 word fske =
429 word forskelligt 124-123456-2345
430 word fskt =
431 word forskellig 124-123456
432 word fsk =
433 word for 124
434 word fra 235
435 word første 124-1356-15
436 word først 124-1356
437 word før 246
438
439 word ganske 1245-123456
440 word gennem 12456
441 word ge =
442 word gik 1245-13
443 begnum gk 6-1245-13
444 contraction gk
445 word gør 1245
446
447 word ham 236
448 word hans 13456-234
449 begnum ys 6-13456-234
450 contraction ys
451 word han 13456
452 word har 125
453 word havde 125-1456
454 word hde =
455 word have 125-3456
456 word hve =
457 word helt 125-2345
458 begnum ht 6-125-2345
459 contraction ht
460 word hendes 125-234
461 begnum hs 6-125-234
462 contraction hs
463 word hende 125-145
464 begnum hd 6-125-145
465 contraction hd
466 word hun 136
467 word hvad 2456
468 word hv =
469 word hvis 2456-234
470 word hvs =
471 word hvordan 34-1
472 word hvora 34-6-1
473 word hvorefter 34-1356
474 word hvorst 34-234-2345
475 word hvorfor 34-124
476 word hvorf 34-6-124
477 word hvorigennem 34-24-12456
478 word hvorledes 34-15
479 word hvore 34-6-15
480 word hvormed 34-134
481 word hvorm 34-6-134
482 word hvornår 34-1345
483 word hvorn 34-6-1345
484 word hvorover 34-1346
485 word hvoror 34-135-1235
486 word hvorpå 34-1234
487 word hvorp 34-6-1234
488 word hvortil 34-2345
489 word hvort 34-6-2345
490 word hvorunder 34-12345
491 word hvornd 34-1345-145
492 word hvorved 34-1236
493 word hvorv 34-6-1236
494 word hvor 34
495
496 word igennem 24-12456
497 word ige =
498 word igen 35
499 word (igen) 236-24-1245-126-356
500 word ig =
501 word ikke 24-13
502 begnum ik 6-24-13
503 contraction ik
504 word imidlertid 24-24
505 begnum ii 6-24-24
506 contraction ii
507
508 word jeg 245
509 word jeg) 245-6-356
510
511 word kan 13
512 word kommer 13-156
513 word ker =
514 word kommet 13-346
515 word ket =
516 word komme 13-146
517 word kme =
518 word kom 13-134
519 begnum km 6-13-134
520 contraction km
521 word kunne 13-1246
522 word kne =
523
524 word ligesom 123-234
525 begnum ls 6-123-234
526 contraction ls
527 word lige 123
528 word lille 123-123
529 begnum ll 6-123-123
530 contraction ll
531
532 word mange 134-12456
533 word mge =
534 word med 134
535 word megen 146-126
536 word meen =
537 word meget 146-346
538 word meet =
539 word mellem 146-134
540 word mem =
541 word men 146
542 word me =
543 word min 134-1345
544 begnum mn 6-134-1345
545 contraction mn
546 word mit 134-2345
547 begnum mt 6-134-2345
548 contraction mt
549 word måske 134-123456
550 word msk =
551 word måtte 134-1256
552 word mte =
553
554 word naturligvis 1345-2345-1236
555 begnum ntv 6-1345-2345-1236
556 contraction ntv
557 word nd =
558 word ned 1246
559 word ne =
560 word nogen 1345-1345
561 begnum nn 6-1345-1345
562 contraction nn
563 word noget 1345-2345
564 begnum nt 6-1345-2345
565 contraction nt
566 word nogle 1345-123-15
567 begnum nle 6-1345-123-15
568 contraction nle
569 word når 1345
570
571 word også 14-16
572 begnum cå 6-14-16
573 contraction cå
574 word og 14
575 word omkring 135-134-13
576 begnum omk 6-135-134-13
577 contraction omk
578 word op 135
579 word or =
580 word over 1346
581
582 word på 1234
583
584 word ret 12356
585 word re 1235-15
586 word rigtige 1235-12456
587 word rge =
588 word rigtigt 1235-2345
589 begnum rt 6-1235-2345
590 contraction rt
591 word rigtig 1235
592
593 word sagde 234-1456
594 word sammen 234-134
595 begnum sm 6-234-134
596 contraction sm
597 word samme 234-146
598 word sme =
599 word selvfølgelig 234-1236-124
600 begnum svf 6-234-1236-124
601 contraction svf
602 word selv 234-1236
603 begnum sv 6-234-1236
604 contraction sv
605 word sidste 234-1356-15
606 word sste =
607 word sidst 234-1356
608 word sst =
609 word sin 234-1345
610 begnum sn 6-234-1345
611 contraction sn
612 word sit 234-2345
613 begnum st 6-234-2345
614 contraction st
615 word skal 123456
616 word sk =
617 word skulle 123456-123-15
618 word skle =
619 word snart 234-1235
620 begnum sr 6-234-1235
621 contraction sr
622 word som 234
623 word sådan 16-1
624 begnum åa 6-16-1
625 contraction åa
626 word således 16-15
627 begnum åe 6-16-15
628 contraction åe
629 word så 16
630
631 word tid 2345-145
632 begnum td 6-2345-145
633 contraction td
634 word tilbage 2345-12
635 begnum tb 6-2345-12
636 contraction tb
637 word til 2345
638
639 word under 12345
640
641 word var- =
642 word var. =
643 word var 36
644 word ve 3456
645 word ved 1236
646 word ville 1236-123-15
647 begnum vle 6-1236-123-15
648 contraction vle
649 word vil 1236-123
650 begnum vl 6-1236-123
651 contraction vl
652 word været 1236-2345
653 begnum vt 6-1236-2345
654 contraction vt
655 word være 345
656
657 #Part words
658 nocross always den 12346
659 nocross always der 23456
660 nocross always det 2346
661 nocross always de 1456
662 nocross always en 126
663 nocross always er 156
664 nocross always et 346
665 nocross always ge 12456
666 #nocross always hvor 34
667 nocross always hv 2456
668 nocross always ig 35
669 nocross always me 146
670 nocross always nd 12345
671 nocross always ne 1246
672 nocross always or 1346
673 nocross always re 12356
674 nocross always sk 123456
675 nocross always st 1356
676 nocross always te 1256
677
678 # Numsign/"ve", special case when back-translating
679 noback nocross always ve 3456
680
681 # Additional words containing "hvor"
682 # these are made explicit in 6-dots to handle / better
683
684 word hvoraf 34-1-124
685 word hvorfra 34-124-1235-1
686 word hvorhen 34-125-126
687 word hvorhenne 34-125-126-1246
688 word hvori 34-24
689 word hvoriblandt 34-24-12-123-1-12345-2345
690 word hvorimellem 34-24-146-123-123-15-134
691 word hvorimod 34-24-134-135-145
692 word hvorlænge 34-123-345-1345-12456
693 word hvormange 34-134-1-1345-12456
694 word hvorom 34-135-134
695 word hvormeget 34-146-1245-346
696 word hvorudfra 34-136-145-124-1235-1
697 word hvorvidt 34-1236-24-145-2345
698 word ihvorvel 24-34-3456-123
699
700 # Common combinations of one word contractions with slash
701 word af/på 356-34-1234
702 word af/på 356-34-68-1234
703 word du/i 145-34-24
704 word du/i 145-34-68-24
705 word eller/og 15-34-14
706 word eller/og 15-34-68-14
707 word fra/til 235-34-2345
708 word fra/til 235-34-68-2345
709 word han/hun 13456-34-136
710 word han/hun 13456-34-68-136
711 word hun/han 136-34-13456
712 word hun/han 136-34-68-13456
713 word i/du 24-34-145
714 word i/du 24-34-68-145
715 word og/eller 14-34-15
716 word og/eller 14-34-68-15
717 word over/under 1346-34-12345
718 word over/under 1346-34-68-12345
719 word på/af 1234-34-356
720 word på/af 1234-34-68-356
721 word til/fra 2345-34-235
722 word til/fra 2345-34-68-235
723 word under/over 12345-34-1346
724 word under/over 12345-34-68-1346
725
726 # Ensure no one-letter word contraction before or after a dash
727
728 endword -af 36-1-124
729 begword af- 1-124-36
730 endword -altid 36-1-2345-145
731 begword altid- 1-2345-145-36
732 endword -at 36-1-2345
733 endword -a 36-6-1
734 begword at- 1-2345-36
735 endword -og 36-135-1245
736 endword -c 36-6-14
737 begword og- 135-1245-36
738 endword -du 36-145-136
739 endword -d 36-6-145
740 begword du- 145-136-36
741 endword -efter 36-15-124-2345-156
742 endword -z 36-6-1356
743 begword efter- 15-124-2345-156-36
744 midword -efter- 36-1356-36
745 endword -e 36-6-15
746 endword -for 36-124-1346
747 endword -f 36-6-124
748 begword for- 124-1346-36
749 endword -fra 36-124-1235-1
750 begword fra- 124-1235-1-36
751 endword -g 36-6-1245
752 endword -gennem 36-1245-126-1246-134
753 begword gennem- 1245-126-1246-134-36
754 endword -ham 36-125-1-134
755 begword ham- 125-1-134-36
756 endword -han 36-125-1-1345
757 endword -y 36-6-13456
758 begword han- 125-1-1345-36
759 endword -har 36-125-1-1235
760 endword -h 36-6-125
761 begword har- 125-1-1235-36
762 endword -hun 36-125-136-1345
763 endword -u 36-6-136
764 begword hun- 125-136-1345-36
765 endword -j 36-6-245
766 endword -kan 36-13-1-1345
767 endword -k 36-6-13
768 begword kan- 13-1-1345-36
769 endword -lige 36-123-24-12456
770 endword -l 36-6-123
771 begword lige- 123-24-12456-36
772 endword -med 36-146-145
773 endword -m 36-6-134
774 begword med- 146-145-36
775 endword -men 36-134-126
776 begword men- 134-126-36
777 endword -ned 36-1246-145
778 begword ned- 1246-145-36
779 endword -når 36-1345-16-1235
780 endword -n 36-6-1345
781 begword når- 1345-16-1235-36
782 endword -op 36-135-1234
783 endword -o 36-6-135
784 begword op- 135-1234-36
785 endword -over 36-135-1236-156
786 endword -x 36-6-1346
787 begword over- 135-1236-156-36
788 endword -på 36-1234-16
789 endword -p 36-6-1234
790 begword på- 1234-16-36
791 midword -på- 36-1234-36
792 endword -ret 36-1235-346
793 begword ret- 1235-346-36
794 midword -ret- 36-12356-36
795 endword -rigtig 36-1235-35-2345-35
796 endword -r 36-6-1235
797 begword rigtig- 1235-35-2345-35-36
798 midword -rigtig- 36-1235-36
799 endword -skal 36-123456-1-123
800 begword skal- 123456-1-123-36
801 midword -skal- 36-123456-36
802 endword -som 36-234-135-134
803 endword -s 36-6-234
804 begword som- 234-135-134-36
805 midword -som- 36-234-36
806 endword -så 36-234-16
807 endword -å 36-6-16
808 begword så- 234-16-36
809 endword -til 36-2345-24-123
810 endword -t 36-6-2345
811 begword til- 2345-24-123-36
812 midword -til- 36-2345-36
813 endword -under 36-136-1345-23456
814 begword under- 136-1345-23456-36
815 midword -under- 36-12345-36
816 endword -ved 36-1236-15-145
817 endword -v 36-6-1236
818 begword ved- 1236-15-145-36
819 midword -ved- 36-1236-36
820
821
822 ### Context rules - forward translation
823
824 # Substitutions for joinnum rules with common math signs
825 noback context $dy$s["-"$s]$dy @36
826 noback context $dy$s["+"$s]$dy @235
827 noback context $dy$s["\x00d7"$s]$dy @3
828 noback context $dy$s["\x00f7"$s]$dy @256
829 noback context $dy$s["="$s]$dy @2356
830
831 # Space on each side of = when between letters or punctuation.
832 noback context $lp["="]$lp @0-2356-0
833
834 # Exclamation at beginning of string
835 noback context `["!"] @6-235
836
837 # Ensure two dashes where appropriate.
838 noback context $w["-"]$w @36
839 noback context $sw["-"]$sw @36-36
840 noback context `["-"]$sw @36-36
841 noback context $sw["-"]~ @36-36
842 noback context !$sw["-"]~ @36
843 noback context `["-"]~ @36-36
844
845 # Ensure letsign between letter and numsign
846 noback context $l[]$D @6
847
848 # No "nd", "hv", "or", or "st" after a digit and a letsign
849 noback context $dy["hv"] @6-125-1236
850 noback context $dy$Spm["hv"] @6-125-1236
851 noback context $dy["nd"] @6-1345-145
852 noback context $dy$Spm["nd"] @6-1345-145
853 noback context $dy["or"] @6-135-1235
854 noback context $dy$Spm["or"] @6-135-1235
855 noback context $dy["st"] @6-234-2345
856 noback context $dy$Spm["st"] @6-234-2345
857 noback context $dy["te"] @6-2345-15
858 noback context $dy$Spm["te"] @6-2345-15
859
860
861 #ensure dot 6 between a digit and a letter
862 noback context $dy[]$u @6
863 # Not letsign after digit + punctuation in literary braille
864 # noback context $dy$Spm.[]$u @6
865
866 ### Pass 2 - forward translation
867
868 # Correct chars defined as 8 dots because they include letsign
869 noback pass2 @467 @45-6
870 noback pass2 @4568 @45-456
871 noback pass2 @123457 @6-12345
872 noback pass2 @24567 @6-2456
873 noback pass2 @13467 @6-1346
874 noback pass2 @13567 @6-1356
875 noback pass2 @12567 @6-1256
876
877 # Show endcapsword as dot 6 (letsign)
878 noback pass2 @68 @6
879
880 noback pass2 @6-5 @5 # no letsign before letters with accent
881 noback pass2 @6-46-5 @46-5 # no letsign before cap letters with accent
882 noback pass2 _$D[@6-46-6] *
883 noback pass2 _$D[@6-46] *
884 noback pass2 @6-46-6 @46-6 # Ensure correct order and no double letsign
885 noback pass2 @6-46 @46-6 # Ensure correct order
886
887 ### Pass 3 - forward translation
888
889 # Ensure there is only one letsign
890 noback pass3 @6-6 @6
891
892 # Ensure there is only one emphasis sign
893 noback pass3 @56-56 @56
894 noback pass3 @56-56-56 @56
895
896
897 # Include hyphenation file as the last thing
898 include da-dk-g2.dic