# liblouis: German grade 1 braille
#
#  Copyright (C) 2018 SBS Schweizerische Bibliothek für Blinde, Seh- und Lesebehinderte
#  Copyright (C) 2020 Bue Vester-Andersen
#  Copyright (C) 2022 Bert Frees
#
#  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/>.
#
#-------------------------------------------------------------------------------

include de-g1-core-patterns.dic

# Attach virtual dot "a" and letter attribute to contraction
# patterns. Private use area U+F800 - U+F83F is used to represent
# these.

letter  \xF821  16a            # 1 #
letter  \xF823  126a           # 2 #
letter  \xF829  146a           # 3 #
letter  \xF839  1456a          # 4 #
letter  \xF831  156a           # 5 #
letter  \xF83E  23456a         # ] #
letter  \xF80C  34a            # \ #
letter  \xF82C  346a           # 0 #

noback pass2 @16a @16
noback pass2 @126a @126
noback pass2 @146a @146
noback pass2 @1456a @1456
noback pass2 @156a @156
noback pass2 @23456a @23456
noback pass2 @34a @34
noback pass2 @346a @346

noback nocross always   au         16a                           # 1 #
noback nocross always   eu         126a                          # 2 #
noback nocross always   ei         146a                          # 3 #
noback nocross always   ch         1456a                         # 4 #
noback nocross always   sch        156a                          # 5 #
noback nocross always   st         23456a                        # ] #
noback nocross always   äu         34a                           # \ #
noback nocross always   ie         346a                          # 0 #

nofor partword    au         16                           # 1 #
nofor partword    eu         126                          # 2 #
nofor partword    ei         146                          # 3 #
nofor partword    ch         1456                         # 4 #
nofor partword    sch        156                          # 5 #
nofor partword    st         23456                        # ] #
nofor partword    äu         34                           # \ #
nofor begnum §\s 346
nofor partword    ie         346                          # 0 #

