# Liblouis: Misc character definitions for Danish 6 dots (all grades, 2022)
#
#  Copyright (C) 2014, 2016-2023, Bue Vester-Andersen <bue@vester-andersen.dk>
#
#  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/>.
#
#------------
# This file contains miscelaneous unicode character definitions used by 6 dots, all grades.
# Many of the characters in this file have not been defined in the
# Danish Braille standard.
# The current implementation is purely experimental and subject to change.
# Math chars and arrows etc. are inspired by UEB.
# for accented letters in the range u+0080 - u+00ff: the letters 
# that are thought to occur most frequently in Danish texts are used
# for back-translation.
# For all accented letters above u+00ff, the first occurring instance is chosen for back-translation.
# There are no rules about this in the specs of Danish Braille,
# So the choice is arbitrary and may change over time.

# Version: Bue Vester-Andersen December 2022

# CP1252 (\x0080-\x009f)
noback sign \x0080 45-15 #EURO SIGN (0x80)
noback punctuation \x0082 4 #Low single quote (0x82)
noback sign \x0083 45-124 #Flurihn (0x83)
noback punctuation \x0084 2356 #Low quote (0x84)
noback punctuation \x0085 3-3-3 #Elipsis (0x85)
noback math \x0089 245-356-356 #permille sign (0x89)
noback lowercase \x009a 5-234 #LATIN LETTER S WITH CARON (0x8a)
noback punctuation \x008b 4 #SINGLE LEFT-POINTING ANGLE QUOTATION MARK (0x8b)
noback lowercase \x009c 135-15 #LATIN LIGATURE OE (0x8c)
noback lowercase \x009e 5-1356 #LATIN LETTER Z WITH CARON (0x8e)
noback punctuation \x0091 4 #LEFT SINGLE QUOTATION MARK (0x91)
noback punctuation \x0092 4 #RIGHT SINGLE QUOTATION MARK (0x92)
noback punctuation \x0093 2356 #LEFT DOUBLE QUOTATION MARK (0x93)
noback punctuation \x0094 2356 #RIGHT DOUBLE QUOTATION MARK (0x94)
noback sign \x0095 45-3 #Bullit (0x95)
noback sign \x0096 36-36 #EN DASH (0x96)
noback sign \x0097 36-36 #Em DASH (0x97)
noback sign \x0099 45-2345 #TRADE MARK SIGN (0x99)
noback punctuation \x009b 4 #SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (0x9b)
noback uppercase \x009f 5-13456 #LATIN CAPITAL LETTER Y WITH DIAERESIS (0x9f)

# Latin-1 Supplement (Unicode block) (\x00a0-\x00ff)
noback punctuation \x00a1 256 INVERTED EXCLAMATION MARK )0xa1)
punctuation \x00a2 45-25 CENT SIGN (0xa2)
punctuation \x00a3 45-123 POUND SIGN (0xa3)
#punctuation \x00a4 2367 CURRENCY SIGN (0xa4)
punctuation \x00a5 45-13456 YEN SIGN (0xa5)
punctuation \x00a9 45-14 COPYRIGHT SIGN (0xa9)
noback punctuation \x00ab 2356 LEFT-POINTING DOUBLE ANGLE QUOTATION MARK (0xab)
noback punctuation \x00ad 36 SOFT HYPHEN (0xad)
punctuation \x00ae 45-1235 REGISTERED SIGN (0xae)
sign \x00b0 45-356 DEGREE SIGN (0xb0)
noback math \x00b1 45-235-36 PLUS-MINUS SIGN
digit \x00b2 346-12 SUPERSCRIPT TWO
digit \x00b3 346-14 SUPERSCRIPT THREE
noback punctuation \x00b4 4 ACUTE ACCENT
sign \x00b5 5-134 MICRO SIGN
digit \x00b9 346-1 SUPERSCRIPT ONE
noback punctuation \x00bb 2356 RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
noback sign \x00bc 3456-1-34-145 VULGAR FRACTION ONE QUARTER
noback sign \x00bd 3456-1-34-12 VULGAR FRACTION ONE HALF
noback sign \x00be 3456-14-34-145 VULGAR FRACTION THREE QUARTERS
noback punctuation \x00bf 26 INVERTED QUESTION MARK
lowercase \x00e1 5-1 LATIN LETTER A WITH ACUTE
noback lowercase \x00e2 5-1 LATIN LETTER A WITH CIRCUMFLEX
noback lowercase \x00e3 5-1 LATIN LETTER A WITH TILDE
lowercase \x00e4 5-345 LATIN LETTER A WITH DIAERESIS
lowercase \x00e7 5-14 LATIN LETTER C WITH CEDILLA
lowercase \x00ea 5-15 LATIN LETTER E WITH CIRCUMFLEX
noback lowercase \x00eb 5-15 LATIN LETTER E WITH DIAERESIS
noback lowercase \x00ec 5-24 LATIN LETTER I WITH GRAVE
noback lowercase \x00ed 5-24 LATIN LETTER I WITH ACUTE
lowercase \x00ee 5-24 LATIN LETTER I WITH CIRCUMFLEX (first for back-translation)
noback lowercase \x00ef 5-24 LATIN LETTER I WITH DIAERESIS
lowercase \x00f0 5-145 LATIN LETTER ETH
lowercase \x00f1 5-1345 LATIN LETTER N WITH TILDE
noback lowercase \x00f2 5-135 LATIN LETTER O WITH GRAVE
noback lowercase \x00f3 5-135 LATIN LETTER O WITH ACUTE
lowercase \x00f4 5-135 LATIN LETTER O WITH CIRCUMFLEX (first for back-translation)
noback lowercase \x00f5 5-135 LATIN LETTER O WITH TILDE
lowercase \x00f6 5-246 LATIN LETTER O WITH DIAERESIS
math \x00d7 45-35 MULTIPLICATION SIGN
noback lowercase \x00f9 5-136 LATIN LETTER U WITH GRAVE
noback lowercase \x00fa 5-136 LATIN LETTER U WITH ACUTE
lowercase \x00fb 5-136 LATIN LETTER U WITH CIRCUMFLEX (first for back-translation
lowercase \x00fd 5-13456 LATIN LETTER Y WITH ACUTE (infinite?)
lowercase \x00fe 5-2345 LATIN LETTER THORN
noback lowercase \x00df 234-234 LATIN SMALL LETTER SHARP S
math \x00f7 45-256 DIVISION SIGN

# Latin Extended-A (\x0100-\x017f)

noback lowercase \x0101 5-1 Latin letter a with macron
noback lowercase \x0103 5-1 Latin letter a with breve
noback lowercase \x0105 5-1 Latin letter a with ogonek
noback lowercase \x0107 5-14 Latin letter c with acute
noback lowercase \x0109 5-14 Latin letter c with circumflex
noback lowercase \x010b 5-14 Latin letter c with dot above
noback lowercase \x010d 5-14 Latin letter c with caron
noback lowercase \x010f 5-145 Latin letter d with caron
noback lowercase \x0111 5-145 Latin letter d with stroke
noback lowercase \x0113 5-15 Latin letter e with macron
noback lowercase \x0115 5-15 Latin letter e with breve
noback lowercase \x0117 5-15 Latin letter e with dot above
noback lowercase \x0119 5-15 Latin letter e with ogonek
noback lowercase \x011b 5-15 Latin letter e with caron
noback lowercase \x011d 5-1245 Latin letter g with circumflex
noback lowercase \x011f 5-1245 Latin letter g with breve
noback lowercase \x0121 5-1245 Latin letter g with dot above
noback lowercase \x0123 5-1245 Latin letter g with cedilla
noback lowercase \x0125 5-125 Latin letter h with circumflex
noback lowercase \x0127 5-125 Latin letter h with stroke
noback lowercase \x0129 5-24 Latin letter i with tilde
noback lowercase \x012b 5-24 Latin letter i with macron
noback lowercase \x012d 5-24 Latin letter i with breve
noback lowercase \x012f 5-24 Latin letter i with ogonek
noback lowercase \x0131 5-24 Latin small dotless i
noback lowercase \x0133 24-245 Latin ligature ij
lowercase \x0135 5-245 Latin letter j with circumflex
noback lowercase \x0137 5-13 Latin letter k with cedilla
lowercase \x0138 5-12345 Small latin letter kra (Greenlandic q)
noback lowercase \x013a 5-123 Latin letter l with acute
noback lowercase \x013c 5-123 Latin letter l with cedilla
noback lowercase \x013e 5-123 Latin letter l with caron
noback lowercase \x0140 5-123 Latin letter l with middle dot
noback lowercase \x0142 5-123 Latin letter l with stroke
noback lowercase \x0144 5-1345 Latin letter n with acute
noback lowercase \x0146 5-1345 Latin letter n with cedilla
noback lowercase \x0148 5-1345 Latin letter n with caron
noback lowercase \x0149 4-1345 Latin small letter n preceeded by apostrophe
noback lowercase \x014b 5-1345 Latin letter eng
noback lowercase \x014d 5-135 Latin letter o with macron
noback lowercase \x014f 5-135 Latin letter o with breve
noback lowercase \x0151 5-135 Latin letter o with double acute
noback lowercase \x0153 135-15 #LATIN LIGATURE OE (0x8c)
noback lowercase \x0155 5-1235 Latin letter r with acute
noback lowercase \x0157 5-1235 Latin letter r with cedilla
noback lowercase \x0159 5-1235 Latin letter r with caron
noback lowercase \x015b 5-234 Latin letter s with acute
noback lowercase \x015d 5-234 Latin letter s with circumflex
noback lowercase \x015f 5-234 Latin letter s with cedilla
lowercase \x0161 5-234 #LATIN LETTER S WITH CARON (0x8a)
noback lowercase \x0163 5-2345 Latin letter t with cedilla
noback lowercase \x0165 5-2345 Latin letter t with caron
noback lowercase \x0167 5-2345 Latin letter t with stroke
noback lowercase \x0169 5-136 Latin letter u with tilde
noback lowercase \x016b 5-136 Latin letter u with macron
noback lowercase \x016d 5-136 Latin letter u with breve
noback lowercase \x016f 5-136 Latin letter u with ring above
noback lowercase \x0171 5-136 Latin letter u with double acute
noback lowercase \x0173 5-136 Latin letter u with ogonek
noback lowercase \x0175 5-2456 Latin letter w with circumflex
noback lowercase \x0177 5-13456 Latin letter y with circumflex
lowercase \x00ff 5-13456 #LATIN LETTER Y WITH DIAERESIS (0x9f)
noback lowercase \x017a 5-1356 Latin letter z with acute
noback lowercase \x017c 5-1356 Latin letter z with dot above
lowercase \x017e 5-1356 #LATIN LETTER Z WITH CARON (0x8e)
noback lowercase \x017f 5-234 Latin small letter long s 

# Latin Extended-B 


sign \x0192 45-124 #Flurihn (0x83)
#letter \x02c6 5678 #Modifier letter circumflex (0x88)
noback sign \x02DC 45-23 #SMALL TILDE (0x98)

# Greek letters (with dot 5 as prefix)

noback lowercase \x03AC 5-1 Greek letter alpha with tonos
noback lowercase \x03AD 5-15 Greek letter epsilon with tonos
noback lowercase \x03AE 5-156 Greek letter eta with tonos
noback lowercase \x03AF 5-24 Greek letter iota with sonos
noback lowercase \x03CC 5-135 Greek letter omicron with tonos
noback lowercase \x03CD 5-136 Greek letter upsilon with tonos
noback lowercase \x03CE 5-2456 Greek letter omega with tonos

noback lowercase \x03B1 5-1 Greek letter alpha
lowercase \x03B2 5-12 Greek letter beta
lowercase \x03B3 5-1245 Greek letter gamma
noback lowercase \x03B4 5-145 Greek letter delta
noback lowercase \x03B5 5-15 Greek letter epsilon
noback lowercase \x03B6 5-1356 Greek letter zeta
lowercase \x03B7 5-156 Greek letter eta
lowercase \x03B8 5-1456 Greek letter theta
noback lowercase \x03B9 5-24 Greek letter iota
lowercase \x03BA 5-13 Greek letter kappa
lowercase \x03BB 5-123 Greek letter lamda
noback lowercase \x03BC 5-134 Greek letter Mu
noback lowercase \x03BD 5-1345 Greek letter Nu
lowercase \x03BE 5-1346 Greek letter Xi
noback lowercase \x03BF 5-135 Greek letter Omicron
lowercase \x03C0 5-1234 Greek letter Pi
lowercase \x03C1 5-1235 Greek letter Rho
noback lowercase \x03C3 5-234 Greek letter sigma
noback lowercase \x03C4 5-2345                        Greek letter Tau
noback lowercase \x03C5 5-136 Greek letter Upsilon
lowercase \x03C6 5-124 Greek letter Phi
lowercase \x03C7 5-125 Greek letter Chi
noback lowercase \x03C8 5-13456 Greek letter Psi
lowercase \x03C9 5-2456 Greek letter Omega

# Uppercase letters

base uppercase \x008a \x009a #LATIN LETTER S WITH CARON (0x8a)
base uppercase \x008c \x009c #LATIN LIGATURE OE (0x8c)
base uppercase \x008e \x009e #LATIN CAPITAL LETTER Z WITH CARON (0x8e)
base uppercase \x00c1 \x00e1 LATIN LETTER A WITH ACUTE
base uppercase \x00c2 \x00e2 LATIN LETTER A WITH CIRCUMFLEX
base uppercase \x00c3 \x00e3 LATIN LETTER A WITH TILDE
base uppercase \x00c4 \x00e4 LATIN LETTER A WITH DIAERESIS
base uppercase \x00c7 \x00e7 LATIN LETTER C WITH CEDILLA
base uppercase \x00ca \x00ea LATIN LETTER E WITH CIRCUMFLEX
base uppercase \x00cb \x00eb LATIN LETTER E WITH DIAERESIS
base uppercase \x00cc \x00ec LATIN LETTER I WITH GRAVE
base uppercase \x00cd \x00ed LATIN LETTER I WITH ACUTE
base uppercase \x00ce \x00ee LATIN LETTER I WITH CIRCUMFLEX (first for back-translation)
base uppercase \x00cf \x00ef LATIN LETTER I WITH DIAERESIS
base uppercase \x00d0 \x00f0 LATIN LETTER ETH
base uppercase \x00d1 \x00f1 LATIN LETTER N WITH TILDE
base uppercase \x00d2 \x00f2 LATIN LETTER O WITH GRAVE
base uppercase \x00d3 \x00f3 LATIN LETTER O WITH ACUTE
base uppercase \x00d4 \x00f4 LATIN LETTER O WITH CIRCUMFLEX (first for back-translation)
base uppercase \x00d5 \x00f5 LATIN LETTER O WITH TILDE
base uppercase \x00d6 \x00f6 LATIN LETTER O WITH DIAERESIS
base uppercase \x00d9 \x00f9 LATIN LETTER U WITH GRAVE
base uppercase \x00da \x00fa LATIN LETTER U WITH ACUTE
base uppercase \x00db \x00fb LATIN LETTER U WITH CIRCUMFLEX (first for back-translation
base uppercase \x00dd \x00fd LATIN LETTER Y WITH ACUTE (infinite?)
base uppercase \x00de \x00fe LATIN CAPITAL LETTER THORN
base uppercase \x0100 \x0101 Latin letter a with macron
base uppercase \x0102 \x0103 Latin letter a with breve
base uppercase \x0104 \x0105 Latin letter a with ogonek
base uppercase \x0106 \x0107 Latin letter c with acute
base uppercase \x0108 \x0109 Latin letter c with circumflex
base uppercase \x010a \x010b Latin letter c with dot above
base uppercase \x010c \x010d Latin letter c with caron
base uppercase \x010e \x010f Latin letter d with caron
base uppercase \x0110 \x0111 Latin letter d with stroke
base uppercase \x0112 \x0113 Latin letter e with macron
base uppercase \x0114 \x0115 Latin letter e with breve
base uppercase \x0116 \x0117 Latin letter e with dot above
base uppercase \x0118 \x0119 Latin letter e with ogonek
base uppercase \x011a \x011b Latin letter e with caron
base uppercase \x011c \x011d Latin letter g with circumflex
base uppercase \x011e \x011f Latin letter g with breve
base uppercase \x0120 \x0121 Latin letter g with dot above
base uppercase \x0122 \x0123 Latin letter g with cedilla
base uppercase \x0124 \x0125 Latin letter h with circumflex
base uppercase \x0126 \x0127 Latin letter h with stroke
base uppercase \x0128 \x0129 Latin letter i with tilde
base uppercase \x012a \x012b Latin letter i with macron
base uppercase \x012c \x012d Latin letter i with breve
base uppercase \x012e \x012f Latin letter i with ogonek
base uppercase \x0130 \x0131 Latin capital letter i with dot above / small dotless i
base uppercase \x0132 \x0133 Latin ligature ij
base uppercase \x0134 \x0135 Latin letter j with circumflex
base uppercase \x0136 \x0137 Latin letter k with cedilla
base uppercase \x0139 \x013a Latin letter l with acute
base uppercase \x013b \x013c Latin letter l with cedilla
base uppercase \x013d \x013e Latin letter l with caron
base uppercase \x013f \x0140 Latin letter l with middle dot
base uppercase \x0141 \x0142 Latin letter l with stroke
base uppercase \x0143 \x0144 Latin letter n with acute
base uppercase \x0145 \x0146 Latin letter n with cedilla
base uppercase \x0147 \x0148 Latin letter n with caron
base uppercase \x014a \x014b Latin letter eng
base uppercase \x014c \x014d Latin letter o with macron
base uppercase \x014e \x014f Latin letter o with breve
base uppercase \x0150 \x0151 Latin letter o with double acute
base uppercase \x0152 \x0153 #LATIN LIGATURE OE (0x8c)
base uppercase \x0154 \x0155 Latin letter r with acute
base uppercase \x0156 \x0157 Latin letter r with cedilla
base uppercase \x0158 \x0159 Latin letter r with caron
base uppercase \x015a \x015b Latin letter s with acute
base uppercase \x015c \x015d Latin letter s with circumflex
base uppercase \x015e \x015f Latin letter s with cedilla
base uppercase \x0160 \x0161 #LATIN LETTER S WITH CARON (0x8a)
base uppercase \x0162 \x0163 Latin letter t with cedilla
base uppercase \x0164 \x0165 Latin letter t with caron
base uppercase \x0166 \x0167 Latin letter t with stroke
base uppercase \x0168 \x0169 Latin letter u with tilde
base uppercase \x016a \x016b Latin letter u with macron
base uppercase \x016c \x016d Latin letter u with breve
base uppercase \x016e \x016f Latin letter u with ring above
base uppercase \x0170 \x0171 Latin letter u with double acute
base uppercase \x0172 \x0173 Latin letter u with ogonek
base uppercase \x0174 \x0175 Latin letter w with circumflex
base uppercase \x0176 \x0177 Latin letter y with circumflex
base uppercase \x0178 \x00ff #LATIN LETTER Y WITH DIAERESIS (0x9f)
base uppercase \x0179 \x017a Latin letter z with acute
base uppercase \x017b \x017c Latin letter z with dot above
base uppercase \x017d \x017e #LATIN LETTER Z WITH CARON (0x8e)
base uppercase \x0386 \x03AC Greek letter alpha with tonos
base uppercase \x0388 \x03AD Greek letter epsilon with tonos
base uppercase \x0389 \x03AE Greek letter eta with tonos
base uppercase \x038A \x03AF Greek letter iota with sonos
base uppercase \x038C \x03CC Greek letter omicron with tonos
base uppercase \x038E \x03CD Greek letter upsilon with tonos
base uppercase \x038F \x03CE Greek letter omega with tonos
base uppercase \x0391 \x03B1 Greek letter alpha
base uppercase \x0392 \x03B2 Greek letter beta
base uppercase \x0393 \x03B3 Greek letter gamma
base uppercase \x0394 \x03B4 Greek letter delta
base uppercase \x0395 \x03B5 Greek letter epsilon
base uppercase \x0396 \x03B6 Greek letter zeta
base uppercase \x0397 \x03B7 Greek letter eta
base uppercase \x0398 \x03B8 Greek letter theta
base uppercase \x0399 \x03B9 Greek letter iota
base uppercase \x039A \x03BA Greek letter kappa
base uppercase \x039B \x03BB Greek letter lamda
base uppercase \x039C \x03BC Greek letter Mu
base uppercase \x039D \x03BD Greek letter Nu
base uppercase \x039E \x03BE Greek letter Xi
base uppercase \x039F \x03BF Greek letter Omicron
base uppercase \x03A0 \x03C0 Greek letter Pi
base uppercase \x03A1 \x03C1 Greek letter Rho
base uppercase \x03A3 \x03C3 Greek letter sigma
base uppercase \x03A4 \x03C4 Greek letter Tau
base uppercase \x03A5 \x03C5 Greek letter Upsilon
base uppercase \x03A6 \x03C6 Greek letter Phi
base uppercase \x03A7 \x03C7 Greek letter Chi
base uppercase \x03A8 \x03C8 Greek letter Psi
base uppercase \x03A9 \x03C9 Greek letter Omega

# Punctuation and bullits

noback punctuation \x2010 36 # Hyphen
noback punctuation \x2011 36 # Non-breaking hyphen
noback punctuation \x2012 36 # Figure dash
noback sign \x2013 36-36 #EN DASH (0x96)
noback sign \x2014 36-36 #Em DASH (0x97)
noback punctuation \x2018 4 #LEFT SINGLE QUOTATION MARK (0x91)
noback punctuation \x2019 4 #RIGHT SINGLE QUOTATION MARK (0x92)
noback punctuation \x201A 4 #Low single quote (0x82)
noback punctuation \x201b 4 # Single High-Reversed-9 Quotation Mark
noback punctuation \x201c 2356 #LEFT DOUBLE QUOTATION MARK (0x93)
noback punctuation \x201d 2356 #RIGHT DOUBLE QUOTATION MARK (0x94)
noback punctuation \x201E 2356 #Low quote (0x84)
noback punctuation \x201f 2356 # Double High-Reversed-9 Quotation Mark
#letter \x2020 2357 #Dagger (0x86
#letter \x2021 23578 #Double dagger (0x87
sign \x2022 45-3 #Bullit (0x95)
noback sign \x2023 45-3 #Triangular bullit
noback punctuation \x2026 3-3-3 #Elipsis (0x85)
noback space \x202f 0 # Narrow No-Break Space (NNBSP)
math \x2030 245-356-356 #permille sign (0x89)
noback punctuation \x2039 4 #SINGLE LEFT-POINTING ANGLE QUOTATION MARK (0x8b)
noback punctuation \x203A 4 #SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (0x9b)
noback punctuation \x203c 235-235 # Double Exclamation Mark
noback punctuation \x203d 26-235 # Interrobang
noback sign \x2043 45-3 # Hyphen bullet
noback punctuation \x2047 26-26 # Double question mark
noback punctuation \x2048 26-235 # Question exclamation mark
noback punctuation \x2049 235-26 # Exclamation question mark
noback sign \x204c 45-3 # BLACK LEFTWARDS BULLET 
noback sign \x204d 45-3 # BLACK RIGHTWARDS BULLET 
sign \x20AC 45-15 #EURO SIGN (0x80)
sign \x2122 45-2345 #TRADE MARK SIGN (0x99)

# Arrows

sign \x2190 45-2456 Left arrow
sign \x2191 45-12356 Up arrow
sign \x2192 45-1235 Right arrow
sign \x2193 45-12345 Down arrow

# Geometrical shapes

noback sign \x25e6 45-3 #White bullet