# liblouis: Polish literary Braille Table
#
#  Copyright (C) 2004-2008 ViewPlus Technologies, Inc. www.viewplus.com
#  Copyright (C) 2004-2006 JJB Software, Inc. www.jjb-software.com
#  Copyright (C) 2012 Mesar Hameed <mesar.hameed@gmail.com>
#  Copyright (C) 2019-2021 Łukasz Golonka <lukasz.golonka@mailbox.org>
#
#  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/>.

# Created by Leon Ungier <Leon.Ungier@ViewPlus.com>.
# Currently  maintained by Łukasz Golonka <lukasz.golonka@mailbox.org>

space \x00a0 a
include spaces.uti
include text_nabcc.dis

# ----------- define all chars --------------------------------------

punctuation ! 235			exclamation sign   						x0021
punctuation " 356			double quote									x0022
sign # 3456						number sign										x0023
sign $ 4-145						dollar sign										x0024
sign % 3456-245-356					percent sign									x0025
sign & 456-12346			ampersand											z0026
noback punctuation ' 3				apostrophe										x0027
nofor punctuation ' 4				apostrophe										x0027
punctuation ( 2356			left parenthesis						x0028
punctuation ) 2356			right parenthesis						x0029
sign * 35						asterisk										x002A
math + 235							plus												002B
punctuation , 2					coma												002C
punctuation - 36				hyphen-minus								002D
punctuation . 3					point												002E
math / 256						solidus											002F

punctuation : 25				colon								x003A
punctuation ; 23				semicolon						x003B
punctuation < 5-13			less-than sign			x003C
math = 2356			equal sign					x003D
math > 46-2			greater-than sign		x003E
punctuation ? 26				question mark				x003F
sign @ 345			commercial at				x0040

include latinLetterDef6Dots.uti

include digits6Dots.uti # Must come after letters.
include litdigits6Dots.uti # Must come after letters.

# all Polish diacritics must come before other symbols to make back-translation working.
# the letter a with ogonek -----------------------------------
lowercase \x0105 16

# the letter c with acute
lowercase \x0107 146

# the letter e with ogonek
lowercase \x0119 156

# the letter l with stroke
lowercase \x0142 126

# the letter n with acute
lowercase \x0144 1456

# the letter o with acute
lowercase \x00F3	346

# the letter s	with acute
# always	\x015A	246																	x015A
# always	\x015B	246
lowercase \x015B 246

# the letter z	with acute
# always	\x0179	2346																x0179
# always	\x017A	2346
lowercase \x017A 2346

# the letter z with dot above
# always	\x017B	12346																x017B
# always	\x017C	12346																x017C
lowercase \x017C 12346


punctuation [ 12356		left square bracket						x005B
sign \\ 34				reverse solidus								x005C
punctuation ] 23456		right square bracket					x005D
sign ^ 5				circumflex accent							x005E
sign _ 6				low line											x005F
sign ` 4				grave accent									x0060

# a - z								# 97 - 122								x0061-x007A

punctuation { 246				left curly bracket					x007B
sign | 56					vertical line								x007C
punctuation } 12456			right curly bracket					x007D
math ~ 256				tilde												x007E
sign \x0080 15-136-1235-135										x0080

sign ¢ 4-14				cent sign																			x00A2
sign £ 45-123			pound sign																		x00A3
sign ¤ 45-15			currency sign																	x00A4
sign ¥ 45-13456		yen	sign																			x00A5
sign § 346				section sign																	x00A7
sign © 2356-6-14-2356		copyright																x00A9
punctuation « 236				left-pointing double angle quotation 		x00AB
punctuation \x00AD 36 soft hyphen
sign ° 4-356			degree sign																		x00B0
sign ² 346-23		superscript 2 sign														x00B2
sign ³ 346-25		superscript 3 sign														x00B3
noback sign µ 56-134			micro sign																		x00B5
sign ¶ 4-1234-345 pilcrow sign (paragraph)											x00B6
sign ¹ 346-2				superscript 1 sign														x00B9
punctuation » 356			right-pointing double angle quotation		x00BB
math ¼ 3456-1-256		vulgar fraction one quarter								x00BC
math ½ 3456-1-23		vulgar fraction one half									x00BD
math ¾ 3456-14-256	vulgar fraction 3 quarters								x00BE

lowercase å 16					A with ring above											00E5
lowercase \x00E2 16					letter a with circumflex

lowercase \x00E0 12356	letter a with grave
lowercase \x00E1 12356			letter a with acute
lowercase \x00E3 126		letter a with tilde
lowercase ä 345				A with diaeresis											00E4
lowercase \x00E6 6-345	ae
lowercase ç 12346			letter c with cedilla									00E7
lowercase è 2346				e with grave													x00C8 / 00E8
lowercase \x00E9 123456		e with acute
lowercase \x00EA 126			e with circumflex
lowercase \x00EB 1246		e with diaeresis
lowercase \x00ED 34			i with acute
lowercase \x00EE 146		i with circumflex
lowercase \x00EF 12456	i with diaeresis

lowercase \x00F4 1456	o with circumflex
lowercase \x00F5 246		o with tilde
lowercase ö 246						O with diaeresis									00F6
math × 3				multiplication sign											x00D7
lowercase \x00F8 246		o with stroke

math ÷ 256				division sign										x00F7

lowercase \x00FA 23456			u with acute
lowercase \x00FB 156				u with circumflex
lowercase \x00FC 1256				u with diaeresis
lowercase \x00FD 12346			y with acute


punctuation	\x2010 36		 # 8208			hyphen
punctuation	\x2011 36		 # 8209			non-breaking hyphen
punctuation	\x2013 36		 # 8211			smart minus sign
noback punctuation \x2014 36
punctuation	\x2018 3		 # 8216			smart single left quotation mark
punctuation	\x2019 3		 # 8217			smart single right quotation mark

punctuation	\x201C 236	 # 8220			smart opening double quote
punctuation	\x201D 356	 # 8221			smart closing double quote
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

noback sign \x25CF 35-35	# 9679 black circle

# Uppercase letters
base uppercase \x0104 \x0105
base uppercase \x0106 \x0107
base uppercase \x0118 \x0119
base uppercase \x0141 \x0142
base uppercase \x0143 \x0144
base uppercase \x00D3 \x00F3
base uppercase \x015A \x015B
base uppercase \x0179 \x017A
base uppercase \x017B \x017C
base uppercase Å å				A with ring above											x00C5 / 00E5
base uppercase \x00C2 \x00E2	letter a with circumflex
base uppercase \x00C0 \x00E0	letter a with grave
base uppercase \x00C1 \x00E1	letter a with acute
base uppercase \x00C3 \x00E3	letter a with tilde
base uppercase Ä ä	A with diaeresis											x00C4 / 00E4
base uppercase \x00C6 \x00E6	ae
base uppercase Ç ç	letter c with cedilla									x00C7 / 00E7
base uppercase È è	e with grave													x00C8 / 00E8
base uppercase \x00C9 \x00E9	e with acute
base uppercase \x00CA \x00EA	e with circumflex
base uppercase \x00CB \x00EB	e with diaeresis
base uppercase \x00CD \x00ED	i with acute
base uppercase \x00CE \x00EE	i with circumflex
base uppercase \x00CF \x00EF	i with diaeresis
base uppercase \x00D4 \x00F4	o with circumflex
base uppercase \x00D5 \x00F5	o with tilde
base uppercase Ö ö	O with diaeresis									x00D6 / 00F6
base uppercase \x00D8 \x00F8	o with stroke
base uppercase \x00DA \x00FA	u with acute
base uppercase \x00DB \x00FB	u with circumflex
base uppercase \x00DC \x00FC	u with diaeresis
base uppercase \x00DD \x00FD	y with acute

# ------------------------------------------------------


capsletter 46			# single capital letter indicator
begcapsword 46-46			# a block of consecutive capital letters indicator

numsign 3456		#	number sign, just one operand
midnum , 2
midnum . 3

endnum # 56-3456

prepunc " 236
postpunc " 356

prepunc ' 6-236
postpunc ' 356-3
postpunc ''' 356-3-356

repeated *** 16-16-16

prepunc ` 6-236


repeated --- 36-36-36

repeated ___ 46-46-46

repeated ::: 25-25-25
repeated === 46-13-46-13-46-13
repeated ~~~ 4-156-4-156-4-156
always \s-\scom 36-36-14-135-134
always ... 3-3-3
always .\s.\s. 3-3-3 . . .

always \s­\s 36-36

# Greek letters

noback letter \x0391 456-1 # Α
noback letter \x0392 456-12 # Β
noback letter \x0393 456-1245 # Γ
noback letter \x0394 456-145 # Δ
noback letter \x0395 456-15 # Ε
noback letter \x0396 456-1356 # Ζ
noback letter \x0397 456-156 # Η
noback letter \x0398 456-1456 # Θ
noback letter \x0399 456-24 # Ι
noback letter \x039A 456-13 # Κ
noback letter \x039B 456-123 # Λ
noback letter \x039C 456-134 # Μ
noback letter \x039D 456-1345 # Ν
noback letter \x039E 456-1346 # Ξ
noback letter \x039F 456-135 # Ο
noback letter \x03A0 456-1234 # Π
noback letter \x03A1 456-1235 # Ρ
noback letter \x03A3 456-234 # Σ
noback letter \x03A4 456-2345 # Τ
noback letter \x03A5 456-136 # Υ
noback letter \x03A6 456-124 # Φ
noback letter \x03A7 456-12346 # Χ
noback letter \x03A8 456-13456 # Ψ
noback letter \x03A9 456-2456 # Ω

noback letter \x03B1 56-1 # α
noback letter \x03B2 56-12 # β
noback letter \x03B3 56-1245 # γ
noback letter \x03B4 56-145 # δ
noback letter \x03B5 56-15 # ε
noback letter \x03B6 56-1356 # ζ
noback letter \x03B7 56-156 # η
noback letter \x03B8 56-1456 # θ
noback letter \x03B9 56-24 # ι
noback letter \x03BA 56-13 # κ
noback letter \x03BB 56-123 # λ
noback letter \x03BC 56-134 # μ
noback letter \x03BD 56-1345 # ν
noback letter \x03BE 56-1346 # ξ
noback letter \x03BF 56-135 # ο
noback letter \x03C0 56-1234 # π
noback letter \x03C1 56-1235 # ρ
noback letter \x03C2 56-234 # ς
noback letter \x03C3 56-234
noback letter \x03C4 56-2345 # τ
noback letter \x03C5 56-136 # υ
noback letter \x03C6 56-124 # φ
noback letter \x03C7 56-12346 # χ
noback letter \x03C8 56-13456 # ψ
noback letter \x03C9 56-2456 # ω

# Arrows:

noback sign \x2192 25-135
noback sign \x2190 246-25


noback sign \x2264 246-2356 # Less than or equal to
noback sign \x2265 135-2356 #  Greater than or equal to

# Unicode minus symbol
noback sign \x2212 36
