Debian Codegraph @

tables/lt-6dot.utb

raw
1 # liblouis: Lithuanian 6-dot Braille table
2 #
3 # Copyright (C) 2017, 2025 Rimas Kudelis <[email protected]>
4 # Copyright (C) 2017, 2025 Tadas Matusevičius <[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 # Current Lithuanian braille alphabet was officially standardized
23 # in 2000.
24 #
25 # Much more complete Lithuanian 6-dot braille was standardized as a
26 # National Annex to ISO 17049 in 2019, officially designated as
27 # LST ISO 17049:2017/NA:2019. This document is referred to as
28 # "the Standard" below. The Standard is available for purchase from
29 # the Lithuanian standards body (lsd.lt).
30 #
31 # The relevant ISO standard is called "Accessible design ‐ Application
32 # of braille on signage, equipment and appliances", so the Standard
33 # focuses on printed or otherwise preproduced Braille, so, as is often
34 # the case, it's very context dependent and has several clashing dot
35 # mappings even if you consider literary braille (section NA.1) only.
36 #
37 # The authors of the Standard were aware of our prior work on this
38 # table, but they chose to ignore us, this table, and its existing
39 # users entirely, and standardized even the literary Braille differently
40 # than we had it already implemented without so much as a discussion
41 # with us. Also, the Standard makes no references to Unicode.
42 # As a result, this table had to be revamped to become closer to the
43 # Standard. It does not match the Standard completely though.
44 #
45 # Some definitions in this table are marked as noback. Typically they
46 # are not defined in the Standard and act as convenience aliases.
47 # They are okay to skip if implementing them is not possible.
48
49
50 ###
51 ### TABLE METADATA
52 ###
53
54 #-index-name: Lithuanian, 6-dot
55 #-display-name: Lithuanian 6-dot braille
56
57 #+language: lt
58 #+type: literary
59 #+contraction: no
60 #+dots: 6
61 #+direction: both
62 #+version: 2019
63
64 #-updated: 2025
65
66 ###
67 ### WHITESPACE
68 ###
69
70 include spaces.uti
71
72
73 ###
74 ### LETTERS
75 ###
76
77 # Base Latin letters.
78 include latinLetterDef6Dots.uti
79
80 # Letters with diacritics which are part of the Lithuanian alphabet.
81 lowercase \x0105 16 ą LATIN SMALL LETTER A WITH OGONEK
82 lowercase \x010d 146 č LATIN SMALL LETTER C WITH CARON
83 lowercase \x0119 156 ę LATIN SMALL LETTER E WITH OGONEK
84 lowercase \x0117 345 ė LATIN SMALL LETTER E WITH DOT ABOVE
85 lowercase \x012f 246 į LATIN SMALL LETTER I WITH OGONEK
86 lowercase \x0161 2346 š LATIN SMALL LETTER S WITH CARON
87 lowercase \x0173 346 ų LATIN SMALL LETTER U WITH OGONEK
88 lowercase \x016b 1256 ū LATIN SMALL LETTER U WITH MACRON
89 lowercase \x017e 126 ž LATIN SMALL LETTER Z WITH CARON
90
91 base uppercase \x0104 \x0105 Ąą LATIN CAPITAL LETTER A WITH OGONEK,LATIN SMALL LETTER A WITH OGONEK
92 base uppercase \x010c \x010d Čč LATIN CAPITAL LETTER C WITH CARON,LATIN SMALL LETTER C WITH CARON
93 base uppercase \x0118 \x0119 Ęę LATIN CAPITAL LETTER E WITH OGONEK,LATIN SMALL LETTER E WITH OGONEK
94 base uppercase \x0116 \x0117 Ėė LATIN CAPITAL LETTER E WITH DOT ABOVE,LATIN SMALL LETTER E WITH DOT ABOVE
95 base uppercase \x012e \x012f Įį LATIN CAPITAL LETTER I WITH OGONEK,LATIN SMALL LETTER I WITH OGONEK
96 base uppercase \x0160 \x0161 Šš LATIN CAPITAL LETTER S WITH CARON,LATIN SMALL LETTER S WITH CARON
97 base uppercase \x0172 \x0173 Ųų LATIN CAPITAL LETTER U WITH OGONEK,LATIN SMALL LETTER U WITH OGONEK
98 base uppercase \x016a \x016b Ūū LATIN CAPITAL LETTER U WITH MACRON,LATIN SMALL LETTER U WITH MACRON
99 base uppercase \x017d \x017e Žž LATIN CAPITAL LETTER Z WITH CARON,LATIN SMALL LETTER Z WITH CARON
100
101
102 ###
103 ### DIGITS
104 ###
105
106 include digits6Dots.uti
107 include litdigits6Dots.uti
108
109
110 ###
111 ### PUNCTUATION
112 ###
113
114 punctuation \x002c 2 , COMMA
115 punctuation \x002e 256 . FULL STOP
116 punctuation \x003f 26 ? QUESTION MARK
117 punctuation \x0021 235 ! EXCLAMATION MARK
118 punctuation \x003a 25 : COLON
119 punctuation \x003b 23 ; SEMICOLON
120 # Both parentheses are mapped to dots-2356 in section NA.1.2 of
121 # the Standard. We map the right one differently to avoid ambiguity.
122 punctuation \x0028 2356 ( LEFT PARENTHESIS
123 punctuation \x0029 5-2356 ) RIGHT PARENTHESIS
124 punctuation \x005b 12356 [ LEFT SQUARE BRACKET
125 punctuation \x005d 23456 ] RIGHT SQUARE BRACKET
126 punctuation \x007b 5-12356 { LEFT CURLY BRACKET
127 punctuation \x007d 5-23456 } RIGHT CURLY BRACKET
128 # These are the typographically correct quotes in Lithuania.
129 punctuation \x201e 236 „ DOUBLE LOW-9 QUOTATION MARK
130 punctuation \x201c 356 “ LEFT DOUBLE QUOTATION MARK
131
132 # Other Quotation marks. None of these are mapped in the Standard.
133 punctuation \x0022 56 " QUOTATION MARK
134 noback punctuation \x201d 56 ” RIGHT DOUBLE QUOTATION MARK
135 noback punctuation \x201f 56 ‟ DOUBLE HIGH-REVERSED-9 QUOTATION MARK
136 noback punctuation \x00ab 56 « LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
137 noback punctuation \x00bb 56 » RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
138
139 # The Standard maps apostrophe to dot-3 in section NA.1.5, without
140 # mentioning any specific Unicode codepoint. We're mapping dots-3 to
141 # ASCII apostrophe, and aliasing all single quote characters to it.
142 punctuation \x0027 3 ' APOSTROPHE
143 noback punctuation \x2019 3 ’ RIGHT SINGLE QUOTATION MARK
144 noback punctuation \x2018 3 ‘ LEFT SINGLE QUOTATION MARK
145 noback punctuation \x201a 3 ‚ SINGLE LOW-9 QUOTATION MARK
146 noback punctuation \x201b 3 ‛ SINGLE HIGH-REVERSED-9 QUOTATION MARK
147 noback punctuation \x2039 3 ‹ SINGLE LEFT-POINTING ANGLE QUOTATION MARK
148 noback punctuation \x203a 3 › SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
149
150 # The Standard maps both a dash and a hyphen to 36 in section NA.1.2,
151 # without mentioning any specific Unicode codepoints. We map EN DASH
152 # to dots-6-36 to make it possible to input it.
153 punctuation \x2013 6-36 – EN DASH
154 punctuation \x002d 36 - HYPHEN-MINUS
155 noback punctuation \x00ad 36 [SOFT HYPHEN]
156 noback punctuation \x2010 36 ‐ HYPHEN
157 noback punctuation \x2011 36 ‑ NON-BREAKING HYPHEN
158 noback punctuation \x2012 36 ‒ FIGURE DASH
159 noback punctuation \x2014 36 — EM DASH
160 noback punctuation \x2015 36 ― HORIZONTAL BAR
161
162 # Two versions of horizontal ellipsis.
163 # Making them consume any further repetitions of the same character.
164 noback punctuation \x2026 256-256-256 … HORIZONTAL ELLIPSIS
165 noback repeated \x2026 256-256-256 … HORIZONTAL ELLIPSIS
166 noback repeated \x002e\x002e\x002e 256-256-256 ... Three times FULL STOP
167
168
169 ###
170 ### MATHEMATICAL SYMBOLS
171 ###
172
173 # LESS-THAN SIGN and GREATER-THAN SIGN are also mapped in the Literary
174 # Braille section of the Standard (NA.1.2) as angle brackets to the
175 # dot patterns we used here. Marking them as sign
176 sign \x003c 5-246 < LESS-THAN SIGN
177 sign \x003e 5-135 > GREATER-THAN SIGN
178
179 # Most of the operators below are only mapped in section NA2.5.2
180 # of the Standard, which talks about Math specifically.
181 # They would not have the 4- prefix in the Math context.
182 math \x002b 4-235 + PLUS SIGN
183 math \x2212 4-36 − MINUS SIGN
184 math \x003d 4-2356 = EQUALS SIGN
185 noback math \x00b1 4-235-4-36 ± PLUS-MINUS SIGN
186 math \x22C5 4-35 ⋅ DOT OPERATOR
187 math \x2236 4-25 ∶ RATIO
188 noback math \x00d7 4-35 × MULTIPLICATION SIGN
189 noback math \x00b7 4-35 · MIDDLE DOT
190 noback math \x00f7 4-25 ÷ DIVISION SIGN
191 noback math \x2044 34 ⁄ FRACTION SLASH
192 noback math \x2215 34 ∕ DIVISION SLASH
193 math \x221E 3456-123456 ∞ INFINITY
194 # PERCENT SIGN is mapped as dots-245-356 in section NA.1.5 of
195 # the Standard, but this doesn't seem to work for input with liblouis,
196 # since both of these dot combinations are used for other characters
197 # already. We're reusing the definition from the 8-dot standard.
198 math \x0025 123456 % PERCENT SIGN
199 # The Standard maps DEGREE SIGN without a prefix, but we need the prefix
200 # to prevent ambiguity.
201 math \x00b0 4-356 ° DEGREE SIGN
202 noback math \x2103 4-356-46-14 ℃ DEGREE CELSIUS
203 noback math \x2109 4-356-46-124 ℉ DEGREE FAHRENHEIT
204 # Vulgar fractions. This is not the mathematically correct notation
205 # for fractions; rather, they are decomposed into number-slash-number
206 # notation to ease reading of literary texts, cookbooks et cetera.
207 noback math \x00BC 3456-1-34-3456-145 ¼ VULGAR FRACTION ONE QUARTER
208 noback math \x00BD 3456-1-34-3456-12 ½ VULGAR FRACTION ONE HALF
209 noback math \x00BE 3456-14-34-3456-145 ¾ VULGAR FRACTION THREE QUARTERS
210 noback math \x2150 3456-1-34-3456-1245 ⅐ VULGAR FRACTION ONE SEVENTH
211 noback math \x2151 3456-1-34-3456-24 ⅑ VULGAR FRACTION ONE NINTH
212 noback math \x2152 3456-1-34-3456-1-245 ⅒ VULGAR FRACTION ONE TENTH
213 noback math \x2153 3456-1-34-3456-14 ⅓ VULGAR FRACTION ONE THIRD
214 noback math \x2154 3456-12-34-3456-14 ⅔ VULGAR FRACTION TWO THIRDS
215 noback math \x2155 3456-1-34-3456-15 ⅕ VULGAR FRACTION ONE FIFTH
216 noback math \x2156 3456-12-34-3456-15 ⅖ VULGAR FRACTION TWO FIFTHS
217 noback math \x2157 3456-14-34-3456-15 ⅗ VULGAR FRACTION THREE FIFTHS
218 noback math \x2158 3456-145-34-3456-15 ⅘ VULGAR FRACTION FOUR FIFTHS
219 noback math \x2159 3456-1-34-3456-124 ⅙ VULGAR FRACTION ONE SIXTH
220 noback math \x215A 3456-15-34-3456-124 ⅚ VULGAR FRACTION FIVE SIXTHS
221 noback math \x215B 3456-1-34-3456-125 ⅛ VULGAR FRACTION ONE EIGHTH
222 noback math \x215C 3456-14-34-3456-125 ⅜ VULGAR FRACTION THREE EIGHTHS
223 noback math \x215D 3456-15-34-3456-125 ⅝ VULGAR FRACTION FIVE EIGHTHS
224 noback math \x215E 3456-1245-34-3456-125 ⅞ VULGAR FRACTION SEVEN EIGHTHS
225 noback math \x215F 3456-1-34 ⅟ FRACTION NUMERATOR ONE
226 noback math \x2189 3456-245-34-3456-14 ↉ VULGAR FRACTION ZERO THIRDS
227
228
229 ###
230 ### CURRENCY SIGNS
231 ###
232
233 # Currency signs are mapped in section NA.1.7 of the Standard.
234 # Dollar sign is mapped to dots-46 without prefix, but that
235 # conflicts with the capital letter indicator, so we're re-adding
236 # the common prefix.
237 sign \x0024 4-46 $ DOLLAR SIGN
238 sign \x00a2 4-14 ¢ CENT SIGN
239 sign \x00a3 4-123 £ POUND SIGN
240 sign \x20ac 4-15 € EURO SIGN
241
242
243 ###
244 ### OTHER CHARACTERS
245 ###
246
247 # Some of these characters have different mappings in the Standard,
248 # but these often clash with other definitions. In such cases, our
249 # definitions differ.
250 sign \x0023 5-3456 # NUMBER SIGN
251 sign \x0026 12346 & AMPERSAND
252 sign \x002a 35 * ASTERISK
253 sign \x002f 34 / SOLIDUS
254 sign \x0040 5-345 @ COMMERCIAL AT
255 sign \x007c 5-456 | VERTICAL LINE
256 sign \x00a7 5-346 § SECTION SIGN
257 sign \x007e 12456 ~ TILDE
258 sign \x0060 5-4 ` GRAVE ACCENT
259 # The following five characters are not mapped in the Standard.
260 sign \x005c 5-34 \ REVERSE SOLIDUS
261 sign \x005e 5-256 ^ CIRCUMFLEX ACCENT
262 sign \x005f 1456 _ LOW LINE
263 sign \x00b5 5-134 µ MICRO SIGN
264 sign \x2022 5-35 • BULLET
265 # The following four characters are mapped differently in the Standard.
266 sign \x00a9 5-14 © COPYRIGHT SIGN
267 sign \x00ae 5-1235 ® REGISTERED SIGN
268 sign \x2117 5-1234 ℗ SOUND RECORDING COPYRIGHT
269 sign \x2122 5-2345 ™ TRADE MARK SIGN
270 noback sign \x2190 5-246-25 ← LEFTWARDS ARROW
271 noback sign \x2192 25-5-135 → RIGHTWARDS ARROW
272
273 # Braille patterns.
274 include braille-patterns.cti
275
276
277 ###
278 ### INDICATOR AND SPECIAL SYMBOL OPCODES
279 ###
280
281 # Emphasis classes.
282 emphclass italic
283 emphclass underline
284 emphclass bold
285
286 begemph italic 456
287 endemph italic 456
288
289 begemph bold 456
290 endemph bold 456
291
292 begemph underline 456
293 endemph underline 456
294
295 decpoint \x002c 2 , COMMA
296
297 # Use lowered question mark as replacement dots.
298 noback sign \xfffd 38 � REPLACEMENT CHARACTER
299 undefined 38 Replacement dots for characters not defined in this table
300
301 capsletter 46 Single capital letter indicator
302 begcapsword 45 Capital letter word/block start indicator
303 endcapsword 6 Capital letter block end indicator
304 numsign 3456 Number start indicator in text
305 nonumsign 6 Number block end indicator
306
307 numericnocontchars abcdefghij
308 midendnumericmodechars .,: