Skip to content

Commit

Permalink
Don't test en-us-mathtext.yaml because that is not the table we are i…
Browse files Browse the repository at this point in the history
…nterested in

We don't even know what this table is used for and how it is supposed
to behave.

The table we are actually interested in is nemeth.ctb. We can't test
it directly in Liblouis however because it is not part of
Liblouis (anymore). It is part of Liblouistdml. The solution is to
test nemethdefs.cti for now and add a note that we should change this
to nemeth.ctb (which requires that we move the table back to Liblouis,
see liblouis#815).
  • Loading branch information
bertfrees committed May 23, 2023
1 parent 3a51993 commit 8c5521d
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 146 deletions.
2 changes: 1 addition & 1 deletion tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ dist_braille_specs_TESTS = \
braille-specs/en-us-emphasis_harness.yaml \
braille-specs/en-us-g2.yaml \
braille-specs/en-us-g2-dictionary_harness.yaml \
braille-specs/en-us-mathtext.yaml \
braille-specs/eo-g1_harness.yaml \
braille-specs/es-comp.yaml \
braille-specs/es-g2.yaml \
Expand Down Expand Up @@ -178,6 +177,7 @@ dist_braille_specs_TESTS = \
braille-specs/ml.yaml \
braille-specs/mn-MN_harness.yaml \
braille-specs/ms-my-g2.yaml \
braille-specs/nemeth.yaml \
braille-specs/nl-comp8_harness.yaml \
braille-specs/nl-g0_harness.yaml \
braille-specs/no_8dot_harness.yaml \
Expand Down
2 changes: 1 addition & 1 deletion tests/braille-specs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ EXTRA_DIST = \
en-us-comp8-ext-for_harness.yaml \
en-us-g2.yaml \
en-us-g2-dictionary_harness.yaml \
en-us-mathtext.yaml \
eo-g1_harness.yaml \
es-comp.yaml \
es-g2.yaml \
Expand Down Expand Up @@ -108,6 +107,7 @@ EXTRA_DIST = \
ml.yaml \
mn-MN_harness.yaml \
ms-my-g2.yaml \
nemeth.yaml \
nl-comp8_harness.yaml \
nl-g0_harness.yaml \
no_8dot_harness.yaml \
Expand Down
144 changes: 0 additions & 144 deletions tests/braille-specs/en-us-mathtext.yaml

This file was deleted.

157 changes: 157 additions & 0 deletions tests/braille-specs/nemeth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
# Test file for nemethdefs.cti

# FIXME: This test should be changed so that it tests a top-level
# table (i.e. a table that can be discovered based on metadata). For
# instance, the table could be nemeth.ctb, and the test would document
# the math symbols as well as the "semantic" characters used for the
# linearization of MathML (see also
# https://github.com/liblouis/liblouis/issues/815).

# Copyright © 2023 Attila Hammer from IT Foundation for the Visually Impaired - Hungary <www.infoalap.hu>
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.

display: |
include unicode.dis
display \x00A0 a
table: |
include nemethdefs.cti
include en-chardefs.cti
letsign 56
capsletter 6
flags: {testmode: forward}

tests:
- ["^", ⠸⠣]
- [\x00ac, ⠈⠹]
- [\x2213, ⠤⠬]
- [\x27e6, ⠈⠸⠷]
- [\x27e7, ⠈⠸⠾]
- [\x2983, ⠨⠸⠷]
- [\x2984, ⠨⠸⠾]
- [\x2af4, ⠳⠳⠳]
- [\x02D9, ⠡]
- [\x2216, ⠸⠡]
- [\x27E8, ⠨⠨⠷]
- [\x27E9, ⠨⠨⠾]
- [\x0396, ⠨⠠⠵]
- [\x0397, ⠨⠠⠱]
- [\x03A4, ⠨⠠⠞]
- [\x03A8, ⠨⠠⠽]
- [\x03B6, ⠨⠵]
- [\x03B7, ⠨⠱]
- [\x03C2, ⠨⠒]
- [\x03C8, ⠨⠽]
- [\x03C9, ⠨⠺]
- [\x03D1, ⠨⠈⠹]
- [\x03D5, ⠨⠈⠋]
- [\x03D6, ⠨⠈⠏]
- [\x03F0, ⠨⠈⠅]
- [\x03F1, ⠨⠈⠗]
- [\x03F5, ⠨⠈⠑]
- [\x2015, ⠱]
- [\x2016, ⠳⠳]
- [\x2020, ⠸⠻]
- [\x2021, ⠸⠸⠻]
- [\x2030, ⠈⠴⠴]
- [\x2031, ⠈⠴⠴⠴]
- [\x2102, ⠈⠰⠠⠉]
- [\x2113, ⠰⠈⠇]
- [\x211D, ⠈⠰⠠⠗]
- [\x2147, ⠑]
- [\x2308, ⠈⠘⠷]
- [\x2309, ⠈⠘⠾]
- [\x230A, ⠈⠰⠷]
- [\x230B, ⠈⠰⠾]
- [\x22EE, ⠀⠩⠒⠒⠒⠀]
- [\x22EF, ⠀⠒⠒⠒⠀]
- [\x22F0, ⠀⠘⠒⠒⠒⠀]
- [\x22F1, ⠀⠰⠒⠒⠒⠀]
- [\x21AE,  ⠳⠈⠫⠪⠒⠒⠕⠻ ]
- [\x21CA,  ⠫⠩⠒⠒⠕⠐⠫⠩⠒⠒⠕ ]
- [\x21CB,  ⠫⠈⠪⠒⠒⠫⠒⠒⠈⠕ ]
- [\x21CC,  ⠫⠒⠒⠈⠕⠫⠈⠪⠒⠒ ]
- [\x21CD,  ⠳⠈⠫⠪⠶⠶⠻ ]
- [\x21CE,  ⠳⠈⠫⠪⠶⠶⠕⠻ ]
- [\x21CF,  ⠳⠈⠫⠶⠶⠕⠻ ]
- [\x21D0,  ⠫⠪⠶⠶ ]
- [\x21D1,  ⠫⠣⠶⠶⠕ ]
- [\x21d2,  ⠫⠶⠶⠕ ]
- [\x21D3,  ⠫⠣⠶⠶⠕ ]
- [\x21D4,  ⠫⠪⠶⠶⠕ ]
- [\x21D5,  ⠫⠣⠪⠶⠶⠕ ]
- [\x21D6,  ⠫⠘⠪⠶⠶ ]
- [\x21d7,  ⠫⠘⠶⠶⠕ ]
- [\x21D8,  ⠫⠰⠶⠶⠕ ]
- [\x21D9,  ⠫⠰⠪⠶⠶ ]
- [\x21DA,  ⠫⠪⠸⠸ ]
- [\x21DB,  ⠫⠸⠸⠕ ]
- [\x21F4,  ⠨⠡⠈⠫⠒⠒⠕⠻ ]
- [\x223C,  ⠈⠱ ]
- [\x220B,  ⠈⠢ ]
- [\x220C,  ⠌⠈⠢ ]
- [\x2227, ⠈⠩]
- [\x2228, ⠈⠬]
- [\x2260,  ⠌⠨⠅ ]
- [\x2261,  ⠸⠇ ]
- [\x2262,  ⠌⠸⠇ ]
- [\x203E, ⠱]
- [\x2044, ⠸⠌]
- [\x2215, ⠸⠌]
- [\x2124, ⠈⠰⠠⠵]
- [\x23de, ⠨⠷]
- [\x23DF, ⠨⠾]
- [\x2208,  ⠈⠑ ]
- [\x2209,  ⠌⠈⠑ ]
- [\x2245,  ⠈⠱⠨⠅ ]
- [\x2248,  ⠈⠱⠈⠱ ]
- [\x22D8,  ⠐⠅⠈⠐⠅⠈⠐⠅⠻ ]
- [\x22d9,  ⠨⠂⠈⠨⠂⠈⠨⠂⠻ ]
- [\x226A,  ⠐⠅⠈⠐⠅⠻ ]
- [\x226B,  ⠨⠂⠈⠨⠂⠻ ]
- [\x226E,  ⠌⠐⠅ ]
- [\x2282,  ⠸⠐⠅ ]
- [\x2283,  ⠸⠨⠂ ]
- [\x2284,  ⠌⠸⠐⠅ ]
- [\x2285,  ⠌⠸⠨⠂ ]
- [\x2286,  ⠸⠐⠅⠱ ]
- [\x2287,  ⠸⠨⠂⠱ ]
- [\x2288,  ⠌⠸⠐⠅⠱ ]
- [\x2289,  ⠌⠸⠨⠂⠱ ]
- [\x228A,  ⠸⠐⠅⠌⠨⠅ ]
- [\x228B,  ⠸⠨⠂⠌⠨⠅ ]
- [\x23E2, ⠫⠵]
- [\x25B2, ⠫⠸⠞]
- [\x25B3, ⠫⠞]
- [\x25B5, ⠫⠞]
- [\x25cb, ⠫⠉]
- [\x25CF, ⠫⠸⠉]
- [\x25A0, ⠫⠸⠲]
- [\x25A1, ⠫⠲]
- [\x25AC, ⠫⠸⠗]
- [\x25AD, ⠫⠗]
- [\x25b0, ⠫⠸⠛]
- [\x25B1, ⠫⠛]
- [\x25B2, ⠫⠸⠞]
- [\x25EF, ⠫⠉]
- [\x2221, ⠫⠪⠈⠫⠁⠻]
- [\x2222, ⠫⠪⠸⠫⠫⠁⠻]
- [\x2223,  ⠳ ]
- [\x2224,  ⠌⠳ ]
- [\x22FE, ⠫⠸⠲]
- [\x221D,  ⠸⠿ ]
- [\x2237,  ⠰⠆ ]

# Added or corrected character definition simbols from en-chardefs.cti
- ["ő", ⠰⠈⠕]
- ["ű", ⠰⠈⠥]
- ["Ő", ⠰⠠⠈⠕]
- ["Ű", ⠰⠠⠈⠥]
- [\x00BE, ⠹⠒⠌⠲⠼]
- [\x00A5, ⠈⠽]
- [\x20A3, ⠈⠋]
- [\x20A6, ⠈⠝]
- [\x20AC, ⠈⠑]

0 comments on commit 8c5521d

Please sign in to comment.