| 1 |
# liblouis: Estonian 6-dot braille based on the official specification document |
| 2 |
# |
| 3 |
# Copyright (C) 2025 Artur Räpp <[email protected]> |
| 4 |
# Copyright (C) 2025 Taniel Kirikal <[email protected]> |
| 5 |
# |
| 6 |
# This file is part of liblouis. |
| 7 |
# |
| 8 |
# liblouis is free software: you can redistribute it and/or modify it |
| 9 |
# under the terms of the GNU Lesser General Public License as |
| 10 |
# published by the Free Software Foundation, either version 2.1 of the |
| 11 |
# License, or (at your option) any later version. |
| 12 |
# |
| 13 |
# liblouis is distributed in the hope that it will be useful, but |
| 14 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 |
# Lesser General Public License for more details. |
| 17 |
# |
| 18 |
# You should have received a copy of the GNU Lesser General Public |
| 19 |
# License along with liblouis. If not, see |
| 20 |
# <http://www.gnu.org/licenses/>. |
| 21 |
# |
| 22 |
# |
| 23 |
#-index-name: Estonian |
| 24 |
#-display-name: Estonian braille |
| 25 |
#-name: Eesti punktkirjatabel (6-punktine) |
| 26 |
# |
| 27 |
#+language:et |
| 28 |
#+type:literary |
| 29 |
#+contraction:no |
| 30 |
#+dots:6 |
| 31 |
#+direction:forward |
| 32 |
# |
| 33 |
# |
| 34 |
#-author: Artur Räpp <[email protected]> |
| 35 |
#-author: Taniel Kirikal <[email protected]> |
| 36 |
#-copyright: 2008-2026 |
| 37 |
#-updated: 2026-02-15 |
| 38 |
# |
| 39 |
# Based on the official documentation "Punktkiri" on the website (in Estonian) https://tek.tartu.ee/punktkiri. |
| 40 |
|
| 41 |
|
| 42 |
# Includes |
| 43 |
include spaces.uti |
| 44 |
include latinLetterDef6Dots.uti |
| 45 |
include digits6Dots.uti |
| 46 |
include litdigits6Dots.uti |
| 47 |
include braille-patterns.cti |
| 48 |
|
| 49 |
noback correct "\x00ad" "" # ignore invisible "soft hyphen" |
| 50 |
|
| 51 |
lowercase \x00e4 345 LATIN LETTER A WITH DIAERESIS |
| 52 |
base uppercase \x00c4 \x00e4 |
| 53 |
lowercase \x00f5 126 LATIN LETTER O WITH TILDE |
| 54 |
base uppercase \x00d5 \x00f5 |
| 55 |
lowercase \x00f6 246 LATIN LETTER O WITH DIAERESIS |
| 56 |
base uppercase \x00d6 \x00f6 |
| 57 |
lowercase \x00fc 1256 LATIN LETTER U WITH DIAERESIS |
| 58 |
base uppercase \x00dc \x00fc |
| 59 |
lowercase \x0161 156 LATIN LETTER S WITH CARON |
| 60 |
base uppercase \x0160 \x0161 |
| 61 |
lowercase \x017e 2346 LATIN LETTER Z WITH CARON |
| 62 |
base uppercase \x017d \x017e |
| 63 |
lowercase \x00e7 4-14 LATIN LETTER C WITH CEDILLA |
| 64 |
base uppercase \x00c7 \x00e7 |
| 65 |
|
| 66 |
|
| 67 |
punctuation ! 235 EXCLAMATION MARK |
| 68 |
punctuation ' 5 # apostrophe, single quote |
| 69 |
punctuation ` 5 # apostrophe, single quote |
| 70 |
noback punctuation ´ 4 # foreign letter/diacritic sign (avoid ambiguity with @) |
| 71 |
punctuation \x2019 5 # right single quotation mark |
| 72 |
punctuation " 56 QUOTATION MARK |
| 73 |
noback punctuation \x201c 56 # left double quotation mark |
| 74 |
noback punctuation \x201d 56 # right double quotation mark |
| 75 |
noback punctuation \x201e 56 # low double quotation mark |
| 76 |
punctuation - 36 HYPHEN-MINUS |
| 77 |
punctuation \x2013 36 # en dash |
| 78 |
punctuation \x2014 36 # em dash |
| 79 |
punctuation _ 36 # underscore |
| 80 |
punctuation ( 236 LEFT PARENTHESIS |
| 81 |
punctuation ) 356 RIGHT PARENTHESIS |
| 82 |
punctuation , 2 COMMA |
| 83 |
punctuation . 3 FULL STOP |
| 84 |
punctuation § 346 paragraph sign |
| 85 |
punctuation : 25 COLON |
| 86 |
punctuation ; 23 SEMICOLON |
| 87 |
punctuation ? 26 QUESTION MARK |
| 88 |
punctuation [ 12356 left bracket |
| 89 |
punctuation ] 23456 right bracket |
| 90 |
|
| 91 |
# replacing horizontal ellipsis with three dots |
| 92 |
replace \x2026 ... # explicit three braille points |
| 93 |
repeated ggg 2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356-2356 |
| 94 |
repeated ccc 25-25-25-25-25-25-25-25-25-25-25-25-25-25-25-25-25-25-25-25 |
| 95 |
|
| 96 |
sign # 3456 number sign, pound sign (weight) |
| 97 |
sign % 1456 percent sign |
| 98 |
sign & 12346 ampersand |
| 99 |
sign * 35 asterisk, multiplication sign |
| 100 |
sign @ 4 at |
| 101 |
sign \x20ac 4-15 € Euro sign |
| 102 |
sign \x2032 46 ′ Prime sign (minute) |
| 103 |
sign \x2033 456 ″ Double prime sign (second) |
| 104 |
sign \\ 16 backslash |
| 105 |
sign \x2022 256 • Bold bullet sign |
| 106 |
sign \x00b7 3 · Interpunct |
| 107 |
sign ~ 45 |
| 108 |
|
| 109 |
math \x22c5 3 dot operator or multiplication sign |
| 110 |
math \x2219 3 ∙ Bullet operator |
| 111 |
math \x00d7 3 × Multiplication sign |
| 112 |
math \x2236 25 division sign |
| 113 |
math \x00f7 25 ÷ Division sign; Obelus |
| 114 |
math + 235 plus sign |
| 115 |
math \x2212 36 − Minus sign, not a hyphen |
| 116 |
math / 34 slash, division sign |
| 117 |
math < 246 less than |
| 118 |
math > 135 greater than |
| 119 |
math { 246 |
| 120 |
math } 135 |
| 121 |
math = 2356 equals |
| 122 |
math \x2260 5-2356 not equal to |
| 123 |
math \x2248 456-2356 almost equal to |
| 124 |
math \x2264 246-2356 LESS-THAN OR EQUAL TO |
| 125 |
math \x2265 135-2356 GREATER-THAN OR EQUAL TO |
| 126 |
math \x2030 25-1456 ‰ Per mille sign |
| 127 |
math \x00b0 356 ° Degree symbol |
| 128 |
math \x221e 123456 ∞ Infinity sign |
| 129 |
math \x221a 146 √ Root sign |
| 130 |
|
| 131 |
decpoint , 2 |
| 132 |
numsign 3456 |
| 133 |
|
| 134 |
# Longer number expressions |
| 135 |
midnum . 3 |
| 136 |
midnum : 25 # Common time notation 15:30 (non-standard convenience) |
| 137 |
swapcd dropped 0123456789 356,2,23,25,256,26,235,2356,236,35 |
| 138 |
|
| 139 |
# Number-text transitions: separate trailing text from numbers with space. |
| 140 |
noback context $d[]$l @0 |
| 141 |
# Mixed numbers: omit print space between whole number and the fraction. |
| 142 |
noback context $d["\s"]$d."/"$d. ? |
| 143 |
|
| 144 |
# Second power |
| 145 |
# Powers are generally marked using power sign. However, if the power is two, the number is omitted. |
| 146 |
noback context ["^2\s"] @346-0 |
| 147 |
noback context ["^2"]$p @346 |
| 148 |
|
| 149 |
# Squared uses just the power sign (dots 3-4-6) |
| 150 |
sign \x00b2 346 |
| 151 |
# Cubed uses power sign + dropped 3 (dots 3-4-6 then 2-5) |
| 152 |
sign \x00b3 346-25 |
| 153 |
|
| 154 |
# Dashes, not a hyphen. Dashes always have spaces around them. |
| 155 |
noback context !$s["\x2013"]!$s @0-36-0 |
| 156 |
noback context !$s["\x2014"]!$s @0-36-0 |
| 157 |
# Degree/prime signs are always preceded by a space in numeric notation. |
| 158 |
noback context $d[]"\x00b0" @0 Degree sign |
| 159 |
noback context $d[]"\x2032" @0 Prime sign (minute) |
| 160 |
noback context $d[]"\x2033" @0 Double prime sign (second) |
| 161 |
# Percent and per mille signs are preceded by space. |
| 162 |
noback context $d[]"\x2030" @0 Per mille sign |
| 163 |
noback context $d[]"%" @0 Percent sign |
| 164 |
# Fractions/division with solidus: omit slash and lower denominator digits. |
| 165 |
# Keep this before the generic math-spacing rule so n/m patterns are handled first. |
| 166 |
noback context $d["/"$d.] %dropped |
| 167 |
# Parentheses in math context use dedicated bracket cells. |
| 168 |
noback context ["("]$d @126 |
| 169 |
noback context ["("]$s.$d @126 |
| 170 |
noback context $d[")"] @345 |
| 171 |
noback context $d$s.[")"] @345 |
| 172 |
# Mathematical symbols and operators are always preceded by space. |
| 173 |
noback context $d[]$m @0 |
| 174 |
# Hyphen-minus used as subtraction is also preceded by space. |
| 175 |
noback context $d[]"-" @0 |
| 176 |
# Slash as an operator is preceded by space within number expressions. |
| 177 |
noback context $d[]"/" @0 |
| 178 |
|
| 179 |
# Braille Indicators: |
| 180 |
capsletter 6 shift indicator |
| 181 |
begcapsword 69-6 caps lock indicator |
| 182 |
endcapsword 569 caps release indicator |
| 183 |
# capsmodechars 0123456789!"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ # if letters are separated by numbers, punctuation, etc. |
| 184 |
|
| 185 |
# Use virtual capsword markers in forward translation and map them back to |
| 186 |
# standard dots (6-6 / 56) so backward translation can disambiguate quotes. |
| 187 |
swapdd cleanvirtual 69,569 6,56 |
| 188 |
noback pass4 %cleanvirtual %cleanvirtual |
| 189 |
# When a capsword starts in braille, only treat dot-56 as endcapsword if a |
| 190 |
# letter follows; otherwise keep it as a quotation mark. |
| 191 |
nofor pass4 _!$sp[@6@6] @69-6#1=1 |
| 192 |
nofor pass4 #1=1[@56]$l @569#1=0 |
| 193 |
nofor pass4 #1=1!$l *#1=0 |
| 194 |
|
| 195 |
# Emphasis |
| 196 |
emphclass italic |
| 197 |
emphclass underline |
| 198 |
emphclass bold |
| 199 |
|
| 200 |
# Define phrase length threshold for each class (standard: >3 words) |
| 201 |
lenemphphrase italic 3 |
| 202 |
lenemphphrase bold 3 |
| 203 |
lenemphphrase underline 3 |
| 204 |
|
| 205 |
begemphphrase underline 346-346 |
| 206 |
endemphphrase underline before 346 |
| 207 |
begemphword underline 346 |
| 208 |
|
| 209 |
|
| 210 |
begemphphrase bold 456-456 |
| 211 |
endemphphrase bold before 456 |
| 212 |
begemphword bold 456 |
| 213 |
|
| 214 |
begemphphrase italic 46-46 |
| 215 |
endemphphrase italic before 46 |
| 216 |
begemphword italic 46 |
| 217 |
|
| 218 |
|
| 219 |
# Lowercase Greek alphabet |
| 220 |
lowercase α 46-1 # alpha |
| 221 |
lowercase β 46-12 # beta |
| 222 |
lowercase γ 46-1245 # gamma |
| 223 |
lowercase δ 46-145 # delta |
| 224 |
lowercase ε 46-15 # epsilon |
| 225 |
lowercase ζ 46-1356 # zeta |
| 226 |
lowercase η 46-345 # eta |
| 227 |
lowercase θ 46-1456 # theta |
| 228 |
lowercase ι 46-24 # iota |
| 229 |
lowercase κ 46-13 # kappa |
| 230 |
lowercase λ 46-123 # lambda |
| 231 |
lowercase μ 46-134 # mu |
| 232 |
lowercase ν 46-1345 # nu |
| 233 |
lowercase ξ 46-1346 # xi |
| 234 |
lowercase ο 46-135 # omicron |
| 235 |
lowercase π 46-1234 # pi |
| 236 |
lowercase ρ 46-1235 # rho |
| 237 |
lowercase ς 46-234 # sigma |
| 238 |
lowercase τ 46-2345 # tau |
| 239 |
lowercase υ 46-13456 # upsilon |
| 240 |
lowercase φ 46-124 # fii |
| 241 |
lowercase χ 46-125 # chi |
| 242 |
lowercase ψ 46-12346 # psi |
| 243 |
lowercase ω 46-245 # omega |
| 244 |
|
| 245 |
# Uppercase Greek letter alphabet |
| 246 |
letter \x0391 456-1 # Α Capital Alpha |
| 247 |
letter \x0392 456-12 # Β Capital Beta |
| 248 |
letter \x0393 456-1245 # Γ Capital Gamma |
| 249 |
letter \x0394 456-145 # Δ Capital Delta |
| 250 |
letter \x0395 456-15 # Ε Capital Epsilon |
| 251 |
letter \x0396 456-1356 # Ζ Capital Zeta |
| 252 |
letter \x0397 456-345 # Η Capital Eta |
| 253 |
letter \x0398 456-1456 # Θ Capital Theta |
| 254 |
letter \x0399 456-24 # Ι Capital Iota |
| 255 |
letter \x039a 456-13 # Κ Capital Kappa |
| 256 |
letter \x039b 456-123 # Λ Capital Lambda |
| 257 |
letter \x039c 456-134 # Μ Capital Mu |
| 258 |
letter \x039d 456-1345 # Ν Capital Nu |
| 259 |
letter \x039e 456-1346 # Ξ Capital Xi |
| 260 |
letter \x039f 456-135 # Ο Capital Omicron |
| 261 |
letter \x03a0 456-1234 # Π Capital Pi |
| 262 |
letter \x03a1 456-1235 # Ρ Capital Rho |
| 263 |
letter \x03a3 456-234 # Σ Capital Sigma |
| 264 |
letter \x03a4 456-2345 # Τ Capital Tau |
| 265 |
letter \x03a5 456-13456 # Υ Capital Upsilon |
| 266 |
letter \x03a6 456-124 # Φ Capital Phi |
| 267 |
letter \x03a7 456-125 # Χ Capital Chi |
| 268 |
letter \x03a8 456-13456 # Ψ Capital Psi |
| 269 |
letter \x03a9 456-245 # Ω Capital Omega |