# liblouis: Croatian grade 1 Braille
#
# Copyright (C) 2017. Zlatko Sobočan <zlatko.sobocan@tifloglobus.hr>
# by company Tiflo globus d.o.o. <http://www.tifloglobus.hr>
#
#  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/>.

#-------------------------------------------------------------------------------
#
#  Croatian grade 1 Braille
#  Version: 2017-06-15
# Created and maintained: Zlatko Sobočan <zlatko.sobocan@tifloglobus.hr>
# by company Tiflo globus d.o.o. <http://www.tifloglobus.hr>
# Especially thanks Arend Arends <arend.arends@hccnet.nl> by TactileView for testing.
# If you found bugs with Croatian grade1 table, report it with following address:
# Zlatko Sobočan <zlatko.sobocan@tifloglobus.hr>
#
#-------------------------------------------------------------------------------

# --- Braille indicator opcodes ------------------------------------------------

# letsign 6
capsletter 46
begcapsword 45
endcapsword 6
numsign 3456

emphclass italic
emphclass underline
emphclass bold
begemphphrase italic 456-13-456
endemphphrase italic after 456
lenemphphrase italic 4
begemphword italic 456
endemphword italic 6
emphletter italic 456
begemphphrase underline 36-36
endemphphrase underline after 36-36
lenemphphrase underline 1
begemphword underline 36-36
endemphword underline 6
emphletter underline 36-36
begemphphrase bold 456-134-456
endemphphrase bold after 456-456
lenemphphrase bold 4
begemphword bold 456-456
endemphword bold 6
emphletter bold 456-456
# Underlined the words with content in "literal" section:
# begcomp 36-36
# endcomp 36-36

# --- Special Processing Opcodes -----------------------------------------------
#capsnocont

# --- Translation opcodes ------------------------------------------------------

always \\ 34
prepunc " 2356 Navodnik
prepunc « 2356
prepunc » 2356
endnum " 2356
postpunc " 2356
postpunc » 2356
postpunc « 2356
always # 6-3456
endnum .a 3-6-1
endnum .b 3-6-12
endnum .c 3-6-14
endnum .d 3-6-145
endnum .e 3-6-15
endnum .f 3-6-124
endnum .g 3-6-1245
endnum .h 3-6-125
endnum .i 3-6-24
endnum .j 3-6-245
always .\s.\s. 3-3-3
always .\s, 3-2
always \x0027\x0027 2356
prepunc \x2039 2356 Pametni navodnik, otvoren
prepunc \x203a 2356
prepunc \x2018 2356
prepunc \x2019 2356
postpunc \x2039 2356 Pametni navodnik, zatvoren
postpunc \x203a 2356
postpunc \x2018 2356
postpunc \x2019 2356

include litdigits6Dots.uti
numericmodechars .,
nocontractsign 6
numericnocontchars abcdefghij

endnum \s% 3456-245-356 Postotak
endnum \s%) 3456-245-356-6-356
always % 3456-245-356
always %) 3456-245-356-6-356
endnum \s\x2030 3456-245-356-356 Promil
endnum \x2030\x0029 3456-245-356-356-6-356
always \x2030\x0029 3456-245-356-356-6-356
always \s\x2031 3456-245-356-356-356
endnum \s° 45-356 Stupanj
endnum °) 45-356-6-356
endnum \s°) 45-356-6-356
endnum \s°C 45-356-46-14
endnum \s°F 45-356-46-124
always °) 45-356-6-356
always °C 45-356-46-14
always °F 45-356-46-124
always \s\x2032 45-256 Minuta
always \x2032\x0027 45-256-6-256
always \s\x2033 45-256-256 Sekunda
always \x2033\x0027 45-256-256-6-256
begnum § 4-346 Članak
joinnum § 4-346

endnum .-- 3-36-36
endnum ,-- 2-36-36
#noback always \x2013 36 en crtica
#noback always \x2014 36 EM crtica
always | 6-45 Okomita crta

joinnum € 5-15 Euro
joinnum £ 5-123 Pfund
joinnum $ 5-145 Dollar
joinnum ¢ 5-14 Cent
joinnum ¥ 5-13456 Yen

# Minus:
begnum - 4-36
midnum - 4-36
midnum -- 36
midnum -( 4-36-236
midnum -[ 4-36-6-12356
midnum -{ 4-36-12356
midnum \s\x2212\s 0-4-36-0
midnum \s\x2212 0-4-36
midnum \x2212 4-36
always \x2212 4-36
hyphen - 36
# Plus Minus:
midnum \s±\s 0-4-235-36-0
midnum \s± 0-4-235-36
midnum ± 4-235-36
always ± 4-235-36
# jednako je:
midnum \s=\s 0-4-2356-0
midnum \s= 0-4-2356
midnum = 4-2356
always = 4-2356
# Različito:
midnum \s\x2260\s 0-4-256-2356
midnum \s\x2260 0-4-256-2356
midnum \x2260 4-256-2356
always \x2260 4-256-2356
# Kongruentno:
midnum \s\x2261\s 0-4-2356-2356
midnum \s\x2261 0-4-2356-2356
midnum \x2261 4-2356-2356
always \x2261 4-2356-2356
# Sličan (Äquivalent):
midnum \s\x2259\s 0-4-26
midnum \s\x2259 0-4-26
midnum \x2259 4-26
always \x2259 4-26
# Približan:
midnum \s\x2245\s 0-4-26-26
midnum \s\x2245 0-4-26-26
midnum \x2245 4-26-26
always \x2245 4-26-26
# Kartezijev produkt (puta kao x):
midnum x 4-236
# Puta:
midnum \s×\s 0-4-3-0
midnum \s× 0-4-3
midnum × 4-3
always × 4-3
# Puta (kao zvjezdica):
midnum \s\x2217\s 0-4-3-0
midnum \s\x2217 0-4-3
midnum \x2217 4-3
midnum \s*\s 0-4-3-0
midnum \s* 0-4-3
midnum * 4-3
endnum )* 356-4-3
midnum )* 356-4-3
always )* 356-4-3
begnum *( 4-3-236
endnum *( 4-3-236
always *( 4-3-236
begnum *[ 4-3-6-12356
endnum *[ 4-3-6-12356
always *[ 4-3-6-12356
always ]* 6-23456-4-3
begnum ]* 6-23456-4-3
endnum ]* 6-23456-4-3
always *{ 4-3-12356
begnum }* 23456-4-3
endnum }* 23456-4-3
always }* 23456-4-3
# Puta (kao točka u sredini):
midnum \s\x22c5\s 0-4-3-0
midnum \s\x22c5 0-4-3
midnum \x22c5 4-3
# Puta (kao zvjezda):
midnum \s\x22c6\s 0-4-3-0
midnum \s\x22c6 0-4-3
midnum \x22c6 4-3
# Podijeljeno sa:
midnum \s÷\s 0-4-25-0
midnum \s÷ 0-4-25
midnum ÷ 4-25
always ÷ 4-25
midnum \s\x2215\s 0-4-25-0
midnum \s\x2215 0-4-25
midnum \x2215 4-25
always \x2215 4-25
# Proportional:
midnum \s~\s 0-4-26-0
midnum \s~ 0-4-26
midnum ~ 4-26
midnum \s\x223C\s 0-4-25-25
midnum \s\x223C 0-4-25-25
midnum \x223C 0-4-25-25
always \x223C 4-25-25
# Manji od:
midnum \s<\s 0-246-3
midnum \s< 0-246-3
midnum < 246-3
always < 246-3
# Manji ili jednak:
midnum \s\x2264\s 0-246-2356
midnum \s\x2264 0-246-2356
midnum \x2264 0-246-2356
always \x2264 4-246-2356
midnum \s\x2266\s 0-246-2356
midnum \s\x2266 0-246-2356
midnum \x2266 0-246-2356
always \x2266 4-246-2356
# Veći od:
midnum \s>\s 0-135-2
midnum \s> 0-135-2
midnum > 0-135-2
always > 135-2
# Veći ili jednak:
midnum \s\x2265\s 0-135-2356
midnum \s\x2265 0-135-2356
midnum \x2265 0-135-2356
always \x2265 4-135-2356
midnum \s\x2267\s 0-135-2356
midnum \s\x2267 0-135-2356
midnum \x2267 0-135-2356
always \x2267 4-135-2356

#----------- SPECIAL SYLLABLES -----------------------------------------------

always \x0044\x017D 12456			# LATIN CAPITAL LETTER D + LATIN CAPITAL LETTER Z WITH CARON
always \x0044\x017E 12456			# LATIN CAPITAL LETTER D + LATIN SMALL LETTER Z WITH CARON
always \x0064\x017E 12456			# LATIN SMALL LETTER D + LATIN SMALL LETTER Z WITH CARON
always LJ 126						# LJ
always Lj 126						# Lj
always lj 126						# lj
always NJ 1246						# NJ
always Nj 1246						# Nj
always nj 1246						# nj

#----------- SPECIAL WORDS ---------------------------------------------------

always džanr 145-2346-1-1345-1235
always injekc 24-1345-245-15-13-14
always injekt 24-1345-245-15-13-2345
always konjunk 13-135-1345-245-136-1345-13
always konjug 13-135-1345-245-136-1245
always nadživ 1345-1-145-2346-24-1236
always odživ 135-145-2346-24-1236
always predživot 1234-1235-15-145-2346-24-1236-135-2345
always tanjug 2345-1-1345-245-136-1245

# ----------- Special character sequences -------------------------------------

literal :// URLs
literal www.
literal @ Mail-address

literal .at
literal .ba
literal .be
literal .ch
literal .com
literal .cz
literal .de
literal .edu
literal .es
literal .fr
literal .gov
literal .hr
literal .hu
literal .info
literal .it
literal .me
literal .mk
literal .mil
literal .net
literal .org
literal .rs
literal .ru
literal .se
literal .uk

literal .doc
literal .docx
literal .htm
literal .html
literal .mht
literal .pdf
literal .pps
literal .ppsx
literal .ppt
literal .rtf
literal .tex
literal .txt
literal .xls
literal .xlsx

literal .avi
literal .flac
literal .gif
literal .ico
literal .jpg
literal .mp3
literal .mp4
literal .ogg
literal .png
literal .vob
literal .wav
literal .wma

literal .7z
literal .arc
literal .arh
literal .gz
literal .gzip
literal .jar
literal .rar
literal .tar
literal .zip
literal .zipx


