| 1 |
#-index-name: Ukrainian |
| 2 |
#-display-name: Ukrainian braille |
| 3 |
|
| 4 |
#+language: uk |
| 5 |
#+type: literary |
| 6 |
#+direction: both |
| 7 |
|
| 8 |
# ----------------- |
| 9 |
# TODO: Please add a reference to official documentation about |
| 10 |
# the implemented braille code. Preferably submit the documents |
| 11 |
# to https://github.com/liblouis/braille-specs. |
| 12 |
# ----------------- |
| 13 |
|
| 14 |
#-copyright: Bert Frees |
| 15 |
#-copyright: EAC "Lemur" |
| 16 |
#-copyright: Andrey Yakuboy |
| 17 |
#-license: LGPLv2.1 |
| 18 |
|
| 19 |
# Copyright (C) 2017 EAC "Lemur" <www.trosti.com.ua> |
| 20 |
# Copyright (C) 2018 Bert Frees <[email protected]> |
| 21 |
# Copyright (C) 2024 Andrey Yakuboy <[email protected]> |
| 22 |
# |
| 23 |
# This file is part of liblouis. |
| 24 |
# |
| 25 |
# liblouis is free software: you can redistribute it and/or modify it |
| 26 |
# under the terms of the GNU Lesser General Public License as |
| 27 |
# published by the Free Software Foundation, either version 2.1 of the |
| 28 |
# License, or (at your option) any later version. |
| 29 |
# |
| 30 |
# liblouis is distributed in the hope that it will be useful, but |
| 31 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 32 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 33 |
# Lesser General Public License for more details. |
| 34 |
# |
| 35 |
# You should have received a copy of the GNU Lesser General Public |
| 36 |
# License along with liblouis. If not, see |
| 37 |
# <http://www.gnu.org/licenses/>. |
| 38 |
|
| 39 |
# Maintained by Sergiy Moskalets. |
| 40 |
|
| 41 |
#-maintainer: Sergiy Moskalets <www.trosti.com.ua> |
| 42 |
|
| 43 |
# ----------------- |
| 44 |
|
| 45 |
# The Ukrainian alphabet has 4 letters that are not in the Russian |
| 46 |
# alphabet, namely Є, І, Ї and Ґ. |
| 47 |
|
| 48 |
lowercase \x0454 345 CYRILLIC LETTER IE є # conflicts with definition in# ru-litbrl.ctb |
| 49 |
lowercase \x0456 13456 CYRILLIC LETTER I і # conflicts with definition in# ru-litbrl.ctb |
| 50 |
lowercase \x0457 1456 CYRILLIC LETTER II ї # conflicts with definition in# ru-litbrl.ctb |
| 51 |
lowercase \x0491 12456 CYRILLIC LETTER GE ґ |
| 52 |
|
| 53 |
# base rule for Ґ (the base rules for Є, І and Ї are already in ru-litbrl.ctb) |
| 54 |
base uppercase \x0490 \x0491 CYRILLIC LETTER GE Ґґ |
| 55 |
|
| 56 |
# Add dot 9 to additional Cyrillic characters, as in ru-litbrl.ctb |
| 57 |
|
| 58 |
noback always \x0454 3459 |
| 59 |
noback always \x0456 134569 |
| 60 |
noback always \x0457 14569 |
| 61 |
noback always \x0491 124569 |
| 62 |
|
| 63 |
noback always \x0404 3459 |
| 64 |
noback always \x0406 134569 |
| 65 |
noback always \x0407 14569 |
| 66 |
noback always \x0490 124569 |
| 67 |
|
| 68 |
# As the definition of the Ukrainian letter 'є' conflicts with parentheses, the definitions of parentheses should be changed |
| 69 |
prepunc ( 2356 |
| 70 |
postpunc ) 2356 |
| 71 |
|
| 72 |
# Ukrainian braille is largely the same as Russian braille |
| 73 |
include ru-litbrl.ctb |
| 74 |
|
| 75 |
# Extend classes defined in ru-litbrl.ctb |
| 76 |
attribute uppercyrillic \x0490 |
| 77 |
attribute lowercyrillic \x0491 |
| 78 |
|
| 79 |
# In spite of conflicts of letters and parentheses, in math text parentheses should be marked like in the Russian braille |
| 80 |
# The correct opcode is used to avoid conflicts with rules in ru-litbrl.ctb |
| 81 |
noback correct $m["("] "\x2823"#4=1 # \x2823 is the dots 126 |
| 82 |
noback correct ["("]$m "\x2823"#4=1 |
| 83 |
noback correct $d["("] "\x2823"#4=1 |
| 84 |
noback correct ["("]$d "\x2823"#4=1 |
| 85 |
noback correct #4=1[")"] "\x281c"#4=0 # \x281c is the dots 345 |
| 86 |
noback correct $m[")"] "\x281c"#4=0 |
| 87 |
noback correct [")"]$m "\x281c"#4=0 |
| 88 |
noback correct $d[")"] "\x281c"#4=0 |
| 89 |
noback correct [")"]$d "\x281c"#4=0 |
| 90 |
|
| 91 |
# Back translation of additional letters |
| 92 |
|
| 93 |
nofor context #4=1@345 "\x0404"#4=0 |
| 94 |
nofor context #4=1@13456 "\x0406"#4=0 |
| 95 |
nofor context #4=1@1456 "\x0407"#4=0 |
| 96 |
nofor context #4=1@12456 "\x0490"#4=0 |
| 97 |
|
| 98 |
nofor context #4=2@345 "\x0404" |
| 99 |
nofor context #4=2@13456 "\x0406" |
| 100 |
nofor context #4=2@1456 "\x0407" |
| 101 |
nofor context #4=2@12456 "\x0490" |