Debian Codegraph @

tests/yaml/computer_braille.yaml

raw symbols SCIP
1 # Test various methods of triggering computer braille
2 display: tables/unicode-without-blank.dis
3 table: |
4 include tables/spaces.uti
5 punctuation . 3
6 include tables/latinLetterDef6Dots.uti
7 include tables/braille-patterns.cti
8 compbrl www.
9 comp6 a 2
10 comp6 b 23
11 comp6 c 25
12 begcomp 456-346
13 endcomp 456-156
14 flags: {testmode: forward}
15 tests:
16 # no computer braille
17 - - abc
18 - ⠁⠃⠉
19 # computer braille triggered by compbrl
20 - - www.abc
21 - ⠸⠬⠺⠺⠺⠄⠂⠆⠒⠸⠱
22 # computer braille triggered by typeform
23 # currently fails: see issue https://github.com/liblouis/liblouis/issues/622
24 - - abc abc abc
25 - ⠁⠃⠉ ⠸⠬⠂⠆⠒⠸⠱ ⠁⠃⠉
26 - typeform:
27 computer_braille: ' +++ '
28 xfail: true
29 # computer braille triggered by compbrlatcursor (apparently no begcompbrl or endcompbrl)
30 - - abc abc abc
31 - ⠁⠃⠉ ⠂⠆⠒ ⠁⠃⠉
32 - mode: [compbrlAtCursor]
33 cursorPos: 4
34
35 # Test comp6 in back-translation
36 # see issue https://github.com/liblouis/liblouis/issues/715
37 flags: {testmode: backward}
38 tests:
39 - - ⠁⠃⠉ ⠸⠬⠂⠆⠒⠸⠱ ⠁⠃⠉
40 - abc abc abc
41 - xfail: begcompbrl and endcompbrl are apparently consumed but not processed
42
43 # #1782: The no_translate typeform is deprecated for input.
44 # - it can not be used instead of computer_braille:
45 # - it ignores comp6 rules
46 # - it does not insert begcomp and endcomp
47 # - it ignores character definition rules that map to more than one cell
48 # - it takes the first character definition rule rather than the last
49 # - it fails on characters outside of the range \x0020-\x007E
50 table: |
51 space \s 0
52 letter a 1-1
53 letter a 1
54 letter a 2
55 letter b 12
56 letter c 14
57 comp6 a 2
58 comp6 b 23
59 comp6 c 25
60 begcomp 456-346
61 endcomp 456-156
62 always abc 123456
63 include tables/braille-patterns.cti
64 flags: {testmode: forward}
65 tests:
66 - - abc abc abc
67 - ⠿ ⠁⠃⠉ ⠿
68 - typeform:
69 no_translate: ' +++ '