| table: | |
| display , 6 |
| display # 3456 |
| display ; 56 |
| display - 36 |
| punctuation - 36 |
| include tables/spaces.uti |
| include tables/latinLetterDef6Dots.uti |
| include tables/digits6Dots.uti |
| include tables/litdigits6Dots.uti |
| include tables/braille-patterns.cti |
| capsletter 6 |
| numsign 3456 |
| nocontractsign 56 |
| numericnocontchars abcdefghij |
| numericmodechars - |
| |
| flags: {testmode: bothDirections} |
| tests: |
| # characters in numericnocontchars require nocontractsign to cancel numeric mode |
| - - "123abc" |
| - "#abc;abc" |
| # "k" is not in numericnocontchars so does not require contractsign to cancel numeric mode |
| # see https://github.com/liblouis/liblouis/issues/400 |
| - - "123kabc" |
| - "#abckabc" |
| # whitespace cancels numeric mode |
| - - "123 abc" |
| - "#abc abc" |
| # capsletter cancels numeric mode |
| - - "123Abc" |
| - "#abc,abc" |
| - - "123Kabc" |
| - "#abc,kabc" |
| # numericmodechars do not cancel numeric mode |
| - - "123-123" |
| - "#abc-abc" |
| - - "123-abc" |
| - "#abc-;abc" |
| - - "123-Abc" |
| - "#abc-,abc" |
| |
| # nocontractsign/letsign should cancel numeric mode no matter what and should be ignored if not needed |
| flags: {testmode: backward} |
| tests: |
| - - "#abc,abck;abc" |
| - "123Abckabc" |
| - {xfail: true} |
| - - "#abc,abc;abc" |
| - "123Abcabc" |
| - {xfail: true} |
| - - "#abc,abc#;abc" |
| - "123Abcabc" |
| - {xfail: true} |
| flags: {testmode: forward} |
| tests: |
| - - "123Abckabc" |
| - "#abc,abckabc" |
| - - "123Abcabc" |
| - "#abc,abcabc" |
| |
| table: | |
| display , 456 |
| display # 3456 |
| display ; 56 |
| display . 5 |
| display - 36 |
| sign % 123456 |
| punctuation - 36 |
| include tables/spaces.uti |
| include tables/latinLetterDef6Dots.uti |
| include tables/digits6Dots.uti |
| include tables/litdigits6Dots.uti |
| include tables/braille-patterns.cti |
| numsign 3456 |
| nocontractsign 56 |
| numericnocontchars abcdefghij |
| begcapsword 456 |
| endcapsword 5 |
| capsmodechars - |
| |
| flags: {testmode: bothDirections} |
| tests: |
| # endcapsword cancels a word in capitals |
| - - "ABCabc" |
| - ",abc.abc" |
| # whitespace cancels a word in capitals |
| - - "ABC abc" |
| - ",abc abc" |
| # non-letter cancels a word in capitals |
| - - "ABC%abc" |
| - ",abc%abc" |
| # number cancels a word in capitals |
| # see https://github.com/liblouis/liblouis/issues/400 |
| - - "ABC123abc" |
| - ",abc#abc;abc" |
| # capsmodechars do not cancel a capsword |
| - - "ABC-abc" |
| - ",abc-.abc" |
| |
| # endcapsword should cancel capsword no matter what and should be ignored if not needed |
| flags: {testmode: backward} |
| tests: |
| - - ",abc-abc." |
| - "ABC-ABC" |
| flags: {testmode: forward} |
| tests: |
| - - "ABC-ABC" |
| - ",abc-abc" |
| |
| # begcaps/endcaps |
| table: | |
| display , 456 |
| display # 3456 |
| display ; 56 |
| display . 5 |
| display - 36 |
| sign % 123456 |
| punctuation - 36 |
| include tables/spaces.uti |
| include tables/latinLetterDef6Dots.uti |
| include tables/digits6Dots.uti |
| include tables/litdigits6Dots.uti |
| include tables/braille-patterns.cti |
| numsign 3456 |
| nocontractsign 56 |
| numericnocontchars abcdefghijABC |
| begcaps 456 |
| endcaps 5 |
| capsmodechars - |
| |
| flags: {testmode: bothDirections} |
| tests: |
| # endcaps cancels a block in capitals |
| - - "ABCabc" |
| - ",abc.abc" |
| # whitespace does not cancel a block in capitals |
| - - "ABC ABC" |
| - ",abc abc." |
| # non-letter does not cancel a block in capitals |
| - - "ABC%ABC" |
| - ",abc%abc." |
| # number does not cancel a block in capitals |
| # contractsign before "ABC" because "A" is a numericnocontchars |
| - - "ABC123ABC" |
| - ",abc#abc;abc." |
| # numericnocontchars are case sensitive, so no contractsign before "DEF" |
| - - "ABC123DEF" |
| - ",abc#abc;abc." |
| - {xfail: "missing nocontractsign after number (see issue #631)"} |
| # capsmodechars should have no effect on begcaps and endcaps |
| - - "ABC-abc" |
| - ",abc-.abc" |
| - - "ABC-ABC" |
| - ",abc-abc." |
| |
| # endcaps not needed at the end of a string |
| flags: {testmode: backward} |
| tests: |
| - - ",abc abc" |
| - "ABC ABC" |
| - - ",abc%abc" |
| - "ABC%ABC" |
| - - ",abc-abc" |
| - "ABC-ABC" |
| |
| # numericmodechars vs. midendnumericmodechars |
| table: | |
| display , 6 |
| display # 3456 |
| display ; 56 |
| display - 36 |
| display . 46 |
| punctuation , 6 |
| punctuation - 36 |
| punctuation . 46 |
| include tables/spaces.uti |
| include tables/latinLetterDef6Dots.uti |
| include tables/digits6Dots.uti |
| include tables/litdigits6Dots.uti |
| include tables/braille-patterns.cti |
| capsletter 6 |
| numsign 3456 |
| nocontractsign 56 |
| numericnocontchars abcdefghij |
| numericmodechars . |
| midendnumericmodechars - |
| |
| flags: {testmode: bothDirections} |
| tests: |
| - - "-1 .1" |
| - "-#a #.a" |
| - - "123-456 123.456" |
| - "#abc-def #abc.def" |
| - - "-123-456-789 .123.456.789" |
| - "-#abc-def-ghi #.abc.def.ghi" |
| - - "-123-abc .123.abc" |
| - "-#abc-;abc #.abc.;abc" |
| - - "-123-Abc .123.Abc" |
| - "-#abc-,abc #.abc.,abc" |
| - - "abc-123 abc.123" |
| - "abc-#abc abc#.abc" # was this really intended? |
| |
| flags: {testmode: backward} |
| tests: |
| # should work even if . is before # |
| - - ".#a" |
| - ".1" |
| - - "abc.#abc" |
| - "abc.123" |