Debian Codegraph @

tables/no-no-g0.utb

raw
1 # liblouis: Norwegian literary braille, 6-dot, uncontracted
2 #
3 #-name: Norsk litterær punktskrift, 6-punkt, fullskrift
4 #-index-name: Norwegian, uncontracted, 6-dot
5 #-display-name: Norwegian 6-dot uncontracted braille
6 #
7 #+language:no
8 #+language:nb
9 #+language:nn
10 #+type:literary
11 #+direction:both
12 #+contraction:no
13 #+dots:6
14 #+grade:0
15 #
16 # Copyright (C) 2005 ViewPlus Technologies, Inc. www.viewplus.com
17 # Copyright (C) 2009-2010, 2012-2013, 2017, 2019, 2021-2022, 2025 Lars Bjørndal <[email protected]>
18 # Copyright (C) 2015-2018 NLB Norwegian library of talking books and braille, http://www.nlb.no/
19 # Copyright (C) 2025 Bert Frees
20 #
21 #-copyright: 2005, ViewPlus Technologies, Inc. www.viewplus.com
22 #-copyright: 2009-2025, Lars Bjørndal
23 #-copyright: 2015-2018, Norwegian library of talking books and braille (NLB), http://www.nlb.no/
24 #-copyright: 2025, Bert Frees
25 #-license: LGPLv2.1
26 #
27 # Created June 9, 2005 by Leon Ungier <[email protected]> with
28 # help and guidance from Lars Bjørndal <[email protected]>
29 # Updated June 2009 by Lars Bjørndal <[email protected]>
30 # Updated April 2015 by Jostein Austvik Jacobsen <[email protected]> and Ammar Usama <[email protected]>
31 # Updated February 2025 by Lars Bjørndal <[email protected]>
32 #
33 #-author: Leon Ungier <[email protected]>
34 #-author: Lars Bjørndal <[email protected]>
35 #-author: Jostein Austvik Jacobsen <[email protected]>
36 #-author: Ammar Usama <[email protected]>
37 #
38 # Official norwegian braille specifications are collected here:
39 # http://liblouis.io/braille-specs/norwegian
40 # This specific table is based on the document "Håndbok i litterær punktskrift".
41 #
42 # Input is expected to be normalized to NFC (fully composed)
43 #-unicode-form:nfc
44 #
45 # This file is part of liblouis.
46 #
47 # liblouis is free software: you can redistribute it and/or modify it
48 # under the terms of the GNU Lesser General Public License as
49 # published by the Free Software Foundation, either version 2.1 of the
50 # License, or (at your option) any later version.
51 #
52 # liblouis is distributed in the hope that it will be useful, but
53 # WITHOUT ANY WARRANTY; without even the implied warranty of
54 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
55 # Lesser General Public License for more details.
56 #
57 # You should have received a copy of the GNU Lesser General Public
58 # License along with liblouis. If not, see
59 # <http://www.gnu.org/licenses/>.
60 #
61
62 include no-no.dis
63 include no-no-chardefs6.uti
64 include litdigits6Dots.uti
65 include braille-patterns.cti # unicode braille
66 include no-no-cyrillic6dot.uti
67
68 # comp6 definitions
69 comp6 A 6-1
70 comp6 B 6-12
71 comp6 C 6-14
72 comp6 D 6-145
73 comp6 E 6-15
74 comp6 F 6-124
75 comp6 G 6-1245
76 comp6 H 6-125
77 comp6 I 6-24
78 comp6 J 6-245
79 comp6 K 6-13
80 comp6 L 6-123
81 comp6 M 6-134
82 comp6 N 6-1345
83 comp6 O 6-135
84 comp6 P 6-1234
85 comp6 Q 6-12345
86 comp6 R 6-1235
87 comp6 S 6-234
88 comp6 T 6-2345
89 comp6 U 6-136
90 comp6 V 6-1236
91 comp6 W 6-2456
92 comp6 X 6-1346
93 comp6 Y 6-13456
94 comp6 Z 6-1356
95 comp6 Æ 6-345
96 comp6 Ø 6-246
97 comp6 Å 6-16
98 #lowword \x2013 36-36 # make double when surrounded by white spaces
99 #lowword - 36-36 # make double when hyphen surrounded by white spaces
100
101 numsign 3456
102
103 # Fix less-than / greater-than when in math context
104 always <\s 246-3-0
105 always <- 246-3-36
106 always -> 36-135-2
107 always \s> 0-135-2
108 noback context ["<"]$d @246-3
109 noback context _$d["<"] @246-3
110 noback context [">"]$d @135-2
111 noback context _$d[">"] @135-2
112 capsletter 6
113 begcapsword 69-6
114 noback endcapsword 569
115 begcapsphrase 6-6-6
116 lencapsphrase 2
117 endcapsphrase after 6
118
119 # variable #1 keeps track of when begcapsword has been suppressed
120 noback pass2 _$l[@69-6] ?#1=1 # suppress begcapsword when it is not the first character of the word
121 noback pass2 [@69-6]$l.@569@234$sp @6-6 # suppress begcapsword if it needs to be terminated by a endcapsword,
122 noback pass2 [@69-6]$l.@569@234~ @6-6 # unless the endcapsword is followed by a single "s"
123 noback pass2 [@69-6]$l.@569 ?#1=1 #
124 noback pass2 #1=1[]$l @6 # insert capsletter before (uppercase) letter if begcapsword was suppressed
125 noback pass2 #1=1@569 ?#1=0 # caps mode is terminated by endcapsword; suppress endcapsword if
126 # begcapsword was suppressed
127 noback pass2 #1=1!$l *#1=0 # caps mode is terminated by character that is not a letter
128
129 # remove dot 9
130 swapdd cleanvirtual 69,569 6,56
131 noback pass4 %cleanvirtual %cleanvirtual
132
133 # backward direction
134 nofor pass4 _!$sp[@6@6] @69-6#1=1
135 nofor pass4 #1=1@56 @569#1=0
136 nofor pass4 #1=1!$l *#1=0
137
138 emphclass italic
139 emphclass underline
140 emphclass bold
141
142
143 # We want backtranslation of semicolon.
144 noback begemph italic 23
145 begemph bold 6-3
146 begemph underline 456
147
148 noback endemph italic 56
149 endemph bold 6-3
150 endemph underline 456
151
152
153 # endnum # 56-3456
154 nonumsign 56
155 numericnocontchars abcdefghij
156 midendnumericmodechars ,.:
157 repeated ... 3-3-3 # points de suite
158 repeated --- 36-36-36
159 repeated ___ 456-456-456
160
161 # always \s--\s 36-36 # tiret
162 noback always ;\s; 0
163
164 # Fix quotation mark before and after dollar sign
165 always "$ 256-6-256
166 always «$ 256-6-256
167 always ‘$ 256-6-256
168 always „$ 256-6-256
169 always “$ 256-6-256
170 always $" 256-6-256
171 always $» 256-6-256
172 always $’ 256-6-256
173 always $„ 256-6-256
174 always $” 256-6-256
175
176
177 always °) 5-356-6-356
178
179
180 # We have to redefine the letter æ here to prevent back translation of it to result in a space
181
182 lowercase \x00E6 345 # æ 00E6
183 base uppercase \x00C6 \x00E6 # æ x00C6 / 00E6
184
185 # URLs
186 nocont ://
187 nocont www.
188 nocont .com
189 nocont .edu
190 nocont .gov
191 nocont .mil
192 nocont .net
193 nocont .org
194 nocont .no
195 nocont .nu
196 nocont .se
197 nocont .dk
198 nocont .fi
199 nocont .ini
200 nocont .doc
201 nocont .docx
202 nocont .xml
203 nocont .xsl
204 nocont .htm
205 nocont .html
206 nocont .tex
207 nocont .txt
208 nocont .gif
209 nocont .jpg
210 nocont .png
211 nocont .wav
212 nocont .mp3
213 nocont .m3u
214 nocont .tar
215 nocont .gz
216 nocont .bz2
217 nocont .zip
218
219 # Fix input where less than / greater than already are surrounding the
220 # URL / email address.
221 noback pass2 @126-246-3 @126
222 noback pass2 @135-2-345 @345
223 noback pass2 @3456-3456 @3456-6-3456
224
225 # remove space after degree sign and before C (Celcius), F (Fahrenheit) or K (Kelvin)
226 noback pass2 @5-356-0-6-14 @5-356-6-14 # ° C
227 noback pass2 @5-356-0-6-124 @5-356-6-124 # ° F
228 noback pass2 @5-356-0-6-13 @5-356-6-13 # ° K
229
230 # subscript
231 # ---------
232
233 emphclass sub
234 emphletter sub 16
235 begemph sub 16-236
236 noback endemph sub 356
237
238 digit ₀ 245a
239 digit ₁ 1a
240 digit ₂ 12a
241 digit ₃ 14a
242 digit ₄ 145a
243 digit ₅ 15a
244 digit ₆ 124a
245 digit ₇ 1245a
246 digit ₈ 125a
247 digit ₉ 24a
248
249 # ₊ ₋ ₌ ₍ ₎ ₐ ₑ ₒ ₓ ₔ ⱼ ᵢ ᵣ ᵤ ᵥ ᵦ ᵧ ᵨ ᵩ ᵪ
250
251 attribute sub ₀₁₂₃₄₅₆₇₈₉
252
253 noback pass2 %sub%sub. @16-236*
254 noback pass2 %sub @16*
255 noback pass3 %sub%sub. *@356
256
257 # fix order of sub sign and number sign
258 noback pass3 @3456-16-236 @16-236-3456
259 noback pass3 @3456-16 @16-3456
260
261 noback pass4 @245a @245 # ₀
262 noback pass4 @1a @1 # ₁
263 noback pass4 @12a @12 # ₂
264 noback pass4 @14a @14 # ₃
265 noback pass4 @145a @145 # ₄
266 noback pass4 @15a @15 # ₅
267 noback pass4 @124a @124 # ₆
268 noback pass4 @1245a @1245 # ₇
269 noback pass4 @125a @125 # ₈
270 noback pass4 @24a @24 # ₉
271
272 # superscript
273 # -----------
274
275 emphclass super
276 emphletter super 46
277 begemph super 46-236
278 noback endemph super 346
279
280 digit ⁰ 245b
281 digit ¹ 1b
282 digit ² 12b
283 digit ³ 14b
284 digit ⁴ 145b
285 digit ⁵ 15b
286 digit ⁶ 124b
287 digit ⁷ 1245b
288 digit ⁸ 125b
289 digit ⁹ 24b
290 # ⁱ ⁺ ⁻ ⁼ ⁽ ⁾ ⁿ ª º ⱽ ᴮ ᴯ ᴰ ᴱ ᴲ ᴳ ᴴ ᴵ ᴶ ᴷ ᴸ ᴹ ᴺ ᴻ ᴼ ᴽ ᴾ ᴿ ᵀ ᵁ ᵂ ᵃ ᵄ ᵅ ᵆ ᵇ ᵈ ᵉ ᵊ ᵋ ᵌ ᵍ ᵏ ᵐ ᵑ ᵒ ᵓ ᵖ ᵗ ᵘ ᵚ ᵛ ᵝ ᵞ ᵟ ᵠ ᵡ
291
292 attribute super ⁰¹²³⁴⁵⁶⁷⁸⁹
293
294 noback pass2 %super%super. @46-236*
295 noback pass2 %super @46*
296 noback pass3 %super%super. *@356
297
298 # fix order of super sign and number sign
299 noback pass3 @3456-46-236 @46-236-3456
300 noback pass3 @3456-46 @46-3456
301
302 noback pass4 @245b @245 # ⁰
303 noback pass4 @1b @1 # ¹
304 noback pass4 @12b @12 # ²
305 noback pass4 @14b @14 # ³
306 noback pass4 @145b @145 # ⁴
307 noback pass4 @15b @15 # ⁵
308 noback pass4 @124b @124 # ⁶
309 noback pass4 @1245b @1245 # ⁷
310 noback pass4 @125b @125 # ⁸
311 noback pass4 @24b @24 # ⁹
312
313 # 9.6 Percent/promille
314 noback context [$s]"%" ?
315 noback context [$s]"‰" ?
316 noback context "%"[")"] @6-356
317 noback context "‰"[")"] @6-356
318
319 # 11.3 Pound sign
320 noback joinnum \x00A3 123