# Liblouis: Danish table for 8 dots grade 1 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  is the Danish table for 8 dots grade 1 (fuldskrift) 2022.
# Use this table for translation and back-translation of Danish 8 dots grade 1.
# See also: Den Danske Punktskrift 2022
#           Det Danske Punktskriftsnævn
#           https://www.blind.dk/punktskrift-2022
#
# Version: Bue Vester-Andersen, December 2022

### Table Metadata

#-name: Dansk fuldskrift 8-punkt 2022
#-index-name: Danish, uncontracted, 8-dot, 2022
#-display-name: Danish 8-dot uncontracted braille (2022 standard)

#+language: da
#+type: literary
#+contraction: no
#+grade: 1
#+dots: 8
#+direction: both
#+system: ddp
#+version: 2022

# Display upcodes
include da-dk-octobraille.dis

### Character definitions ###
# Various spaces
include spaces.uti

punctuation ! 235 EXCLAMATION MARK
punctuation " 2356 QUOTATION MARK
punctuation # 34568 NUMBER SIGN
sign $ 14578 DOLLAR SIGN
math % 678 PERCENT SIGN
sign & 123468 AMPERSAND
punctuation ' 4 APOSTROPHE
punctuation ( 2368 LEFT PARENTHESIS
punctuation ) 3568 RIGHT PARENTHESIS
punctuation * 35 ASTERISK
math + 2358 PLUS SIGN
punctuation , 2 COMMA
punctuation - 36 HYPHEN-MINUS
punctuation . 3 FULL STOP
punctuation / 348 SLASH

# Digits
include digits8Dots.uti

punctuation : 25 COLON
punctuation ; 23 SEMICOLON
math < 358 LESS-THAN SIGN
math = 23568 EQUALS SIGN
math > 267 GREATER-THAN SIGN
punctuation ? 26 QUESTION MARK
sign @ 178 COMMERCIAL AT

# Latin letters
include latinLetterDef8Dots.uti

punctuation [ 23678 LEFT SQUARE BRACKET
punctuation \\ 347 REVERSE SLASH
punctuation ] 35678 RIGHT SQUARE BRACKET
punctuation ^ 12348 CIRCUMFLEX ACCENT
punctuation _ 3678 LOW LINE
punctuation ` 5 GRAVE ACCENT

# Lowercase letters, see above

punctuation { 123678 LEFT CURLY BRACKET
punctuation | 4568 VERTICAL LINE
punctuation } 345678 RIGHT CURLY BRACKET
punctuation ~ 2378 TILDE
sign \x007f 7 DELETE
sign \x20AC 1578 #EURO SIGN (0x80)
sign \x0081 2357 <control-0081>
punctuation \x201A 457 #Low single quote (0x82)
sign \x0192 58 #Flurihn (0x83)
punctuation \x201E 467 #Low quote (0x84)
punctuation \x2026 6 #Elipsis (0x85)
sign \x2020 45 #Dagger (0x86
sign \x2021 456 #Double dagger (0x87
sign \x02c6 5678 #Modifier letter circumflex (0x88)
math \x2030 245678 #permille sign (0x89)
punctuation \x2039 23578 #SINGLE LEFT-POINTING ANGLE QUOTATION MARK (0x8b)
uppercase \x0152 13578 #Latin capital LIGATURE OE (0x8c)
sign \x008d 3567 REVERSE LINE FEED (not defined in cp1252)
uppercase \x017d 3467 #Latin capital letter Z with caron (0x8e)
sign \x008f 27 SINGLE SHIFT THREE (not defined in cp1252)
sign \x0090 357 DEVICE CONTROL STRING (not defined in cp1252)
punctuation \x2018 47 #LEFT SINGLE QUOTATION MARK (0x91)
punctuation \x2019 48 #RIGHT SINGLE QUOTATION MARK (0x92)
punctuation \x201c 237 #LEFT DOUBLE QUOTATION MARK (0x93)
punctuation \x201d 568 #RIGHT DOUBLE QUOTATION MARK (0x94)
sign \x2022 37 #Bullit (0x95)
sign \x2013 368 #EN DASH (0x96)
sign \x2014 367 #Em DASH (0x97)
sign \x02DC 23478 #small TILDE (0x98)
sign \x2122 234578 #TRADE MARK SIGN (0x99)
punctuation \x203A 4567 #SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (0x9b)
lowercase \x0153 1358 #Latin small LIGATURE OE (0x9c)
letter \x009d 2567 OPERATING SYSTEM COMMAND
lowercase \x017E 346 #Latin small letter Z with caron (0x9e)
uppercase \x0178 2345678 #Latin capital letter Y with DIAERESIS (0x9f)
punctuation \x00a1 256 INVERTED EXCLAMATION MARK )0xa1)
punctuation \x00a2 2578 CENT SIGN (0xa2)
punctuation \x00a3 12378 POUND SIGN (0xa3)
punctuation \x00a4 2367 CURRENCY SIGN (0xa4)
punctuation \x00a5 1345678 YEN SIGN (0xa5)
punctuation \x00a6 3478 BROKEN BAR (0xa6)
punctuation \x00a7 578 SECTION SIGN (0xa7)
punctuation \x00a8 56 DIAERESIS (0xa8)
punctuation \x00a9 1478 COPYRIGHT SIGN (0xa9)
letter \x00aa 234678 FEMININE ORDINAL INDICATOR (0xaa)
punctuation \x00ab 57 LEFT-POINTING DOUBLE ANGLE QUOTATION MARK (0xab)
punctuation \x00ac 34567 NOT SIGN (0xac)
letter \x00ad 378 SOFT HYPHEN (0xad)
punctuation \x00ae 123578 Registered sign (0xae)
punctuation \x00af 23567 macron (0xaf)
sign \x00b0 356 Degree sign (0xb0)
math \x00b1 12478 PLUS-MINUS SIGN
punctuation \x00b2 238 SUPERSCRIPT TWO
punctuation \x00b3 258 SUPERSCRIPT THREE
punctuation \x00b4 458 acute ACCENT
sign \x00b5 236 MICRO SIGN
punctuation \x00b6 1234568 PILCROW SIGN
punctuation \x00b7 38 MIDDLE DOT
punctuation \x00b8 4678 CEDILLA
punctuation \x00b9 28 SUPERSCRIPT ONE
letter \x00ba 12345678 MASCULINE ORDINAL INDICATOR
punctuation \x00bb 567 RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
punctuation \x00bc 1368 VULGAR FRACTION ONE QUARTER
punctuation \x00bd 468 VULGAR FRACTION ONE HALF
punctuation \x00be 13468 VULGAR FRACTION THREE QUARTERS
punctuation \x00bf 34 INVERTED QUESTION MARK
uppercase \x00c0 123567 Latin capital letter A with GRAVE
uppercase \x00c1 1235678 Latin capital letter A with acute
uppercase \x00c2 1678 Latin capital letter A with CIRCUMFLEX
uppercase \x00c3 14678 Latin capital letter A with TILDE
uppercase \x00c4 34578 Latin capital letter A with DIAERESIS
uppercase \x00c5 167 Latin capital letter A with RING ABOVE
uppercase \x00c6 3457 Latin capital letter AE
uppercase \x00c7 123467 Latin capital letter C with CEDILLA
uppercase \x00c8 23467 Latin capital letter E with GRAVE
uppercase \x00c9 1234567 Latin capital letter E with acute
uppercase \x00ca 1267 Latin capital letter E with CIRCUMFLEX
uppercase \x00cb 12467 Latin capital letter E with DIAERESIS
uppercase \x00cc 15678 Latin capital letter I with GRAVE
uppercase \x00cd 12678 Latin capital letter I with acute
uppercase \x00ce 1467 Latin capital letter I with CIRCUMFLEX
uppercase \x00cf 124567 Latin capital letter I with DIAERESIS
uppercase \x00d0 67 Latin capital letter ETH
uppercase \x00d1 1245678 Latin capital letter N with TILDE
uppercase \x00d2 124678 Latin capital letter O with GRAVE
uppercase \x00d3 34678 Latin capital letter O with acute
uppercase \x00d4 14567 Latin capital letter O with CIRCUMFLEX
uppercase \x00d5 145678 Latin capital letter O with TILDE
uppercase \x00d6 24678 Latin capital letter O with DIAERESIS
math \x00d7 3456 MULTIPLICATION SIGN
uppercase \x00d8 2467 Latin capital letter O with STROKE
uppercase \x00d9 234567 Latin capital letter U with GRAVE
uppercase \x00da 125678 Latin capital letter U with acute
uppercase \x00db 1567 Latin capital letter U with CIRCUMFLEX
uppercase \x00dc 12567 Latin capital letter U with DIAERESIS
uppercase \x00dd 235678 Latin capital letter Y with acute (infinite?)
uppercase \x00de 1378 Latin capital letter THORN
lowercase \x00df 23468 Latin small letter SHARP S
lowercase \x00e0 12356 Latin small letter A with GRAVE
lowercase \x00e1 123568 Latin small letter A with acute
lowercase \x00e2 168 Latin small letter A with CIRCUMFLEX
lowercase \x00e3 1468 Latin small letter A with TILDE
lowercase \x00e4 3458 Latin small letter A with DIAERESIS
lowercase \x00e5 16 Latin small letter A with RING ABOVE
lowercase \x00e6 345 Latin small letter AE
lowercase \x00e7 12346 Latin small letter C with CEDILLA
lowercase \x00e8 2346 Latin small letter E with GRAVE
lowercase \x00e9 123456 Latin small letter E with acute
lowercase \x00ea 126 Latin small letter E with CIRCUMFLEX
lowercase \x00eb 1246 Latin small letter E with DIAERESIS
lowercase \x00ec 1568 Latin small letter I with GRAVE
lowercase \x00ed 1268 Latin small letter I with acute
lowercase \x00ee 146 Latin small letter I with CIRCUMFLEX
lowercase \x00ef 12456 Latin small letter I with DIAERESIS
lowercase \x00f0 134568 Latin small letter ETH
lowercase \x00f1 124568 Latin small letter N with TILDE
lowercase \x00f2 12468 Latin small letter O with GRAVE
lowercase \x00f3 3468 Latin small letter O with acute
lowercase \x00f4 1456 Latin small letter O with CIRCUMFLEX
lowercase \x00f5 14568 Latin small letter O with TILDE
lowercase \x00f6 2468 Latin small letter O with DIAERESIS
math \x00f7 2568 DIVISION SIGN
lowercase \x00f8 246 Latin small letter O with STROKE
lowercase \x00f9 23456 Latin small letter U with GRAVE
lowercase \x00fa 12568 Latin small letter U with acute
lowercase \x00fb 156 Latin small letter U with CIRCUMFLEX
lowercase \x00fc 1256 Latin small letter U with DIAERESIS
lowercase \x00fd 1348 Latin small letter Y with acute
lowercase \x00fe 138 Latin small letter THORN
lowercase \x00ff 234568 Latin small letter Y with DIAERESIS

# In CP-1252 the following chars are different from Unicode.
# This placement ensures that Liblouis will always return the unicode when back-translating.
sign \x0080 1578 #EURO SIGN (0x80)
punctuation \x0082 457 #Low single quote (0x82)
sign \x0083 58 #Flurihn (0x83)
punctuation \x0084 467 #Low quote (0x84)
punctuation \x0085 6 #Elipsis (0x85)
letter \x0086 45 #Dagger (0x86
letter \x0087 456 #Double dagger (0x87
letter \x0088 5678 #Modifier letter circumflex (0x88)
math \x0089 245678 #permille sign (0x89)
uppercase \x008a 23478 #Latin letter S with caron (0x8a)
lowercase \x009a 2348
punctuation \x008b 23578 #SINGLE LEFT-POINTING ANGLE QUOTATION MARK (0x8b)
uppercase \x008c 13578 #Latin LIGATURE OE (0x8c)
lowercase \x009c 1358
uppercase \x008e 3467 #Latin capital letter Z with caron (0x8e)
lowercase \x009e 346
punctuation \x0091 47 #LEFT SINGLE QUOTATION MARK (0x91)
punctuation \x0092 48 #RIGHT SINGLE QUOTATION MARK (0x92)
punctuation \x0093 237 #LEFT DOUBLE QUOTATION MARK (0x93)
punctuation \x0094 568 #RIGHT DOUBLE QUOTATION MARK (0x94)
sign \x0095 37 #Bullit (0x95)
sign \x0096 368 #EN DASH (0x96)
sign \x0097 367 #Em DASH (0x97)
sign \x0098 23478 #small TILDE (0x98)
sign \x0099 234578 #TRADE MARK SIGN (0x99)
punctuation \x009b 4567 #SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (0x9b)
uppercase \x009f 2345678 #Latin capital letter Y with DIAERESIS (0x9f)

#Unicode Braille patterns
include braille-patterns.cti

# characters that have letsign as part of their definition
# (to be removed when the alwaysletsign opcode has been implemented).

punctuation \x2026 56-3-3-3 #Elipsis (0x85)
noback punctuation \x0085 56-3-3-3 #Elipsis (0x85)

# Misc unicode characters

# Many of the characters below and in da-dk-8miscChars.cti 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.

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

# For each accented letter, 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.

uppercase \x0100 5-17            Latin letter a with macron
lowercase \x0101 5-1             Latin letter a with macron
noback uppercase \x0102 5-17     Latin letter a with breve
noback lowercase \x0103 5-1      Latin letter a with breve
noback uppercase \x0104 5-17     Latin letter a with ogonek
noback lowercase \x0105 5-1      Latin letter a with ogonek
uppercase \x0106 5-147           Latin letter c with acute
lowercase \x0107 5-14            Latin letter c with acute
noback uppercase \x0108 5-147    Latin letter c with circumflex
noback lowercase \x0109 5-14     Latin letter c with circumflex
noback uppercase \x010a 5-147    Latin letter c with dot above
noback lowercase \x010b 5-14     Latin letter c with dot above
noback uppercase \x010c 5-147    Latin letter c with caron
noback lowercase \x010d 5-14     Latin letter c with caron
uppercase \x010e 5-1457          Latin letter d with caron
lowercase \x010f 5-145           Latin letter d with caron
noback uppercase \x0110 5-1457   Latin letter d with stroke
noback lowercase \x0111 5-145    Latin letter d with stroke
uppercase \x0112 5-157           Latin letter e with macron
lowercase \x0113 5-15            Latin letter e with macron
noback uppercase \x0114 5-157    Latin letter e with breve
noback lowercase \x0115 5-15     Latin letter e with breve
noback uppercase \x0116 5-157    Latin letter e with dot above
noback lowercase \x0117 5-15     Latin letter e with dot above
noback uppercase \x0118 5-157    Latin letter e with ogonek
noback lowercase \x0119 5-15     Latin letter e with ogonek
noback uppercase \x011a 5-157    Latin letter e with caron
noback lowercase \x011b 5-15     Latin letter e with caron
uppercase \x011c 5-12457         Latin letter g with circumflex
lowercase \x011d 5-1245          Latin letter g with circumflex
noback uppercase \x011e 5-12457  Latin letter g with breve
noback lowercase \x011f 5-1245   Latin letter g with breve
noback uppercase \x0120 5-12457  Latin letter g with dot above
noback lowercase \x0121 5-1245   Latin letter g with dot above
noback uppercase \x0122 5-12457  Latin letter g with cedilla
noback lowercase \x0123 5-1245   Latin letter g with cedilla
uppercase \x0124 5-1257          Latin letter h with circumflex
lowercase \x0125 5-125           Latin letter h with circumflex
noback uppercase \x0126 5-1257   Latin letter h with stroke
noback lowercase \x0127 5-125    Latin letter h with stroke
uppercase \x0128 5-247           Latin letter i with tilde
lowercase \x0129 5-24            Latin letter i with tilde
noback uppercase \x012a 5-247    Latin letter i with macron
noback lowercase \x012b 5-24     Latin letter i with macron
noback uppercase \x012c 5-247    Latin letter i with breve
noback lowercase \x012d 5-24     Latin letter i with breve
noback uppercase \x012e 5-247    Latin letter i with ogonek
noback lowercase \x012f 5-24     Latin letter i with ogonek
noback uppercase \x0130 5-247    Latin capital letter i with dot above
noback lowercase \x0131 5-24     Latin small dotless i
noback uppercase \x0132 247-245  Latin ligature ij
noback lowercase \x0133 24-245   Latin ligature ij
uppercase \x0134 5-2457          Latin letter j with circumflex
lowercase \x0135 5-245           Latin letter j with circumflex
uppercase \x0136 5-137           Latin letter k with cedilla
lowercase \x0137 5-13            Latin letter k with cedilla
lowercase \x0138 5-12345         Small latin letter kra (Greenlandic q)
uppercase \x0139 5-1237          Latin letter l with acute
lowercase \x013a 5-123           Latin letter l with acute
noback uppercase \x013b 5-1237   Latin letter l with cedilla
noback lowercase \x013c 5-123    Latin letter l with cedilla
noback uppercase \x013d 5-1237   Latin letter l with caron
noback lowercase \x013e 5-123    Latin letter l with caron
noback uppercase \x013f 5-1237   Latin letter l with middle dot
noback lowercase \x0140 5-123    Latin letter l with middle dot
noback uppercase \x0141 5-1237   Latin letter l with stroke
noback lowercase \x0142 5-123    Latin letter l with stroke
uppercase \x0143 5-13457         Latin letter n with acute
lowercase \x0144 5-1345          Latin letter n with acute
noback uppercase \x0145 5-13457  Latin letter n with cedilla
noback lowercase \x0146 5-1345   Latin letter n with cedilla
noback uppercase \x0147 5-13457  Latin letter n with caron
noback lowercase \x0148 5-1345   Latin letter n with caron
noback lowercase \x0149 4-1345   Latin small letter n preceeded by apostrophe
noback uppercase \x014a 5-13457  Latin letter eng
noback lowercase \x014b 5-1345   Latin letter eng
uppercase \x014c 5-1357          Latin letter o with macron
lowercase \x014d 5-135           Latin letter o with macron
noback uppercase \x014e 5-1357   Latin letter o with breve
noback lowercase \x014f 5-135    Latin letter o with breve
noback uppercase \x0150 5-1357   Latin letter o with double acute
noback lowercase \x0151 5-135    Latin letter o with double acute
uppercase \x0154 5-12357         Latin letter r with acute
lowercase \x0155 5-1235          Latin letter r with acute
noback uppercase \x0156 5-12357  Latin letter r with cedilla
noback lowercase \x0157 5-1235   Latin letter r with cedilla
noback uppercase \x0158 5-12357  Latin letter r with caron
noback lowercase \x0159 5-1235   Latin letter r with caron
noback uppercase \x015a 5-2347          Latin letter s with acute
noback lowercase \x015b 5-234           Latin letter s with acute
noback uppercase \x015c 5-2347   Latin letter s with circumflex
noback lowercase \x015d 5-234    Latin letter s with circumflex
noback uppercase \x015e 5-2347   Latin letter s with cedilla
noback lowercase \x015f 5-234    Latin letter s with cedilla
uppercase \x0160 5-2347 #Latin  capital Letter S with caron (0x8a/0x9a)
lowercase \x0161 5-234 #Latin  lowercase Letter S with caron (0x8a/0x9a)
uppercase \x0162 5-23457         Latin letter t with cedilla
lowercase \x0163 5-2345          Latin letter t with cedilla
noback uppercase \x0164 5-23457  Latin letter t with caron
noback lowercase \x0165 5-2345   Latin letter t with caron
noback uppercase \x0166 5-23457  Latin letter t with stroke
noback lowercase \x0167 5-2345   Latin letter t with stroke
uppercase \x0168 5-1367          Latin letter u with tilde
lowercase \x0169 5-136           Latin letter u with tilde
noback uppercase \x016a 5-1367   Latin letter u with macron
noback lowercase \x016b 5-136    Latin letter u with macron
noback uppercase \x016c 5-1367   Latin letter u with breve
noback lowercase \x016d 5-136    Latin letter u with breve
noback uppercase \x016e 5-1367   Latin letter u with ring above
noback lowercase \x016f 5-136    Latin letter u with ring above
noback uppercase \x0170 5-1367   Latin letter u with double acute
noback lowercase \x0171 5-136    Latin letter u with double acute
noback uppercase \x0172 5-1367   Latin letter u with ogonek
noback lowercase \x0173 5-136    Latin letter u with ogonek
uppercase \x0174 5-24567         Latin letter w with circumflex
lowercase \x0175 5-2456          Latin letter w with circumflex
uppercase \x0176 5-134567        Latin letter y with circumflex
lowercase \x0177 5-13456         Latin letter y with circumflex
uppercase \x0179 5-13567         Latin letter z with acute
lowercase \x017a 5-1356          Latin letter z with acute
noback uppercase \x017b 5-13567  Latin letter z with dot above
noback lowercase \x017c 5-1356   Latin letter z with dot above
noback lowercase \x017f 5-234    Latin small letter long s
 
# Punctuation and bullits

noback punctuation \x2010 36 # Hyphen
noback punctuation \x2011 36 # Non-breaking hyphen
noback punctuation \x2012 36 # Figure dash
sign \x2016 45-4568 # Double Vertical Line
sign \x2017 45-3678 # Double low line
noback punctuation \x201b 4 # Single High-Reversed-9 Quotation Mark
noback punctuation \x201f 2356 # Double High-Reversed-9 Quotation Mark
noback sign \x2023 37 #Triangular bullit
noback punctuation \x203c 235-235 # Double Exclamation Mark
noback punctuation \x203d 26-235 # Interrobang
noback sign \x2043 37 # Hyphen bullet (0x95)
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 37 # BLACK LEFTWARDS BULLET 
noback sign \x204d 37 # BLACK RIGHTWARDS BULLET 

# Arrows

sign \x2190 45-1256-246 Left arrow
sign \x2191 45-1256-346 Up arrow
sign \x2192 45-1256-135 Right arrow
sign \x2193 45-1256-146 Down arrow
sign \x2194 45-1256-2456-1235-135 Left-right arrow
sign \x2196 45-1256-156 Northwest arrow
sign \x2197 45-1256-234 Northeast arrow
sign \x2198 45-1256-126 Southeast arrow
sign \x2199 45-1256-345 Southwest arrow
sign \x21d4 45-1256-2456-2356-1235-135 Left-right double arrow

# Math signs (experimental)

math \x2200 45-1 # For all
math \x2208 45-15 # Element of
math \x2213 456-36 # Minus or plus
math \x221d 456-5-23568 # Proportional to
math \x2229 46-236 # Intersection
math \x222a 46-235 # Union
math \x2243 456-35 # approx. equal to
math \x2245 5-45-35 # approx. equal to
math \x2248 45-35 # approx. equal to
math \x224f 45-5-23568 # Diff between or approx. equal to
math \x2251 46-5-23568 # approx. equal to
math \x2260 5-23568-4-156 # Not equal to
math \x2261 456-123456 # Equivalent to
math \x2264 456-358 # Less than or equal to
math \x2265 456-267 # Greater than or equal to
math \x226a 46-358 # Much less than
math \x226b 46-267 # Much greater than
math \x22c5 5-256 # Multiplication dot

# Geometrical shapes

noback sign \x25e6 37 #White bullet

# Greek letters (with dots 458 as prefix)

uppercase \x0386 458-5-17    Greek letter alpha with tonos
uppercase \x0388 458-5-157   Greek letter epsilon with tonos
uppercase \x0389 458-5-1567  Greek letter eta with tonos
uppercase \x038A 458-5-247   Greek letter iota with sonos
uppercase \x038C 458-5-1357  Greek letter omicron with tonos
uppercase \x038E 458-5-1367  Greek letter upsilon with tonos
uppercase \x038F 458-5-24567 Greek letter omega with tonos
uppercase \x0391 458-17      Greek letter alpha
uppercase \x0392 458-127     Greek letter beta
uppercase \x0393 458-12457   Greek letter gamma
uppercase \x0394 458-1457    Greek letter delta
uppercase \x0395 458-157     Greek letter epsilon
uppercase \x0396 458-13567   Greek letter zeta
uppercase \x0397 458-1567    Greek letter eta
uppercase \x0398 458-14567   Greek letter theta
uppercase \x0399 458-247     Greek letter iota
uppercase \x039A 458-137     Greek letter kappa
uppercase \x039B 458-1237    Greek letter lamda
uppercase \x039C 458-1347    Greek letter mu
uppercase \x039D 458-13457   Greek letter nu
uppercase \x039E 458-13467   Greek letter xi
uppercase \x039F 458-1357    Greek letter omicron
uppercase \x03A0 458-12347   Greek letter pi
uppercase \x03A1 458-12357   Greek letter rho
uppercase \x03A3 458-2347    Greek letter sigma
uppercase \x03A4 458-23457   Greek letter tau
uppercase \x03A5 458-1367    Greek letter upsilon
uppercase \x03A6 458-1247    Greek letter phi
uppercase \x03A7 458-123467  Greek letter chi
uppercase \x03A8 458-134567  Greek letter psi
uppercase \x03A9 458-24567   Greek letter omega
lowercase \x03AC 458-5-1     Greek letter alpha with tonos
lowercase \x03AD 458-5-15    Greek letter epsilon with tonos
lowercase \x03AE 458-5-156   Greek letter eta with tonos
lowercase \x03AF 458-5-24    Greek letter iota with sonos
lowercase \x03B1 458-1       Greek letter alpha
lowercase \x03B2 458-12      Greek letter beta
lowercase \x03B3 458-1245    Greek letter gamma
lowercase \x03B4 458-145     Greek letter delta
lowercase \x03B5 458-15      Greek letter epsilon
lowercase \x03B6 458-1356    Greek letter zeta
lowercase \x03B7 458-156     Greek letter eta
lowercase \x03B8 458-1456    Greek letter theta
lowercase \x03B9 458-24      Greek letter iota
lowercase \x03BA 458-13      Greek letter kappa
lowercase \x03BB 458-123     Greek letter lamda
lowercase \x03BC 458-134     Greek letter mu
lowercase \x03BD 458-1345    Greek letter nu
lowercase \x03BE 458-1346    Greek letter xi
lowercase \x03BF 458-135     Greek letter omicron
lowercase \x03C0 458-1234    Greek letter pi
lowercase \x03C1 458-1235    Greek letter rho
lowercase \x03C3 458-234     Greek letter sigma
lowercase \x03C4 458-2345    Greek letter tau
lowercase \x03C5 458-136     Greek letter upsilon
lowercase \x03C6 458-124     Greek letter phi
lowercase \x03C7 458-12346   Greek letter chi
lowercase \x03C8 458-13456   Greek letter psi
lowercase \x03C9 458-2456    Greek letter omega
lowercase \x03CC 458-5-135   Greek letter omicron with tonos
lowercase \x03CD 458-5-136   Greek letter upsilon with tonos
lowercase \x03CE 458-5-2456  Greek letter omega with tonos

# Rules for grade 1 and grade 2

# Emphasis opcodes
emphclass italic
emphclass underline
emphclass bold

begemphphrase italic 46
endemphphrase italic after 46

begemphphrase bold 46
endemphphrase bold after 46

begemphphrase underline 46
endemphphrase underline after 46

# Remove space between   and numbers.
noback begnum § 578
begnum §\s 578
begnum §§\s 578-578
always §§ 578-578


# Ensure there is only one emphasis sign
noback pass2 @46-46 @46
noback pass2 @46-46-46 @46