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.
Add new russian tables thanks to Igor B. Poretsky
- Loading branch information
Showing
8 changed files
with
452 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,3 +55,5 @@ Paul Wood <[email protected]> | |
David Reynolds <[email protected]> | ||
|
||
Knut Arne Bjørndal <[email protected]> | ||
|
||
Igor B. Poretsky <[email protected]> |
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
2013-01-28 Igor B. Poretsky <[email protected]> | ||
|
||
* tables/ru-litbrl.ctb: | ||
* tables/ru-letters.dis: | ||
* tables/ru-compbrl.ctb: | ||
* tables/ru-chardefs.cti: | ||
* tables/Makefile.am (table_files): Add new russian tables. | ||
|
||
2013-01-28 Knut Arne Bjørndal <[email protected]> | ||
|
||
* tables/no-no-g0.utb: Fixes for Emphasis marks in the norwegian | ||
|
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,57 @@ | ||
# liblouis: Russian letters character definition table | ||
# | ||
# Copyright (C) 2013 Igor B. Poretsky <[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 3 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/>. | ||
|
||
# This table contains character definitions for unicode cyrillic letters. | ||
# All dot-patterns have dot 9 set to make them distinguishable from the latins. | ||
# Dot 7 indicates uppercase letters. | ||
|
||
uplow \x0410\x0430 179,19 | ||
uplow \x0411\x0431 1279,129 | ||
uplow \x0412\x0432 245679,24569 | ||
uplow \x0413\x0433 124579,12459 | ||
uplow \x0414\x0434 14579,1459 | ||
uplow \x0415\x0435 1579,159 | ||
uplow \x0416\x0436 24579,2459 | ||
uplow \x0417\x0437 135679,13569 | ||
uplow \x0418\x0438 2479,249 | ||
uplow \x0419\x0439 1234679,123469 | ||
uplow \x041A\x043A 1379,139 | ||
uplow \x041B\x043B 12379,1239 | ||
uplow \x041C\x043C 13479,1349 | ||
uplow \x041D\x043D 134579,13459 | ||
uplow \x041E\x043E 13579,1359 | ||
uplow \x041F\x043F 123479,12349 | ||
uplow \x0420\x0440 123579,12359 | ||
uplow \x0421\x0441 23479,2349 | ||
uplow \x0422\x0442 234579,23459 | ||
uplow \x0423\x0443 13679,1369 | ||
uplow \x0424\x0444 12479,1249 | ||
uplow \x0425\x0445 12579,1259 | ||
uplow \x0426\x0446 1479,149 | ||
uplow \x0427\x0447 1234579,123459 | ||
uplow \x0428\x0448 15679,1569 | ||
uplow \x0429\x0449 134679,13469 | ||
uplow \x042A\x044A 1235679,123569 | ||
uplow \x042B\x044B 234679,23469 | ||
uplow \x042C\x044C 2345679,234569 | ||
uplow \x042D\x044D 24679,2469 | ||
uplow \x042E\x044E 125679,12569 | ||
uplow \x042F\x044F 124679,12469 | ||
uplow \x0401\x0451 1679,169 |
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,115 @@ | ||
# liblouis: Russian translation table for program sources | ||
# | ||
# Copyright (C) 2013 Igor B. Poretsky <[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 3 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/>. | ||
|
||
# This table is not a computer braille in usual sense. | ||
# It is intended for producing printable braille representation | ||
# of a program source text, especially when it contains | ||
# Russian comments or literals. Use it as an alternative | ||
# literary braille table. | ||
|
||
# Display and character definitions: | ||
include ru-letters.dis | ||
include ru-chardefs.cti | ||
include chardefs.cti | ||
|
||
# Braille indicators: | ||
numsign 3456 number sign, just a dots operand | ||
capsign 46 | ||
begcaps 56 | ||
endcaps 6 | ||
|
||
# The decimal digits: | ||
litdigit 1 1 | ||
litdigit 2 12 | ||
litdigit 3 14 | ||
litdigit 4 145 | ||
litdigit 5 15 | ||
litdigit 6 124 | ||
litdigit 7 1245 | ||
litdigit 8 125 | ||
litdigit 9 24 | ||
litdigit 0 245 | ||
|
||
# Punctuations: | ||
decpoint . 256 | ||
prepunc " 236 | ||
postpunc " 356 | ||
hyphen - 36 | ||
always . 256 | ||
always , 2 | ||
always ; 6-23 | ||
always : 25 | ||
always ? 6-26 | ||
always ! 6-235 | ||
always ' 3 | ||
always ` 4 | ||
|
||
# Eliminate spare spaces. | ||
repeated \s 0 | ||
repeated \t 0 | ||
|
||
# Special symbols: | ||
always @ 4-1 | ||
always # 4-1345 | ||
always $ 4-145 | ||
always % 3456-356 | ||
always ^ 56-26 | ||
always & 6-12346 | ||
always * 23 | ||
always ( 126 | ||
always ) 345 | ||
always _ 6-25 | ||
always [ 12356 | ||
always ] 23456 | ||
always { 46-126 | ||
always } 46-345 | ||
always \\ 4-16 | ||
always | 456-3 | ||
always ~ 26 | ||
|
||
# mathematical symbols: | ||
always - 36 | ||
always + 235 | ||
always / 6-34 | ||
always < 4-246 | ||
always > 4-135 | ||
always = 2356 | ||
|
||
# Symbol classes for special rules below: | ||
class upperlatin ABCDEFGHIJKLMNOPQRSTUVWXYZ | ||
class lowerlatin abcdefghijklmnopqrstuvwxyz | ||
class uppercyrillic \x0401\x0410\x0411\x0412\x0413\x0414\x0415\x0416\x0417\x0418\x0419\x041A\x041B\x041C\x041D\x041E\x041F\x0420\x0421\x0422\x0423\x0424\x0425\x0426\x0427\x0428\x0429\x042A\x042B\x042C\x042D\x042E\x042F | ||
class lowercyrillic \x0430\x0431\x0432\x0433\x0434\x0435\x0436\x0437\x0438\x0439\x043A\x043B\x043C\x043D\x043E\x043F\x0440\x0441\x0442\x0443\x0444\x0445\x0446\x0447\x0448\x0449\x044A\x044B\x044C\x044D\x044E\x044F\x0451 | ||
|
||
class latin ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | ||
class cyrillic \x0401\x0410\x0411\x0412\x0413\x0414\x0415\x0416\x0417\x0418\x0419\x041A\x041B\x041C\x041D\x041E\x041F\x0420\x0421\x0422\x0423\x0424\x0425\x0426\x0427\x0428\x0429\x042A\x042B\x042C\x042D\x042E\x042F\x0430\x0431\x0432\x0433\x0434\x0435\x0436\x0437\x0438\x0439\x043A\x043B\x043C\x043D\x043E\x043F\x0440\x0441\x0442\x0443\x0444\x0445\x0446\x0447\x0448\x0449\x044A\x044B\x044C\x044D\x044E\x044F\x0451 | ||
|
||
swapcd updigit 1234567890 1,12,14,145,15,124,1245,125,24,245 | ||
|
||
# Mark letters immediately following digits. | ||
context [$d]%lowerlatin %updigit@6 | ||
context [$d]%lowercyrillic %updigit@5 | ||
context [$d"."]%lowerlatin %updigit@256@6 | ||
context [$d"."]%lowercyrillic %updigit@256@5 | ||
|
||
# Fix cyrillic letter marks. | ||
pass2 [@46]%cyrillic @45 | ||
pass2 [@56]%cyrillic @456 | ||
pass2 [@6]%cyrillic @5 |
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,119 @@ | ||
# liblouis: Russian letters display codes | ||
# | ||
# Copyright (C) 2013 Igor B. Poretsky <[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 3 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/>. | ||
|
||
# Uppercase cyrillic letters: | ||
display A 179 | ||
display B 1279 | ||
display C 1479 | ||
display D 14579 | ||
display E 1579 | ||
display F 12479 | ||
display G 124579 | ||
display H 12579 | ||
display I 2479 | ||
display J 24579 | ||
display K 1379 | ||
display L 12379 | ||
display M 13479 | ||
display N 134579 | ||
display O 13579 | ||
display P 123479 | ||
display Q 1234579 | ||
display R 123579 | ||
display S 23479 | ||
display T 234579 | ||
display U 13679 | ||
display W 245679 | ||
display X 134679 | ||
display Z 135679 | ||
display * 1679 | ||
display & 1234679 | ||
display : 15679 | ||
display ( 1235679 | ||
display ! 234679 | ||
display ) 2345679 | ||
display { 24679 | ||
display | 125679 | ||
display $ 124679 | ||
|
||
# Lowercase cyrillic letters: | ||
display A 19 | ||
display B 129 | ||
display C 149 | ||
display D 1459 | ||
display E 159 | ||
display F 1249 | ||
display G 12459 | ||
display H 1259 | ||
display I 249 | ||
display J 2459 | ||
display K 139 | ||
display L 1239 | ||
display M 1349 | ||
display N 13459 | ||
display O 1359 | ||
display P 12349 | ||
display Q 123459 | ||
display R 12359 | ||
display S 2349 | ||
display T 23459 | ||
display U 1369 | ||
display W 24569 | ||
display X 13469 | ||
display Z 13569 | ||
display * 169 | ||
display & 123469 | ||
display : 1569 | ||
display ( 123569 | ||
display ! 23469 | ||
display ) 234569 | ||
display { 2469 | ||
display | 12569 | ||
display $ 12469 | ||
|
||
# Use lowercase letters for representation of all latins. | ||
# This convention is taken to maintain distinguishes | ||
# between cyrillic and latin letters in resulting braille output. | ||
display a 17 | ||
display b 127 | ||
display c 147 | ||
display d 1457 | ||
display e 157 | ||
display f 1247 | ||
display g 12457 | ||
display h 1257 | ||
display i 247 | ||
display j 2457 | ||
display k 137 | ||
display l 1237 | ||
display m 1347 | ||
display n 13457 | ||
display o 1357 | ||
display p 12347 | ||
display q 123457 | ||
display r 12357 | ||
display s 2347 | ||
display t 23457 | ||
display u 1367 | ||
display v 12367 | ||
display w 24567 | ||
display x 13467 | ||
display y 134567 | ||
display z 13567 |
Oops, something went wrong.