forked from liblouis/liblouis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for number backtranslations on fr-fr-g1 and vi-g1 tables
This commit adds the litdigit definition for the french and vietnamese grade 1 tables. These tables included the digit definition from digits6DotsPlusDot6.uti but did not include a definition for litdigits, which would provide the correct translations only for computer braille. Previously, backtranslations for cells starting with the number sign would behave differently from the forward translations by returning space for 0 or ignoring the number sign for other digits (e.g. a with circumflex for 3456-16 instead of 1).
- Loading branch information
1 parent
475c821
commit 2dcf998
Showing
8 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# liblouis: sub table for literary digits, 6 dots with dot 6 added | ||
# | ||
# Copyright (C) 2017 Victor Montalvao <[email protected]> | ||
# | ||
# This file is part of liblouis. | ||
# | ||
# liblouis is free software: you can redistribute it and/or modify it | ||
# under the terms of the GNU Lesser General Public License as | ||
# published by the Free Software Foundation, either version 2.1 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# liblouis is distributed in the hope that it will be useful, but | ||
# WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
# Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public | ||
# License along with liblouis. If not, see | ||
# <http://www.gnu.org/licenses/>. | ||
|
||
litdigit 0 346 | ||
litdigit 1 16 | ||
litdigit 2 126 | ||
litdigit 3 146 | ||
litdigit 4 1456 | ||
litdigit 5 156 | ||
litdigit 6 1246 | ||
litdigit 7 12456 | ||
litdigit 8 1256 | ||
litdigit 9 246 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
tables: [tables/unicode.dis, tables/fr-fr-g1.utb] | ||
flags: {testmode: backward} | ||
tests: | ||
# Backward translations | ||
# Digits | ||
- [⠼⠼, 0] | ||
- [⠼⠡, 1] | ||
- [⠼⠣, 2] | ||
- [⠼⠩, 3] | ||
- [⠼⠹, 4] | ||
- [⠼⠱, 5] | ||
- [⠼⠫, 6] | ||
- [⠼⠻, 7] | ||
- [⠼⠳, 8] | ||
- [⠼⠪, 9] | ||
- [⠼⠡⠼, 10] | ||
- [⠼⠡⠡, 11] | ||
- [⠼⠡⠣, 12] | ||
- [⠼⠪⠪, 99] | ||
- [⠼⠡⠼⠼, 100] | ||
- [⠼⠡⠼⠼⠼, 1000] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
tables: [tables/unicode.dis, tables/fr-fr-g1.utb] | ||
flags: {testmode: forward} | ||
tests: | ||
# Forward translations | ||
# Digits | ||
- [0, ⠼⠼] | ||
- [1, ⠼⠡] | ||
- [2, ⠼⠣] | ||
- [3, ⠼⠩] | ||
- [4, ⠼⠹] | ||
- [5, ⠼⠱] | ||
- [6, ⠼⠫] | ||
- [7, ⠼⠻] | ||
- [8, ⠼⠳] | ||
- [9, ⠼⠪] | ||
- [10, ⠼⠡⠼] | ||
- [11, ⠼⠡⠡] | ||
- [12, ⠼⠡⠣] | ||
- [99, ⠼⠪⠪] | ||
- [100, ⠼⠡⠼⠼] | ||
- [1000, ⠼⠡⠼⠼⠼] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
tables: [tables/unicode.dis, tables/vi-g1.ctb] | ||
flags: {testmode: backward} | ||
tests: | ||
# Backward translations | ||
# Digits | ||
- [⠼⠼, 0] | ||
- [⠼⠡, 1] | ||
- [⠼⠣, 2] | ||
- [⠼⠩, 3] | ||
- [⠼⠹, 4] | ||
- [⠼⠱, 5] | ||
- [⠼⠫, 6] | ||
- [⠼⠻, 7] | ||
- [⠼⠳, 8] | ||
- [⠼⠪, 9] | ||
- [⠼⠡⠼, 10] | ||
- [⠼⠡⠡, 11] | ||
- [⠼⠡⠣, 12] | ||
- [⠼⠪⠪, 99] | ||
- [⠼⠡⠼⠼, 100] | ||
- [⠼⠡⠼⠼⠼, 1000] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
tables: [tables/unicode.dis, tables/vi-g1.ctb] | ||
flags: {testmode: forward} | ||
tests: | ||
# Forward translations | ||
# Digits | ||
- [0, ⠼⠼] | ||
- [1, ⠼⠡] | ||
- [2, ⠼⠣] | ||
- [3, ⠼⠩] | ||
- [4, ⠼⠹] | ||
- [5, ⠼⠱] | ||
- [6, ⠼⠫] | ||
- [7, ⠼⠻] | ||
- [8, ⠼⠳] | ||
- [9, ⠼⠪] | ||
- [10, ⠼⠡⠼] | ||
- [11, ⠼⠡⠡] | ||
- [12, ⠼⠡⠣] | ||
- [99, ⠼⠪⠪] | ||
- [100, ⠼⠡⠼⠼] | ||
- [1000, ⠼⠡⠼⠼⠼] |