# The purpose of this test is just to document the current behavior of # Liblouis when a table contains conflicting rules. This might be # different from the desired behavior. # --------------------------------------------- # last undefined rule wins table: | display 1 1 display 2 2 undefined 1 undefined 2 tests: - [x, 2] # first character definition rule wins, except in compbrlAtCursor mode # see https://github.com/liblouis/liblouis/issues/869 table: | display 1 1 display 2 2 display 3 3 sign P 1 sign P 2 sign P 3 flags: {testmode: forward} tests: - - "P" - "1" - - "P" - "3" - mode: [compbrlAtCursor] cursorPos: [0,0] # first character definition rule wins ... table: | include tables/unicode-without-blank.dis include tables/spaces.uti uplow Aa 1 uppercase B 12 lowercase b 12 uplow Cc 14 uplow Dd 145 uplow Ee 15 uplow Ff 124 uplow Gg 1245 uplow Hh 125,125 uppercase B 1 lowercase b 1 uplow Dd 14 uplow Ff 15,15 uplow Hh 1245,1245 tests: - - Aa Bb Cc Dd Ee Ff Gg Hh - ⠁⠁ ⠃⠃ ⠉⠉ ⠙⠙ ⠑⠑ ⠋⠋ ⠛⠛ ⠓⠓ # ... except if capsletter is defined, in which case the last # "uppercase X" wins, and the uppercase part of the last "uplow Xx" # wins # see https://github.com/liblouis/liblouis/issues/384 table: | include tables/unicode-without-blank.dis include tables/spaces.uti uplow Aa 1 uppercase B 12 lowercase b 12 uplow Cc 14 uplow Dd 145 uplow Ee 15 uplow Ff 124 uplow Gg 1245 uplow Hh 125,125 capsletter 6 uppercase B 1 lowercase b 1 uplow Dd 14 uplow Ff 15,15 uplow Hh 1245,1245 tests: - - Aa Bb Cc Dd Ee Ff Gg Hh - ⠠⠁⠁ ⠠⠁⠃ ⠠⠉⠉ ⠠⠉⠙ ⠠⠑⠑ ⠠⠑⠋ ⠠⠛⠛ ⠠⠛⠓