#-index-name: Ukrainian
#-display-name: Ukrainian braille

#+language: uk
#+type: literary
#+direction: forward

# -----------------
# TODO: Please add a reference to official documentation about
# the implemented braille code. Preferably submit the documents
# to https://github.com/liblouis/braille-specs.
# -----------------

#-copyright: Bert Frees
#-copyright: EAC "Lemur"
#-license: LGPLv2.1

#  Copyright (C) 2017 EAC "Lemur" <www.trosti.com.ua>
#  Copyright (C) 2018 Bert Frees <bertfrees@gmail.com>
#
#  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/>.

# Maintained by Sergiy Moskalets.

#-maintainer: Sergiy Moskalets <www.trosti.com.ua>

# -----------------

# The Ukrainian alphabet has 4 letters that are not in the Russian
# alphabet, namely Є, І, Ї and Ґ. Like in ru-litbrl.ctb, the
# following definitions have dot 9 set to make them distinguishable
# from the Latin letters.
#
# The first three definitions conflict with definitions in
# ru-litbrl.ctb and need to be placed before AND after the
# "ru-litbrl.ctb" include in order for both the lower- and uppercase
# part to take precedence (see
# https://github.com/liblouis/liblouis/issues/384).

lowercase \x0454 3459    CYRILLIC LETTER IE   є
lowercase \x0456 134569  CYRILLIC LETTER I    і
lowercase \x0457 14569   CYRILLIC LETTER II   ї
lowercase \x0491 124569  CYRILLIC LETTER GE   ґ

# base rule for Ґ (the base rules for Є, І and Ї are already in ru-litbrl.ctb)
base uppercase \x0490 \x0491  CYRILLIC LETTER GE   Ґґ

# Ukrainian braille is largely the same as Russian braille
include ru-litbrl.ctb

lowercase \x0454 3459    CYRILLIC LETTER IE   є
lowercase \x0456 134569  CYRILLIC LETTER I    і
lowercase \x0457 14569   CYRILLIC LETTER II   ї

# Extend classes defined in ru-litbrl.ctb
attribute uppercyrillic \x0490
attribute lowercyrillic \x0491