blob: 596ee3346ee6c514ca5f6833869bbf460c8fc9ac [file] [log] [blame]
# Slovene braille translation table
#
# Copyright (C) 2004-2008 ViewPlus Technologies, Inc. www.viewplus.com
# Copyright (C) 2009 JJB Software, Inc. www.jjb-software.com
# Copyright (C) 2012 Mesar Hameed <mesar.hameed@gmail.com>
# Copyright (C) 2018 Robert Merič
# Copyright (C) 2019 Bert Frees
#
# 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/>.
#
# by Mike Sivill <Mike.Sivill@viewplus.com>
#
# corrections 15.12.2018 - new Slovenian braille standard: http://liblouis.org/braille-specs/slovenian
# Robert Merič <info@slepslaboviden.si>
include text_nabcc.dis
include braille-patterns.cti
space \x00a0 a
include spaces.uti
# ----------- define all chars --------------------------------------
replace \x0007
punctuation ! 235 # 33
punctuation " 5-2356 # 34
sign # 3456 # 35
sign $ 46 # 36
sign % 12456 # 37
sign & 5-24 # 38
punctuation ' 3 # 39 apostrophe
punctuation ( 126 # 40
punctuation ) 345 # 41
sign * 35 # 42
math + 1256 # 43
punctuation , 2 # 44
punctuation - 36 # 45
punctuation . 256 # 46
math / 23456 # 47
include loweredDigits6Dots.uti
punctuation : 25 # 58
punctuation ; 23 # 59
math < 6-236 # 60
math = 2356
math > 6-356 # 62
punctuation ? 26 # 63
sign @ 246 # 64
include latinLetterDef6Dots.uti
punctuation [ 4-12346 # 91
sign \\ 12356 # 92
punctuation ] 4-13456 # 93
sign ^ 6-45 # 94 circumflex accent
sign _ 5-36 # 95 underscore
sign ` 4 # 96 grave accent
# a - z # 97 - 122
punctuation { 4-246 # 123
sign | 5-1236 # 124
punctuation } 4-135 # 125
math ~ 5-1356 # 126
sign \x00A2 4-14 # 162 ¢ cents sign
sign \x00A3 5-1234 # 163 £ pound sign
sign \x20A4 4-123 # lira sign
sign \x00A5 4-13456 #165 ¥ yen sign
sign § 4-234-3 # 167
begnum § 234-3 # 167
always § 4-234-3 # 167
sign \x2022 36-36-0 # bullet
sign \x00A9 5-14 # 169 © copyright sign
sign \x00AE 5-1235 # 174 ® registered sign
sign \x2665 2356-125-15-345-2345-2356 # heart symbol
sign \x21FD 246-25-25 # LEFTWARDS OPEN-HEADED ARROW
sign \x21FE 25-25-135 # RIGHTWARDS OPEN-HEADED ARROW
sign \x21FF 246-25-25-135 # LEFT RIGHT OPEN-HEADED ARROW
always \x21FD 246-25-25 # LEFTWARDS OPEN-HEADED ARROW
always \x21FE 25-25-135 # RIGHTWARDS OPEN-HEADED ARROW
always \x21FF 246-25-25-135 # LEFT RIGHT OPEN-HEADED ARROW
sign \x00BA 145-1245 MASCULINE ORDINAL INDICATOR 006F
punctuation \x00Ad 36 # 173 soft hyphen
sign \x00B0 5-234 # 176 ° degree sign
sign \x00B4 4
noback always \x00B4 4 # acute accent sign
sign \x00B5 2-134 # micro sign, (mu)
sign \x00B6 4-1234-345 # 182 ¶ pilcrow sign
math \x00D7 4-16 # 215 × multiplication sign
midnum \x00D7 4-16
math \x00F7 46-34 # 247 ÷ division sign
midnum \x00F7 46-34
punctuation \x2010 36 # 8208 hyphen
punctuation \x2011 23478 # 8209 non-breaking hyphen
punctuation \x2013 6-36 # 8211 en dash
punctuation \x2014 6-36 # 8212 em dash
punctuation \x2018 236 # 8216 smart single left quotation mark
punctuation \x2019 356-3 # 8217 smart single right quotation mark
punctuation \x201C 236 # 8220 smart opening double quote ***začetni narekovaj
punctuation \x201D 356 # 8221 smart closing double quote ***končni narekovaj
punctuation \x201E 236 # 8222 smart double low quotation mark
punctuation \x201F 356 # 8223 smart double high reverse quotation mark
punctuation \x2026 3-3-3 # 8230 smart ellipsis
math \x2030 5-12456 # 8240 ‰ per mille sign
math \x2260 235 # 8800 ≠ not equal to
always != 235
sign \x20AC 5-15 # 8364 Euro sign anywhere else
# --------------------------- end definitions ---------------------------------
include countries.cti
# Braille indicators
numsign 3456 number sign, just a dots operand
capsletter 46
begcapsword 456
endcapsword 6
nocontractsign 6
numericnocontchars abcdefghij
numericmodechars .,:
# Roman numbers are preceded with 456, also if single letter
class roman IVXLCDM
noback pass2 $ps[@46]%roman$ps @456
noback pass2 $ps[@46]%roman~ @456
noback pass2 `[@46]%roman$ps @456
noback pass2 `[@46]%roman~ @456
# the decimal digits
include litdigits6Dots.uti
# special accented chars
uplow \x0110\x0111 1456 # đ
uplow \x0160\x0161 156 # š
uplow \x010C\x010D 16 # č
uplow \x0106\x0107 146 # ć
uplow \x017D\x017E 2346 # ž
uplow \x00D0\x00F0 1456 # ð (dž)
# accented letters
uplow \x00C0\x00E0 1 # a with grave
uplow \x00C1\x00E1 1 # a with acute
uplow \x00C2\x00E2 1 # a with circumflex
uplow \x00C3\x00E3 1 # a with tilde
uplow \x00C4\x00E4 1 # a with dieresis
uplow \x00C5\x00E5 1 # a with ring above
uplow \x00C6\x00E6 1 # letter ae
uplow \x00C7\x00E7 14 # c with cedilla
uplow \x00C8\x00E8 15 # e with grave
uplow \x00C9\x00E9 15 # e with acute
uplow \x00CA\x00EA 15 # e with circumflex
uplow \x00CB\x00EB 15 # e with dieresis
uplow \x00CC\x00EC 24 # i with grave above
uplow \x00CD\x00ED 24 # i with acute above
uplow \x00CE\x00EE 24 # i with circumflex
uplow \x00CF\x00EF 24 # i with dieresis
uplow \x00D0\x00F0 15 # letter eth
uplow \x00D1\x00F1 1345 # n with tilde
uplow \x00D2\x00F2 135 # o with grave above
uplow \x00D3\x00F3 135 # o with acute above
uplow \x00D4\x00F4 135 # o with circumflex
uplow \x00D5\x00F5 135 # o with tilde
uplow \x00D6\x00F6 135 # o with dieresis
# \x00D7 × multiplication sign ----------------------
uplow \x00D8\x00F8 135 # o with stroke
uplow \x00D9\x00F9 136 # u with grave above
uplow \x00DA\x00FA 136 # u with acute above
uplow \x00DB\x00FB 136 # u with circumflex above
uplow \x00DC\x00FC 136 # u with dieeresis
uplow \x00DD\x00FD 13456 # y with acute above
uplow \x00DE\x00FE 4-1456 # letter thorn
letter \x00DF 2346 # small sharp s
uplow \x0174\x0175 4-2456 w with circumflex
uplow \x0176\x0177 4-13456 # y with circumflex
uplow \x0178\x00ff 4-13456 # y with diaeresis
uplow \x1ef2\x1ef3 4-13456 # y with grave
largesign \x00C0 4-1 [C0] upper a grave
largesign \x00E0 4-1 [E0] lower a grave
largesign \x00C1 4-1 [C1] upper a acute
largesign \x00E1 4-1 [E1] lower a acute
largesign \x00C2 4-1 [C2] upper a circumflex
largesign \x00E2 4-1 [E2] lower a circumflex
largesign \x00C3 4-1 [C3] upper a tilde
largesign \x00E3 4-1 [E3] lower a tilde
largesign \x00C4 4-1 [C4] upper a dieresis
largesign \x00E4 4-1 [E4] lower a dieresis
largesign \x00C5 4-1 [C5] upper a ring
largesign \x00E5 4-1 [E5] lower a ring
largesign \x00C6 1-15 [C6] upper ae
largesign \x00E6 1-15 [E6] lower ae
largesign \x00C7 4-14 [C7] upper c cedilla
largesign \x00E7 4-14 [E7] lower c cedilla
largesign \x00C8 4-15 [C8] upper e grave
largesign \x00E8 4-15 [E8] lower e grave
largesign \x00C9 4-15 [C9] upper e acute
largesign \x00E9 4-15 [E9] lower e acute
largesign \x00CA 4-15 [CA] upper e circumflex
largesign \x00EA 4-15 [EA] lower e circumflex
largesign \x00CB 4-15 [CB] upper e dieresis
largesign \x00EB 4-15 [EB] lower e dieresis
largesign \x00CC 4-24 [CC] upper i grave
largesign \x00EC 4-24 [EC] lower i grave
largesign \x00CD 4-24 [CD] upper i acute
largesign \x00ED 4-24 [ED] lower i acute
largesign \x00CE 4-24 [CE] upper i circumflex
largesign \x00EE 4-24 [EE] lower i circumflex
largesign \x00CF 4-24 [CF] upper i dieresis
largesign \x00EF 4-24 [EF] lower i dieresis
largesign \x00D0 4-15 [D0] upper eth
largesign \x00F0 4-15 [F0] lower eth
largesign \x00D1 4-1345 [D1] upper n tilde
largesign \x00F1 4-1345 [F1] lower n tilde
largesign \x00D2 4-135 [D2] upper o grave
largesign \x00F2 4-135 [F2] lower o grave
largesign \x00D3 4-135 [D3] upper o acute
largesign \x00F3 4-135 [F3] lower o acute
largesign \x00D4 4-135 [D4] upper o circumflex
largesign \x00F4 4-135 [F4] lower o circumflex
largesign \x00D5 4-135 [D5] upper o tilde
largesign \x00F5 4-135 [F5] lower o tilde
largesign \x00D6 4-135 [D6] upper o dieresis
largesign \x00F6 4-135 [F6] lower o dieresis
largesign \x00D8 4-135 [D8] upper o slash
largesign \x00f8 4-135 [F8] lower o slash
largesign \x00D9 4-136 [D9] upper u grave
largesign \x00F9 4-136 [F9] lower u grave
largesign \x00DA 4-136 [DA] upper u acute
largesign \x00FA 4-136 [FA] lower u acute
largesign \x00DB 4-136 [DB] upper u circumflex
largesign \x00FB 4-136 [FB] lower u circumflex
largesign \x00DC 4-136 [DC] upper u dieresis
largesign \x00FC 4-136 [FC] lower u dieresis
largesign \x00DD 4-13456 [DD] upper y acute
largesign \x00FD 4-13456 [FD] lower y acute
largesign \x00DE 4-2345 [DE] upper t horn
largesign \x00FE 4-2345 [FE] lower t horn
largesign \x00DF 234-234 (DF) lower ss
largesign \x0174 4-2456 lower w circumflex
largesign \x0175 4-2456 upper w circumflex
letter \x0176 4-13456 upper y circumflex
letter \x0177 4-13456 lower y circumflex
largesign \x0178 4-13456 upper y with dieresis
largesign \x00FF 4-13456 lower y with dieresis
largesign \x1EF2 4-13456 upper y with grave
largesign \x1EF3 4-13456 lower y with grave
# Greek letters
uplow \x0391\x03b1 1 # 913 greek letter alpha Αα
uplow \x0392\x03b2 12 # 914 greek letter beta Ββ
uplow \x0393\x03b3 1245 # 915 greek letter gamma Γγ
uplow \x0394\x03b4 145 # 916 greek letter delta Δδ
uplow \x0395\x03b5 156 # 917 greek letter epsilon Εε
uplow \x0396\x03b6 1356 # 918 greek letter zeta Ζζ
uplow \x0397\x03b7 15 # 919 greek letter eta Ηη
uplow \x0398\x03b8 125 # 920 greek letter theta Θθ
uplow \x0399\x03b9 24 # 921 greek letter iota Ιι
uplow \x039a\x03ba 13 # 922 greek letter kappa Κκ
uplow \x039b\x03bb 123 # 923 greek letter lamda Λλ
uplow \x039c\x03bc 134 # 924 greek letter mu Μμ
uplow \x039d\x03bd 1345 # 925 greek letter nu Νν
uplow \x039e\x03be 1346 # 926 greek letter xi Ξξ
uplow \x039f\x03bf 135 # 927 greek letter omicron Οο
uplow \x03a0\x03c0 1234 # 928 greek letter pi Ππ
uplow \x03a1\x03c1 1235 # 929 greek letter rho Ρρ
uplow \x03a3\x03c3 234 # 931 greek letter sigma Σσ
lowercase \x03c2 234 # 962 greek small letter final sigma ς
uplow \x03a4\x03c4 2345 # 932 greek letter tau Ττ
uplow \x03a5\x03c5 136 # 933 greek letter upsilon Υυ
uplow \x03a6\x03c6 124 # 934 greek letter phi Φφ
uplow \x03a7\x03c7 14 # 935 greek letter chi Χχ
uplow \x03a8\x03c8 13456 # 936 greek letter psi Ψψ
uplow \x03a9\x03c9 2456 # 937 greek letter omega Ωω
class greek αβγδεζηθικλμνξοπρσςτυφχψωΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ
noback context %greek. @56*
noback pass2 @46@56 @56@46
noback pass2 @456@56 @56@456
# punctuation
prepunc ( 236
postpunc ) 356
begword ` 236
prepunc " 236
postpunc " 356
prepunc ' 2
postpunc ' 3
sign # 456-1456 # Pound, number sign, hash
always # 5-1345
sign \x20AC 5-15 # euro sign atend of number
midnum , 2
postpunc , 2
decpoint . 256
midnum - 36
hyphen - 36
#capsnocont
postpunc . 256
postpunc ; 23
midnum : 25
postpunc : 25
postpunc ! 235
midnum / 23456
noback always / 23456
always < 6-236
always > 6-356
punctuation ? 26
sign % 12456
endnum % 12456
midnum ^ 5-156
always ^ 5-156
always ~ 5-1356
always & 5-24
midnum * 35
midnum + 1256
noback always * 35
midword \x2019 3 # stupid smart apostrophe
always [ 6-235
always ] 6-256
always { 6-126
always } 6-345
prepunc ` 236
noback always @ 246
always \\ 12356
always | 5-1236
repeated \s 0
repeated \t 0
always \s-\s 36
always ... 256-256-256
always .\s.\s. 256-256-256 . . .
begnum $ 46
always $ 5-145
endword (s) 2356-234-2356
# Vulgar Fractions
sign \x00BD 3456-1-34-12 # one half
sign \x00BC 3456-1-34-145 # one fourth
sign \x00BE 3456-14-34-145 # three fourths
sign \x2153 3456-1-34-14 # one third
sign \x2154 3456-12-34-14 # two thirds
sign \x215B 3456-1-34-125 # one eighth
sign \x215C 3456-14-34-125 # three eighths
sign \x215D 3456-15-34-125 # five eighths
sign \x215E 3456-1245-34-125 # seven eighths
sign \x00B1 346-36 # plus or minus
sign \x00B2 45-23
sign \x00B3 45-25
postpunc \x00B2 45-23-456
sign \x00B3 45-25-456
always \x00B2 45-23
always \x00B2 45-25
always \x00BA 56-145-1245
sign \x2122 5-2345 # trade mark symbol
sign \x00BB 236
sign \x00AB 356