Debian Codegraph @

tests/yaml/sufword_prfword.yaml

raw symbols SCIP
1 # Tests for sufword and prfword with seqdelimiter and nocontractsign
2
3 # Regression test for https://github.com/liblouis/liblouis/issues/1877:
4 # sufword and prfword should match when adjacent character is a seqdelimiter
5 # ----------------------------------------------------------------------------------
6
7 # word already handles seqdelimiter correctly (baseline)
8 display: tables/unicode.dis
9 table: |
10 include tables/no-no-g0.utb
11 seqdelimiter /
12 word for 1246
13 tests:
14 - - "for/bak"
15 - "⠫⠌⠃⠁⠅"
16
17 # sufword should also treat seqdelimiter as a word boundary
18 display: tables/unicode.dis
19 table: |
20 include tables/no-no-g0.utb
21 seqdelimiter /
22 sufword for 1246
23 tests:
24 - - "for/bak"
25 - "⠫⠌⠃⠁⠅"
26
27 # prfword should also treat seqdelimiter as a word boundary
28 display: tables/unicode.dis
29 table: |
30 include tables/no-no-g0.utb
31 seqdelimiter /
32 prfword for 1246
33 tests:
34 - - "for/bak"
35 - "⠫⠌⠃⠁⠅"
36
37 # Tests for real-world tables
38
39 # Afrikaans: sufword bester across hyphen seqdelimiter
40 display: tables/unicode.dis
41 table: tables/afr-za-g2.ctb
42 flags: {testmode: forward}
43 tests:
44 - - "bester-dag"
45 - "⠃⠑⠌⠻⠤⠐⠙"
46
47 # Afrikaans: prfword gebel across hyphen seqdelimiter
48 display: tables/unicode.dis
49 table: tables/afr-za-g2.ctb
50 flags: {testmode: forward}
51 tests:
52 - - "gebel-klank"
53 - "⠿⠃⠑⠇⠤⠅⠇⠯⠅"
54
55 # Filipino: prfword ban across hyphen seqdelimiter
56 display: tables/unicode.dis
57 table: tables/fil-g2.ctb
58 flags: {testmode: forward}
59 tests:
60 - - "ban-lungsod"
61 - "⠃⠱⠤⠇⠥⠣⠎⠕⠙"
62
63 # Filipino: prfword gan across hyphen seqdelimiter
64 display: tables/unicode.dis
65 table: tables/fil-g2.ctb
66 flags: {testmode: forward}
67 tests:
68 - - "gan-gawa"
69 - "⠛⠱⠤⠛⠪⠁"
70
71 # Russian: sufword при across hyphen seqdelimiter
72 display: tables/ru-ru-g1.ctb
73 table: tables/ru-ru-g1.ctb
74 flags: {testmode: forward}
75 tests:
76 - - "при-том"
77 - "⠯⠤⠽⠍"
78
79 # Russian: prfword стал across hyphen seqdelimiter
80 display: tables/ru-ru-g1.ctb
81 table: tables/ru-ru-g1.ctb
82 flags: {testmode: forward}
83 tests:
84 - - "стал-быть"
85 - "⠒⠁⠇⠤⠃⠾"
86
87 # Regression test for https://github.com/liblouis/liblouis/issues/1878:
88 # contraction opcodes should respect nocontractsign during back-translation
89 # ---------------------------------------------------------------------------------
90
91 # word and endword already handle nocontractsign correctly (baseline)
92 display: tables/unicode.dis
93 table: |
94 include tables/no-no-g0.utb
95 noback nocontractsign 56
96 contraction ml
97 word mellom 134-123
98 flags: {testmode: backward}
99 tests:
100 - - "⠰⠍⠇"
101 - "ml"
102
103 display: tables/unicode.dis
104 table: |
105 include tables/no-no-g0.utb
106 noback nocontractsign 56
107 contraction ml
108 endword mellom 134-123
109 flags: {testmode: backward}
110 tests:
111 - - "⠰⠍⠇"
112 - "ml"
113
114 # prfword should also respect nocontractsign
115 display: tables/unicode.dis
116 table: |
117 include tables/no-no-g0.utb
118 noback nocontractsign 56
119 prfword mellom 134-123
120 contraction ml
121 flags: {testmode: backward}
122 tests:
123 - - "⠰⠍⠇"
124 - "ml"
125
126 # sufword should also respect nocontractsign
127 display: tables/unicode.dis
128 table: |
129 include tables/no-no-g0.utb
130 noback nocontractsign 56
131 sufword mellom 134-123
132 contraction ml
133 flags: {testmode: backward}
134 tests:
135 - - "⠰⠍⠇"
136 - "ml"