| 1 | # Copyright © 2018 Bo-Cheng Jhan <[email protected]> |
| 2 | # Copyright © 2019-2023 nvda-tw <https://groups.io/g/nvda-tw> |
| 3 | # |
| 4 | # This file is part of liblouis. |
| 5 | # |
| 6 | # Copying and distribution of this file, with or without modification, |
| 7 | # are permitted in any medium without royalty provided the copyright |
| 8 | # notice and this notice are preserved. This file is offered as-is, |
| 9 | # without any warranty. |
| 10 | # |
| 11 | # Currently maintained by Sponge Jhan <[email protected]> |
| 12 | # Version: 2023-02 |
| 13 | |
| 14 | # The display tables have been separated from the translation tables. But in |
| 15 | # the case of this test some display relevant stuff is still defined in the |
| 16 | # translation table. That is why we have to include it here. |
| 17 | display: unicode.dis,zh-tw.ctb |
| 18 | table: |
| 19 | language: cmn |
| 20 | region: cmn-TW |
| 21 | __assert-match: zh-tw.ctb |
| 22 | flags: {testmode: bothDirections} |
| 23 | tests: |
| 24 | - ['\x0009', '\t'] |
| 25 | - ['\x000A', '⣀'] |
| 26 | - ['\x000C', '⡘⠇'] |
| 27 | - ['\x0020', '⠀'] |
| 28 | - ['\x00A0', '\x00A0'] |
| 29 | display: unicode.dis |
| 30 | table: |
| 31 | language: cmn |
| 32 | region: cmn-TW |
| 33 | __assert-match: zh-tw.ctb |
| 34 | flags: {testmode: forward} |
| 35 | tests: |
| 36 | # Space characters |
| 37 | - ['\x000D', '⠀'] |
| 38 | - ['\x2028', '⠳'] |
| 39 | - ['\x202F', '⠀'] |
| 40 | # IPA rules |
| 41 | - ['ç', '⠖⠉'] # IPA symbol not in IPA-unicode-range.uti. |
| 42 | - ['ø', '⠳'] # IPA symbol not in IPA-unicode-range.uti. |
| 43 | - ['œ', '⠪'] # IPA symbol not in IPA-unicode-range.uti. |
| 44 | - ['ɝ', '⠖⠜⠐⠗'] # IPA symbol not in IPA-unicode-range.uti. |
| 45 | - ['θ', '⠨⠹'] # IPA symbol not in IPA-unicode-range.uti. |
| 46 | - ['ⱱ', '⠖⠧'] # IPA symbol not in IPA-unicode-range.uti. |
| 47 | # Math rules |
| 48 | # * Fraction and mixed number |
| 49 | - ['⅙', '⠹⠂⠌⠖⠼'] |
| 50 | - - "5⅔" |
| 51 | - "⠢⠸⠹⠆⠌⠒⠸⠼" |
| 52 | - outputPos: [0, 1] |
| 53 | inputPos: [0, 1, 1, 1, 1, 1, 1, 1] |
| 54 | # * The mathematical mark over the other character |
| 55 | - - " ⃗" |
| 56 | - "⠀⠣⠫⠒⠒⠕⠻" |
| 57 | - outputPos: [0, 1] |
| 58 | inputPos: [0, 1, 1, 1, 1, 1, 1] |
| 59 | - - "A⃑" |
| 60 | - "⠐⡁⠣⠫⠒⠒⠈⠕⠻" |
| 61 | - outputPos: [0, 2] |
| 62 | inputPos: [0, 0, 1, 1, 1, 1, 1, 1, 1] |
| 63 | |
| 64 | # Han character test cases are moved to zh-tw-dictionary.yaml. |