Debian Codegraph @

tests/yaml/syllable.yaml

raw symbols SCIP
1 # This test case illustrates a bug with the syllable opcode
2 # (https://github.com/liblouis/liblouis/issues/354). A single instance
3 # of a word where a syllable rule is triggered is translated
4 # correctly. Two words is a row are also fine. However the third
5 # instance of the very same word is not correctly translated. If you
6 # check with lou_trace you'll notice that the syllable rule is not
7 # even used. Funnily enough the fourth instance is translated
8 # correctly again.
9
10 table: [tables/unicode-without-blank.dis, tables/de-g2.ctb]
11 tests:
12 - # translating the word once works fine
13 - abhörauftrag
14 - ⠁⠃⠓⠪⠗⠂⠡⠞⠛
15 - # translating the word twice works also fine
16 - abhörauftrag abhörauftrag
17 - ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛
18 - # translating the word the third time results in an wrong translation
19 - abhörauftrag abhörauftrag abhörauftrag
20 - ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛
21
22 - # the fourth translation is correct again
23 # (but the third is of course still wrong)
24 - abhörauftrag abhörauftrag abhörauftrag abhörauftrag
25 - ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛
26
27 - # the fifth translation is wrong again
28 - abhörauftrag abhörauftrag abhörauftrag abhörauftrag abhörauftrag
29 - ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛
30
31 - # ... and the sixth is correct
32 - abhörauftrag abhörauftrag abhörauftrag abhörauftrag abhörauftrag abhörauftrag
33 - ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛ ⠁⠃⠓⠪⠗⠂⠡⠞⠛
34
35 - # Now let's see if the bug is also exposed when using no umlauts.
36 # No. Apparently this bug is only triggered for umlauts
37 - lehrauftrag
38 - ⠇⠶⠗⠂⠡⠞⠛
39 -
40 - lehrauftrag lehrauftrag
41 - ⠇⠶⠗⠂⠡⠞⠛ ⠇⠶⠗⠂⠡⠞⠛
42 -
43 - lehrauftrag lehrauftrag lehrauftrag
44 - ⠇⠶⠗⠂⠡⠞⠛ ⠇⠶⠗⠂⠡⠞⠛ ⠇⠶⠗⠂⠡⠞⠛
45 -
46 - lehrauftrag lehrauftrag lehrauftrag lehrauftrag
47 - ⠇⠶⠗⠂⠡⠞⠛ ⠇⠶⠗⠂⠡⠞⠛ ⠇⠶⠗⠂⠡⠞⠛ ⠇⠶⠗⠂⠡⠞⠛
48
49 - # let's also test some consequtive syllables
50 - aufbauschreibangebotsemester
51 - ⠂⠡⠃⠡⠱⠃⠖⠯⠃⠕⠞⠎⠷⠑⠾⠻
52 -
53 - aufbauschreibangebotsemester aufbauschreibangebotsemester
54 - ⠂⠡⠃⠡⠱⠃⠖⠯⠃⠕⠞⠎⠷⠑⠾⠻ ⠂⠡⠃⠡⠱⠃⠖⠯⠃⠕⠞⠎⠷⠑⠾⠻
55 -
56 - aufbauschreibangebotsemester aufbauschreibangebotsemester aufbauschreibangebotsemester
57 - ⠂⠡⠃⠡⠱⠃⠖⠯⠃⠕⠞⠎⠷⠑⠾⠻ ⠂⠡⠃⠡⠱⠃⠖⠯⠃⠕⠞⠎⠷⠑⠾⠻ ⠂⠡⠃⠡⠱⠃⠖⠯⠃⠕⠞⠎⠷⠑⠾⠻