Debian Codegraph @

tests/yaml/present_progressive.yaml

raw symbols SCIP
1 # Converted from present_progressive.c with additional tests by buevest
2
3 # Note that this test used to fail worse than it does now. The
4 # current situation isn't hugely critical, though probably still
5 # incorrect.
6
7 # There are two key portions of the string: the "ing" (which gets
8 # contracted to one character) and the double space at the end. When
9 # translated, you get: "greetings " -> "greet+s " Notice that the
10 # translation also contracts the double space into a single space.
11
12 # With regard to cursor position, compbrlAtCursor is set, which means
13 # that the word encompassed by the cursor will be uncontracted
14 # (computer braille). This means that if the cursor is anywhere
15 # within "greetings", the translated output will also be "greetings",
16 # so the cursor positions are identical up to the end of the s
17 # (position 8).
18
19 # It gets more interesting at position 9 (the first space). Now,
20 # greetings gets contracted, so the output cursor position becomes 7.
21 # Still correct so far.
22
23 # Position 10 (the second space) is the problem. Because
24 # compbrlAtCursor is set, the current word should probably be
25 # expanded. In this case, it is just a space. However, the two spaces
26 # are still compressed into one, even though the second should have
27 # been expanded. The translation has still contracted the second
28 # space, even though it should have stopped contracting at the
29 # cursor.
30
31 # See also the description in
32 # http://code.google.com/p/liblouis/issues/detail?id=4
33
34 # buevest:
35 # To me, it looks as follows:
36 # if compbrlAtCursor is selected, all compressed spaces in the string
37 # are expanded.
38 # The only exception is if the cursor is placed on the last of a
39 # series of otherwise compressed spaces. Then that exact space is
40 # removed, making 2 spaces into 1, 3 into 2 etc.
41
42 table: |
43 include tables/unicode-without-blank.dis
44 include tables/spaces.uti
45 include tables/latinLetterDef6Dots.uti
46 math + 346
47 include tables/compress.cti
48 midendword ing 346
49
50 tests:
51 - - 'greetings '
52 - '⠛⠗⠑⠑⠞⠬⠎ '
53 - - 'greetings '
54 - '⠛⠗⠑⠑⠞⠊⠝⠛⠎ '
55 - mode: [compbrlAtCursor]
56 cursorPos: [1,1]
57 xfail: true
58 # actual output: '⠛⠗⠑⠑⠞⠊⠝⠛⠎ '
59 - - 'greetings greetings '
60 - '⠛⠗⠑⠑⠞⠊⠝⠛⠎ ⠛⠗⠑⠑⠞⠬⠎ '
61 - mode: [compbrlAtCursor]
62 cursorPos: [1,1]
63 xfail: true
64 # actual output: '⠛⠗⠑⠑⠞⠊⠝⠛⠎ ⠛⠗⠑⠑⠞⠬⠎ '
65 - - 'greetings '
66 - '⠛⠗⠑⠑⠞⠬⠎ '
67 - mode: [compbrlAtCursor]
68 cursorPos: [9,7]
69 - - 'greetings '
70 - '⠛⠗⠑⠑⠞⠬⠎ '
71 - mode: [compbrlAtCursor]
72 cursorPos: [10,8]
73 xfail: true
74 # actual output: '⠛⠗⠑⠑⠞⠬⠎ '
75 - - 'greetings '
76 - '⠛⠗⠑⠑⠞⠬⠎ '
77 - mode: [compbrlAtCursor]
78 cursorPos: [9,7]
79 - - 'greetings '
80 - '⠛⠗⠑⠑⠞⠬⠎ '
81 - mode: [compbrlAtCursor]
82 cursorPos: [10,8]
83 - - 'greetings '
84 - '⠛⠗⠑⠑⠞⠬⠎ '
85 - mode: [compbrlAtCursor]
86 cursorPos: [11,9]
87 xfail: true
88 # actual output: '⠛⠗⠑⠑⠞⠬⠎ '
89 - - 'greetings g'
90 - '⠛⠗⠑⠑⠞⠬⠎ ⠛'
91 - mode: [compbrlAtCursor]
92 cursorPos: [11,9]
93 xfail: true
94 # actual output: '⠛⠗⠑⠑⠞⠬⠎ ⠛'