display: unicode-without-blank.dis table: language: en grade: 2 system: ueb __assert-match: en-ueb-g2.ctb flags: {testmode: bothDirections} tests: # Patterns used for both punctuation and contractions. - ["a!", ⠁⠖] - [affa, ⠁⠖⠁] - [his, ⠦] - ["a?", ⠁⠦] - ['"a', ⠦⠁] - [was, ⠴] - ['a"', ⠁⠴] - ['"a"', ⠦⠁⠴] - [were, ⠶] - [agga, ⠁⠶⠁] - [be, ⠆] # Correct: "bea" does not forward translate to "⠆⠁" (received: "⠃⠑⠁") flags: {testmode: backward} tests: - [⠆⠁, bea] flags: {testmode: bothDirections} tests: - [abba, ⠁⠆⠁] - [a;, ⠁⠆] - [":", ⠒] - [cona, ⠒⠁] - ["a:", ⠁⠒] - [acca, ⠁⠒⠁] # Contractions prefixed by an indicator which means nothing on its own. # These indicators are tested by themselves with no following cell in en-ueb-g1. - [word, ⠘⠺] - [many, ⠸⠍] - [name, ⠐⠝] - [ation, ⠁⠰⠝] # #311: The grade 1 symbol indicator. - [b, ⠰⠃] - [B, ⠰⠠⠃] - [ab, ⠰⠁⠃] - [Ab, ⠰⠠⠁⠃] - [1a, ⠼⠁⠰⠁] - [1A, ⠼⠁⠠⠁] # the cancel sign (56) is not strictly needed before a cap sign, but it is allowed flags: {testmode: backward} tests: - [⠼⠁⠰⠠⠁, 1A] flags: {testmode: bothDirections} tests: # #309: Ensure correct back-translation to "this". - [this, ⠹] # #360: Contractions followed by punctuation # 1-letter contractions - ["but,", ⠃⠂] - ["but.", ⠃⠲] - ["can,", ⠉⠂] - ["do,", ⠙⠂] # multi-letter contractions - ["about,", ⠁⠃⠂] - ["about.", ⠁⠃⠲] - ["above,", ⠁⠃⠧⠂] - ["above;", ⠁⠃⠧⠆] - ["above:", ⠁⠃⠧⠒] - ["above.", ⠁⠃⠧⠲] - ["above!", ⠁⠃⠧⠖] - ["above?", ⠁⠃⠧⠦] - ['above"', ⠁⠃⠧⠴] - ['above."', ⠁⠃⠧⠲⠴] # Make sure back-translation for words with "ea" after letters that # have contractions associated, such as words like meat, head and # others works properly. # See https://github.com/liblouis/liblouis/pull/350 - ["meat", ⠍⠂⠞] - ["head", ⠓⠂⠙] # #364: Whole word contractions followed by other contractions. # In this case, the whole word contraction should not apply. - [alone, ⠁⠇⠐⠕] - [bar, ⠃⠜] - [ben, ⠃⠢] - [Ben, ⠠⠃⠢] - [dance, ⠙⠨⠑] - [fence, ⠋⠰⠑] - [her, ⠓⠻] - [sand, ⠎⠯] - [sin, ⠎⠔] - [sing, ⠎⠬] - [Sing, ⠠⠎⠬] - [sof, ⠎⠷] - [song, ⠎⠰⠛] - [thing, ⠹⠬] # Issue #562 - "⠟⠅" erroneously back-translating as "quick's" - [quick, ⠟⠅] # Issue #572: "⠋⠌" erroneously back-translating as "first's" - [first, ⠋⠌] # Issue #572: "⠭⠄⠎" erroneously back-translating as "x's" - ["it's", ⠭⠄⠎] - ["x's", ⠰⠭⠄⠎] # According to issue #434 ':)' should be translated as ⠒⠐⠜ (which # works) and backtranslation should translate it back to ':)' (which # doesn't work). See https://github.com/liblouis/liblouis/issues/434 # and https://github.com/nvaccess/nvda/issues/7678 - [":)", ⠒⠐⠜, xfail: {backward: true}] # Issue #1018: contraction of "there" - [there, ⠐⠮] - [There, ⠠⠐⠮] - [a.there, ⠁⠲⠐⠮] - [bb.there, ⠃⠃⠲⠐⠮] - ["1,there", ⠼⠁⠂⠞⠓⠑⠗⠑] # Numbers also set grade 1 mode # Issue #1029 (https://github.com/liblouis/liblouis/issues/1029): Unusable output for unknown characters # The following group of tests are characters not handled by the UEB table # note also the dots 12567 technically not allowed in a 6-dot table. - [\x201f, ⠄⡳⠭⠆⠴⠂⠋⠄, {xfail: {backward: true}}] # reverse quote #- [\y1f600, ⠄⡳⠽⠂⠋⠖⠴⠴⠄, {xfail: {backward: true}}] # grinning face (FIXME: requires Liblouis to be compiled for 32-bit Unicode) # Misc problems reported by Michael Robin (see https://github.com/liblouis/liblouis/issues/590) # There are more tests in en-ueb-computer-code.yaml - [context, ⠒⠞⠑⠭⠞] - [':text', ⠰⠒⠞⠑⠭⠞] - [alth, ⠁⠇⠞⠓] - [bef, ⠃⠑⠋] - [concv, ⠉⠕⠝⠉⠧] - [concvg, ⠉⠕⠝⠉⠧⠛] - [ea, ⠑⠁] - [fst, ⠋⠎⠞] - [herf, ⠓⠑⠗⠋] - [xf, ⠰⠭⠋] - [ourfs, ⠳⠗⠋⠎] - [percv, ⠏⠑⠗⠉⠧] - [percvg, ⠏⠑⠗⠉⠧⠛] - [perh, ⠏⠑⠗⠓] - [themvs, ⠞⠓⠑⠍⠧⠎] - [thyf, ⠞⠓⠽⠋] - [Disc, ⠠⠙⠊⠎⠉] - [Disk, ⠠⠙⠊⠎⠅] - [DISC, ⠠⠠⠙⠊⠎⠉] - [DISK, ⠠⠠⠙⠊⠎⠅] - [discs, ⠙⠊⠎⠉⠎] - [disks, ⠙⠊⠎⠅⠎] - [Discs, ⠠⠙⠊⠎⠉⠎] - [Disks, ⠠⠙⠊⠎⠅⠎] - [Disc…, ⠠⠙⠊⠎⠉⠲⠲⠲] - [Disk…, ⠠⠙⠊⠎⠅⠲⠲⠲] - [disc=, ⠙⠊⠎⠉⠐⠶] - [disc+, ⠙⠊⠎⠉⠐⠖] - [disc_, ⠙⠊⠎⠉⠨⠤] - [disc/, ⠙⠊⠎⠉⠸⠌] - [disc\\, ⠙⠊⠎⠉⠸⠡] - [disc|, ⠙⠊⠎⠉⠸⠳] - [disc@, ⠙⠊⠎⠉⠈⠁] - [disc#, ⠙⠊⠎⠉⠸⠹] - [disc$, ⠙⠊⠎⠉⠈⠎] - [disc%, ⠙⠊⠎⠉⠨⠴] - [disc^, ⠙⠊⠎⠉⠈⠢] - [disc&, ⠙⠊⠎⠉⠈⠯] - [disc*, ⠙⠊⠎⠉⠐⠔] - [disc~, ⠙⠊⠎⠉⠈⠔] - [disk=, ⠙⠊⠎⠅⠐⠶] - [disk+, ⠙⠊⠎⠅⠐⠖] - [disk_, ⠙⠊⠎⠅⠨⠤] - [disk/, ⠙⠊⠎⠅⠸⠌] - [disk\\, ⠙⠊⠎⠅⠸⠡] - [disk|, ⠙⠊⠎⠅⠸⠳] - [disk@, ⠙⠊⠎⠅⠈⠁] - [disk#, ⠙⠊⠎⠅⠸⠹] - [disk$, ⠙⠊⠎⠅⠈⠎] - [disk%, ⠙⠊⠎⠅⠨⠴] - [disk^, ⠙⠊⠎⠅⠈⠢] - [disk&, ⠙⠊⠎⠅⠈⠯] - [disk*, ⠙⠊⠎⠅⠐⠔] - [disk~, ⠙⠊⠎⠅⠈⠔] - ["Action group", ⠠⠁⠉⠰⠝ ⠛⠗⠳⠏] - ["Action. Group", ⠠⠁⠉⠰⠝⠲ ⠠⠛⠗⠳⠏] - ["Action-group", ⠠⠁⠉⠰⠝⠤⠛⠗⠳⠏] - ["Action/group", ⠠⠁⠉⠰⠝⠸⠌⠛⠗⠳⠏] - ["Action\\\\group", ⠠⠁⠉⠰⠝⠸⠡⠛⠗⠳⠏] - ["Action$group", ⠠⠁⠉⠰⠝⠈⠎⠛⠗⠳⠏] - ["Disk group", ⠠⠙⠊⠎⠅ ⠛⠗⠳⠏] - ["Disk. Group", ⠠⠙⠊⠎⠅⠲ ⠠⠛⠗⠳⠏] - ["Disk-group", ⠠⠙⠊⠎⠅⠤⠛⠗⠳⠏] - ["Disk/group", ⠠⠙⠊⠎⠅⠸⠌⠛⠗⠳⠏] - ["Disk\\\\group", ⠠⠙⠊⠎⠅⠸⠡⠛⠗⠳⠏] - ["disk@group", ⠙⠊⠎⠅⠈⠁⠛⠗⠳⠏] - ["disk%group", ⠙⠊⠎⠅⠨⠴⠛⠗⠳⠏] - ["disk$group", ⠙⠊⠎⠅⠈⠎⠛⠗⠳⠏] - [discv, ⠙⠊⠎⠉⠧] - [".cv", ⠰⠲⠉⠧] - [discount, ⠲⠉⠨⠞] - [".count", ⠰⠲⠉⠨⠞] - [reason, ⠗⠂⠎⠕⠝] - ["r,son", ⠗⠰⠂⠎⠕⠝] - [_, ⠨⠤] - [__, ⠨⠤⠨⠤] - [___, ⠨⠤⠨⠤⠨⠤] - [____, ⠨⠤⠨⠤⠨⠤⠨⠤] - [_____, ⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤] - [______, ⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤] - [_______, ⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤] - [________, ⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤] - [_________, ⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤] - [__________, ⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤⠨⠤] - [accept, ⠁⠒⠑⠏⠞] - ["a:ept", ⠁⠰⠒⠑⠏⠞] - [affect, ⠁⠖⠑⠉⠞] - ["a!ect", ⠁⠰⠖⠑⠉⠞] - [bubbles, ⠃⠥⠆⠇⠑⠎] - ["bu;les", ⠃⠥⠰⠆⠇⠑⠎] - ['"what?', ⠦⠱⠁⠞⠦] - ['?what?', ⠰⠦⠱⠁⠞⠦] # Issue with "those" reported by APH - ["these those", ⠘⠮ ⠘⠹] - ["these/those", ⠘⠮⠸⠌⠘⠹] - ["these\\\\those", ⠘⠮⠸⠡⠘⠹] - ['"those."', ⠦⠘⠹⠲⠴] # nocontractsign scope should lapse at seqdelimiter boundaries, # allowing contractions to resume - [g-f-nothing, ⠰⠛⠤⠰⠋⠤⠝⠕⠹⠬] - [G-F-Nothing, ⠰⠠⠛⠤⠰⠠⠋⠤⠠⠝⠕⠹⠬] - [G-F-N, ⠰⠠⠛⠤⠰⠠⠋⠤⠰⠠⠝] - [gd-format, ⠰⠛⠙⠤⠿⠍⠁⠞] # Backtranslation emphasis detection tests # These verify that emphasis indicators in braille are correctly detected # and the typeform buffer is populated during backtranslation. flags: {testmode: backward} tests: # Single letter emphasis - [⠨⠆⠞⠑⠎⠞, test, {expected_typeform: {italic: '+ '}}] - [⠘⠆⠞⠑⠎⠞, test, {expected_typeform: {bold: '+ '}}] - [⠸⠆⠞⠑⠎⠞, test, {expected_typeform: {underline: '+ '}}] # Word emphasis - [⠨⠂⠺⠕⠗⠙⠨⠄, word, {expected_typeform: {italic: '++++'}}] - [⠘⠂⠺⠕⠗⠙⠘⠄, word, {expected_typeform: {bold: '++++'}}] # Phrase emphasis - [⠨⠶⠓⠊ ⠞⠓⠑⠗⠑⠨⠄, "hi there", {expected_typeform: {italic: '++++++++'}}] # Mixed emphasis - [⠁⠨⠆⠃⠉, abc, {expected_typeform: {italic: ' + '}}] # Nested emphasis - italic and bold on same word - - ⠨⠂⠘⠂⠞⠑⠎⠞⠘⠄⠨⠄ - test - expected_typeform: italic: '++++' bold: '++++'