Debian Codegraph @

tests/braille-specs/en-ueb-g1_backward.yaml

raw symbols SCIP
1 display: unicode-without-blank.dis
2 table:
3 language: en
4 grade: 1
5 system: ueb
6 __assert-match: en-ueb-g1.ctb
7 flags: {testmode: backward}
8 tests:
9 # Numbers.
10 - [⠼⠁, 1]
11 - [⠼⠁⠁, 11]
12 # Indicators which prefix other cells and don't mean anything by themselves.
13 - [⠈, \\4/]
14 - [⠈⠁, "@"]
15 - [⠘, \\45/]
16 - [⠸, \\456/]
17 - [⠨, \\46/]
18 - [⠐, \\5/]
19 - [⠰, \\56/]
20 - [⠠, ""]
21 - [⠠⠁, A]
22 - [⠠⠠, ""]
23 - [⠠⠠⠁⠁, AA]
24 # Backtranslations followed by punctuation
25 - [⠁⠂, "a,"]
26 - [⠃⠂, "b,"]
27 - [⠉⠂, "c,"]
28 - [⠙⠂, "d,"]
29
30 # Backtranslation emphasis detection tests
31 # These verify that emphasis indicators in braille are correctly detected
32 # and the typeform buffer is populated during backtranslation.
33
34 # Single letter emphasis (dots 46-23 for italic, 45-23 for bold, 456-23 for underline)
35 - [⠨⠆⠞⠑⠎⠞, test, {expected_typeform: {italic: '+ '}}]
36 - [⠘⠆⠞⠑⠎⠞, test, {expected_typeform: {bold: '+ '}}]
37 - [⠸⠆⠞⠑⠎⠞, test, {expected_typeform: {underline: '+ '}}]
38
39 # Word emphasis (dots 46-2 begin, 46-3 end for italic)
40 - [⠨⠂⠺⠕⠗⠙⠨⠄, word, {expected_typeform: {italic: '++++'}}]
41 - [⠘⠂⠺⠕⠗⠙⠘⠄, word, {expected_typeform: {bold: '++++'}}]
42 - [⠸⠂⠺⠕⠗⠙⠸⠄, word, {expected_typeform: {underline: '++++'}}]
43
44 # Phrase emphasis (dots 46-2356 begin, 46-3 end for italic)
45 - [⠨⠶⠓⠊ ⠞⠓⠑⠗⠑⠨⠄, "hi there", {expected_typeform: {italic: '++++++++'}}]
46
47 # Mixed emphasis - letter italic in middle of word
48 - [⠁⠨⠆⠃⠉, abc, {expected_typeform: {italic: ' + '}}]
49
50 # Nested emphasis - bold inside italic
51 - - ⠨⠂⠘⠂⠞⠑⠎⠞⠘⠄⠨⠄
52 - test
53 - expected_typeform:
54 italic: '++++'
55 bold: '++++'