# liblouis: Swedish Grade Uncontracted Braille Table
#
#-name: Svensk 6-punkts fullskrift
#-index-name: Swedish, uncontracted
#-display-name: Swedish uncontracted braille
#
#  Copyright (C) 2022 Insyn Scandinavia AB <david@insyn.se>
#  Copyright (C) 2012 Mesar Hameed <mesar.hameed@gmail.com>
#  Copyright (C) 2004-2008 ViewPlus Technologies, Inc. www.viewplus.com
#  Copyright (C) 2004-2006 JJB Software, Inc. www.jjb-software.com
#
#-copyright: 2004-2006, JJB Software, Inc. <www.jjb-software.com>
#-copyright: 2004-2008, ViewPlus Technologies, Inc. <www.viewplus.com>
#-copyright: 2012, Mesar Hameed <mesar.hameed@gmail.com>
#-copyright: 2022, Insyn Scandinavia AB <david@insyn.se>
#
#  This braille table is a heavily updated version of the former
#  Swedish braille table called Se-Se-G1.utb which was quite outdated and
#  was missing a lot of character definitions as well as incorrectly
#  handling some situations regarding mixing of numbers and letters
#  etc. This version also includes support for Swedish contractions
#  which previously haven't been available in Liblouis.
#  This new braille table is the result of a joint effort between
#  Punktskriftsnämnden (the Swedish Braille Authority) and
#  Insyn Scandinavia AB.
#
#-author: Insyn Scandinavia AB
#-maintainer: Insyn Scandinavia AB <david@insyn.se>
#
#  This braille table is based on the following documentation:
#  Svenska skrivregler för punktskrift:
#    https://www.mtm.se/skrivregler/dtb-bm-l1.html
#  Kortskrift nivå 1 och 2:
#    https://www.mtm.se/contentassets/08089b067f61495da1b035390d7a120e/kortskrift-niva-1-och-2---1997---nytt-manuskript-2016-09-26_v4.pdf
#  
#  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/>.
#
#-license: LGPLv2.1

#+language: sv
#+type: literary
#+contraction: no
#+grade: 0
#+dots: 6
#+direction: forward

# Spaces
space \x00a0 a
include spaces.uti

# Punctuation
punctuation ! 235
punctuation " 56
sign ' 5
punctuation ( 236
punctuation ) 356
punctuation , 2
hyphen - 36
punctuation . 3
punctuation : 25
punctuation ; 23
punctuation ? 26
punctuation [ 12356
punctuation ] 23456
punctuation { 6-12356
punctuation } 6-23456
punctuation « 45-2356
punctuation » 2356-12
noback punctuation	\x2010 46
noback punctuation	\x2011 46
punctuation	\x2013 36-36
punctuation	\x2018 5
sign \x2019 5
punctuation	\x201C 56
punctuation	\x201D 56
punctuation	\x201E 56
punctuation	\x201F 56
punctuation \x2026 3-3-3

# Special signs
sign # 45-3456
sign € 45-15
sign $ 45-234
sign % 1456
sign ‰ 1456-1456
sign & 12346
sign * 35
noback sign \x2606 35
sign _ 45-36
sign @ 45-12356
sign ^ 4
sign \\ 45-34
sign | 456
sign ¢ 45-14
sign £ 45-123
sign ¤ 45-15
sign ¥ 45-13456
sign ○ 12456-1245
sign ∙	12456-3
sign § 346
sign © 236-14-356
sign ® 236-1235-356
sign ™ 236-2345-134-356
sign ° 4-356
sign ² 4-6-126
sign ³ 4-6-146
sign ¹ 4-6-16
sign \x20AC 15-136-1235-135
noback sign \x25CF 35
noback sign † 45-256

# Math
math + 256
math / 34
math < 246-3
math = 2356
math > 135-2
math ~ 45-25
math ¼ 3456-1-34-3456-145
math ½ 3456-1-34-3456-12
math ¾ 3456-14-34-3456-145
math × 12456-1346
math ÷ 34

# Letters
include latinLetterDef6Dots.uti
include digits6Dots.uti
include litdigits6Dots.uti
base uppercase \x00C0 \x00E0
lowercase \x00E0 12356
base uppercase Ä ä
lowercase ä 345
base uppercase Å å
lowercase å 16
base uppercase \x00C8 \x00E8
lowercase \x00E8 2346
base uppercase É é
lowercase é 123456
base uppercase Ö ö
lowercase ö 246																			x00D6
base uppercase Ü ü
lowercase ü 1256

# Capital and number signs
capsletter 6
begcapsword 6-6
endcapsword 156
lencapsphrase 3
begcapsphrase 6-6-6
endcapsphrase after 156
numsign 3456

# Repetitions
repeated ... 3-3-3
repeated --- 36-36-36
repeated ___ 45-36-45-36-45-36
always \s--\s 36-36
numericnocontchars abcdefghij
midendnumericmodechars .,\x00a0
midnum \x00a0 3
nonumsign 156
undefined 3678

# Bullets
noback always \x2043 123456
noback always \xf0b7 123456
noback always \x2022 123456
noback always \x25a0 123456
noback always \x25e6 4-123456
noback always ▪ 45-123456

# Emojis
noback always \x221a 0
noback always \xDE0A 25-356
noback always \xF04A 25-356
noback always \x263A 25-356
noback always \xde1d 25-1234
noback always \x2190 246-25
noback always \x2192 25-135
noback always \x2014 36-36

# Characters to ignore
replace \x0192
replace \xe002
replace \xe003
replace \xe00e
replace \xe144
replace \xe197
replace \xe900
replace \xe902
replace \xe904
replace \xe906
replace \xe908
replace \xe90a
replace \xe924
replace \xe925
replace \xe968
replace \xe9e9
replace \xe9ff
replace \xea00
replace \xea01
replace \xea02
replace \xea03
replace \xea04
replace \xea08
replace \xea0b
replace \xea27
replace \xea4d
replace \xea4e
replace \xea50
replace \xea51
replace \xea52
replace \xea53
replace \xea54
replace \xea58
replace \xea98
replace \xeb03
replace \xeb06
replace \xee92
replace \xf054
replace \xf059
replace \xf108
replace \xf123
replace \xfffd
replace \xf046
replace \xf017
replace \xf015
replace \xf105
replace \xf002
replace \xf00a
replace \xf03a
replace \xf067
replace \xf07a
replace \xf15d
replace \xf099
replace \xf0d2
replace \xf09a
replace \xf1d8
replace \xf040
replace \xf00c
replace \xf058
replace \x200e
replace \x202a
replace \x200f
replace \xD83D

# Diacritic A
base uppercase Á á
lowercase á 346-35-1
base uppercase Ȁ ȁ
lowercase ȁ 4-1 346-26-26-1
base uppercase Ǟ ǟ
lowercase ǟ 346-23-1
base uppercase Ǻ ǻ
lowercase ǻ 4-1
base uppercase Ǻ ǻ
lowercase ǻ 4-1
base uppercase Ḁ ḁ
lowercase ḁ 4-1
base uppercase Â â
lowercase â 346-235-1
base uppercase Ấ ấ
lowercase ấ 4-1
base uppercase Ầ ầ
lowercase ầ 4-1
base uppercase Ẩ ẩ
lowercase ẩ 4-1
base uppercase Ã ã
lowercase ã 346-25-1
base uppercase Ǎ ǎ
lowercase ǎ 346-2356-1
base uppercase Ȧ ȧ
lowercase ȧ 346-3-1
base uppercase Ạ ạ
lowercase ạ 236-3-1
base uppercase Ǡ ǡ
lowercase ǡ 4-1
base uppercase Ā ā
lowercase ā 346-36-1
base uppercase Ă ă
lowercase ă 4-1
base uppercase Ȃ ȃ
lowercase ȃ 4-1
base uppercase Ặ ặ
lowercase ặ 4-1
base uppercase Ả ả
lowercase ả 4-1
lowercase ẚ 4-1
base uppercase Ą ą
lowercase ą 4-1
# Diacritic B
lowercase ᵬ 4-12
base uppercase Ḃ ḃ
lowercase ḃ 346-3-12
base uppercase Ḅ ḅ
lowercase ḅ 126-3-12
base uppercase Ḇ ḇ
lowercase ḇ 4-12
base uppercase Ƀ ƀ
lowercase ƀ 4-12
base uppercase Ɓ ɓ
lowercase ɓ 4-12
lowercase ᶀ 4-12
base uppercase Ƃ ƃ
lowercase ƃ 4-12
# Diacritic C
base uppercase Ć ć
lowercase ć 346-35-14
base uppercase Ç ç
lowercase ç 126-2-14
base uppercase Ḉ ḉ
lowercase ḉ 4-14
base uppercase Ĉ ĉ
lowercase ĉ 346-235-14
base uppercase Č č
lowercase č 346-2356-14
base uppercase Ċ ċ
lowercase ċ 346-3-14
base uppercase Ȼ ȼ
lowercase ȼ 4-14
base uppercase Ꞓ ꞓ
lowercase ꞓ 4-14
# Diacritic D
lowercase ḑ 126-2-145
lowercase ḓ 126-235-145
base uppercase Ď ď
lowercase ď 346-2356-145
base uppercase Ḋ ḋ
lowercase ḋ 346-3-145
lowercase ḍ 126-3-145
lowercase ḏ 4-145
base uppercase Đ đ
lowercase đ 4-145
lowercase ƌ 4-145
lowercase ȡ 4-145
base uppercase Ɖ ɖ
lowercase ɖ 4-145
base uppercase ɗ Ɗ
lowercase Ɗ 4-145
# Diacritic E
lowercase ȅ 346-26-26-15
lowercase ȩ 126-2-15
lowercase ḝ 4-15
base uppercase Ë ë
lowercase ë 346-23-15
base uppercase Ê ê
lowercase ê 346-235-15
lowercase ḙ 126-235-15
base uppercase Ẽ ẽ
lowercase ẽ 346-25-15
lowercase ḛ 126-25-15
base uppercase Ě ě
lowercase ě 346-2356-15
base uppercase Ė ė
lowercase ė 346-3-15
base uppercase Ẹ ẹ
lowercase ẹ 126-3-15
base uppercase Ē ē
lowercase ē 346-36-15
base uppercase Ḗ ḗ
lowercase ḗ 4-15
lowercase ḕ 4-15
lowercase ĕ 4-15
lowercase ȇ 4-15
base uppercase Ę ę
lowercase ę 4-15
# Diacritic I
base uppercase Í í
lowercase í 346-35-24
base uppercase Ì ì
lowercase ì 346-26-24
base uppercase Ï ï
lowercase ï 346-23-24
base uppercase Î î
lowercase î 346-235-24
base uppercase Ī ī
lowercase ī 346-36-24
# Diacritic L
base uppercase Ĺ ĺ
lowercase ĺ 346-35-123
base uppercase Ḷ ḷ
lowercase ḷ 126-3-123
base uppercase Ḹ ḹ
lowercase ḹ 4-123
# Diacritic M
base uppercase ṁ ḿ
lowercase ḿ 346-3-134
lowercase ṃ 126-3-134
# Diacritic N
lowercase ń 346-35-1345
lowercase ǹ 346-26-1345
base uppercase ņ ń
lowercase ń 126-2-1345
lowercase ṋ 126-235-1345
base uppercase Ñ ñ
lowercase ñ 346-25-1345
lowercase ň 346-2356-1345
lowercase ṅ 346-3-1345
lowercase ṇ 126-3-1345
lowercase ṉ 4-1345
lowercase ȵ 4-1345
lowercase ƞ 4-1345
lowercase ɲ 4-1345
lowercase ŋ 4-1345
lowercase ɳ 4-1345
# Diacritic O
base uppercase Ó ó
lowercase ó 346-35-135
base uppercase Ò ò
lowercase ò 346-26-135
base uppercase Ô ô
lowercase ô 346-235-135
base uppercase Õ õ
lowercase õ 346-25-135
# Diacritic P
lowercase ṕ 346-35-1234
lowercase ṗ 346-3-1234
lowercase ƥ 4-1234
# Diacritic Q
lowercase ʠ 4-12345
base uppercase Ɋ ɋ
lowercase ɋ 4-12345
# Diacritic R
lowercase ŕ 346-35-1235
lowercase ȑ 346-26-26-1235
lowercase ṙ 346-3-1235
lowercase ṛ 126-3-1235
lowercase ṝ 4-1235
lowercase ṟ 4-1235
base uppercase Ř ř
lowercase ř 4-1235
lowercase ȓ 4-1235
lowercase ɼ 4-1235
lowercase ɽ 4-1235
lowercase ɾ 4-1235
# Diacritic S
base uppercase Š š
lowercase š 156
# Diacritic T
base uppercase Ţ ţ
lowercase ţ 126-2-2345
lowercase ẗ 346-23-2345
base uppercase Ť ť
lowercase ť 346-2356-2345
base uppercase Ṫ ṫ
lowercase ṫ 346-3-2345
base uppercase Ṭ ṭ
lowercase ṭ 126-3-2345
base uppercase Ț ț
lowercase ț 4-2345
base uppercase Ṯ ṯ
lowercase ṯ 4-2345
base uppercase Ŧ ŧ
lowercase ŧ 4-2345
base uppercase Ʈ ʈ
lowercase ʈ 4-2345
lowercase ƫ 4-2345
# Diacritic U
base uppercase Ú ú
lowercase ú 346-35-136
base uppercase Ù ù
lowercase ù 346-26-136
base uppercase Û û
lowercase û 346-235-136
base uppercase Ū ū
lowercase ū 346-36-136
# Diacritic W
lowercase ẃ 346-35-2456
lowercase ẁ 346-26-2456
lowercase ẅ 346-23-2456
# Diacritic Y
base uppercase Ý ý
lowercase ý 346-35-13456
base uppercase Ỳ ỳ
lowercase ỳ 346-26-13456
base uppercase Ÿ ÿ
lowercase ÿ 346-23-13456
# Diacritic Ž
base uppercase Ž ž
lowercase ž 346-2356-2346
# Other diacritic letters
lowercase ø 4-135
lowercase œ 4-246
lowercase ß 4-234
base uppercase Ð ð
lowercase ð 4-145
lowercase þ 4-2345
# Diacritical marks
sign ´ 45-35
sign ` 45-26
sign ¸ 45-2
sign ˆ 45-235
sign ˇ 45-2356
sign ¨ 45-23
sign æ 4-345
sign ḝ 45
sign ḝ 45

# Characters not to backtranslate (must be included for braille input to work)
include braille-patterns.cti
