# liblouis: Uncontracted multi-language braille table for Hebrew, Arabic and English (Israel).
#
# Copyright (C) 2020 by BAUM Engineering <liblouis@baum.ro>
# Copyright (C) 2020 by TSR Gaash, Inc. <www.tsr-gaash.com>
#
# 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/>.

#-index-name: Hebrew, Israel
#-display-name: Israeli braille

#+language: he
#+language: ar
#+language: en
#+region:mul-IL
#+type: literary
#+dots: 6
#+contraction: no
#+grade: 1
# Marked as "direction:forward" by Bue Vester-Andersen
# as tests only run forward.
#+direction:forward

# This table was created by Erez Kugler from TSR Gaash, Inc. with the
# assistance of BAUM Engineering.

#-license: LGPLv2.1
#-author: BAUM Engineering <liblouis@baum.ro>
#-author: Erez Kugler <erez@tsr-gaash.com>

# The 4 most used languages in Israel are Hebrew, Arabic, Russian and
# English. This table supports 3 of them: Hebrew, Arabic and
# English. The native braille codes of these languages differ in how
# they treat certain punctuation marks etc. The library for the blind
# and the ministry of education sat together in 2016 and decided how
# to combine the 3 languages in a single braille code. This table is
# the result of their decision.

# Refer to World Braille Usage (3rd edition), page 74
# <http://liblouis.io/braille-specs/world-braille-usage-third-edition.pdf>
# and <http://liblouis.io/braille-specs/hebrew>.

# Braille indicators
numsign 3456  number sign, just a dots operand

capsletter 6
begcapsword 6-6
endcapsword 6-3

# literary forms of the decimal digits
include litdigits6Dots.uti

# display/passthrough for unicode braille
include braille-patterns.cti

# punctuation
prepunc ( 2356
postpunc ) 2356
prepunc [ 6-2356
postpunc ] 2356-3
prepunc { 12346
postpunc } 13456
prepunc " 236
postpunc " 356
prepunc ` 6-236
prepunc ' 6-236
postpunc ' 356-3
begnum # 456-1456
punctuation , 2
decpoint . 46
postpunc . 256
punctuation ; 23
punctuation : 25
punctuation ! 235
math < 25-246
math > 135-25
punctuation ? 26
endnum st 34
endnum nd 1345-145
endnum rd 1235-145
endnum th 1456
endnum 's 3-234
always % 25-1234
sign ^ 45
midnum * 4-16
sign * 35-35
sign @ 4
sign \\ 1256

include en-chardefs.cti All character definition opcodes

# Single quote is defined in chardefs.
word ' 4-3
word 'em =
word 'tis =
word 'twas =

# Additional fixes for hebrew letters with dagesh
# if the dagesh dot is typed as a separate element.
word כּ 13 # Hebrew letter PE with dagesh as a separate dot.
word פּ 1234 # Hebrew letter KAF with dagesh as a separate dot.
word בּ 12 # Hebrew letter BET with dagesh as a separate dot.
word שׂ 156 # Hebrew letter SHIN with SIN as a separate dot.

# HEBREW
letter	\xfb1d	35	# HEBREW LETTER YOD WITH HIRIQ
letter	\xfb2a	146	# HEBREW LETTER SHIN WITH SHIN DOT
letter	\xfb2b	156	# HEBREW LETTER SHIN WITH SIN DOT
letter	\xfb31	12	# HEBREW LETTER BET WITH DAGESH
letter	\xfb35	346	# HEBREW LETTER VAV WITH DAGESH
letter	\xfb3a	13	# HEBREW LETTER FINAL KAF WITH DAGESH
letter	\xfb3b	13	# HEBREW LETTER KAF WITH DAGESH
letter	\xfb43	1234	# HEBREW LETTER FINAL PE WITH DAGESH
letter	\xfb44	1234	# HEBREW LETTER PE WITH DAGESH
letter	\xfb4a	1256	# HEBREW LETTER TAV WITH DAGESH
punctuation	\x05b0	3	 # HEBREW POINT SHEVA
punctuation	\x05b1	26	 # HEBREW POINT HATAF SEGOL
punctuation	\x05b2	25	 # HEBREW POINT HATAF PATAH
punctuation	\x05b3	345	 # HEBREW POINT HATAF QAMATS
punctuation	\x05b4	24	 # HEBREW POINT HIRIQ
punctuation	\x05b5	34	 # HEBREW POINT TSERE
punctuation	\x05b6	15	 # HEBREW POINT SEGOL
punctuation	\x05b7	14	 # HEBREW POINT PATAH
punctuation	\x05b8	126	 # HEBREW POINT QAMATS
punctuation	\x05b9	135	 # HEBREW POINT HOLAM
punctuation	\x05ba	246	 # HEBREW POINT HOLAM HASER
punctuation	\x05bb	346	 # HEBREW POINT QUBUTS
punctuation	\x05bc	5	 # HEBREW POINT DAGESH
letter	\x05d0	1	 # HEBREW LETTER ALEF
letter	\x05d1	1236	 # HEBREW LETTER BET
letter	\x05d2	1245	 # HEBREW LETTER GIMEL
letter	\x05d3	145	 # HEBREW LETTER DALET
letter	\x05d4	125	 # HEBREW LETTER HE
letter	\x05d5	2456	 # HEBREW LETTER VAV
letter	\x05d6	1356	 # HEBREW LETTER ZAYIN
letter	\x05d7	1346	 # HEBREW LETTER HET
letter	\x05d8	2345	 # HEBREW LETTER TET
letter	\x05d9	245	 # HEBREW LETTER YOD
letter	\x05da	16	 # HEBREW LETTER FINAL KAF
letter	\x05db	16	 # HEBREW LETTER KAF
letter	\x05dc	123	 # HEBREW LETTER LAMED
letter	\x05dd	134	 # HEBREW LETTER FINAL MEM
letter	\x05de	134	 # HEBREW LETTER MEM
letter	\x05df	1345	 # HEBREW LETTER FINAL NUN
letter	\x05e0	1345	 # HEBREW LETTER NUN
letter	\x05e1	234	# HEBREW LETTER SAMEKH
letter	\x05e2	1246	# HEBREW LETTER AYIN
letter	\x05e3	124	# HEBREW LETTER FINAL PE
letter	\x05e4	124	# HEBREW LETTER PE
letter	\x05e5	2346	# HEBREW LETTER FINAL TSADI
letter	\x05e6	2346	# HEBREW LETTER TSADI
letter	\x05e7	12345	# HEBREW LETTER QOF
letter	\x05e8	1235	# HEBREW LETTER RESH
letter	\x05e9	146	# HEBREW LETTER SHIN
letter	\x05ea	1456	# HEBREW LETTER TAV

# ARABIC
letter	\x060C	5	 arabic comma
letter	\x061B	56	 arabic semicolon
letter	\x061F	236	 arabic question
letter	\x0621	3	 arabic hamza isolated
letter	\x0622	345	 arabic alef madda above
letter	\x0623	34	 arabic alef hamza above
letter	\x0624	1256	 arabic waw hamza above
letter	\x0625	46	 arabic alef hamza below
letter	\x0626	13456	 arabic yeh hamza above
letter	\x0627	1	 arabic alef
letter	\x0628	12	 arabic beh
letter	\x0629	16	 arabic teh marbuta
letter	\x062A	2345	 arabic teh
letter	\x062B	1456	 arabic theh
letter	\x062C	245	 arabic jeem
letter	\x062D	156	 arabic hah
letter	\x062E	1346	 arabic khah
letter	\x062F	145	 arabic dal
letter	\x0630	2346	 arabic thal
letter	\x0631	1235	 arabic reh
letter	\x0632	1356	 arabic zain
letter	\x0633	234	 arabic seen
letter	\x0634	146	 arabic sheen
letter	\x0635	12346	 arabic sad
letter	\x0636	1246	 arabic dad
letter	\x0637	23456	 arabic tah
letter	\x0638	123456	 arabic zah
letter	\x0639	12356	 arabic ain
letter	\x063A	126	 arabic ghain
letter	\x0641	124	 arabic feh
letter	\x0642	12345	 arabic qaf
letter	\x0643	13	 arabic kaf
letter	\x0644	123	 arabic lam
letter	\x0645	134	 arabic meem
letter	\x0646	1345	 arabic noon
letter	\x0647	125	 arabic heh
letter	\x0648	2456	 arabic waw
letter	\x0649	135	 arabic alef maksura
letter	\x064A	24	 arabic yeh
letter	\x064B	23	 arabic fathatan
letter	\x064C	26	 arabic dammatan
letter	\x064D	35	 arabic kasratan
letter	\x064E	2	 arabic fatha
letter	\x064F	136	 arabic damma
letter	\x0650	15	 arabic kasra
letter	\x0651	6	 arabic shadda
letter	\x0652	25	 arabic sukun
digit	\x0660	245	 arabic indic zero
digit	\x0661	1	 arabic indic one
digit	\x0662	12	 arabic indic two
digit	\x0663	14	 arabic indic three
digit	\x0664	145	 arabic indic four
digit	\x0665	15	 arabic indic five
digit	\x0666	124	 arabic indic six
digit	\x0667	1245	 arabic indic seven
digit	\x0668	125	 arabic indic eight
digit	\x0669	24	 arabic indic nine
letter	\x06BE	125	 arabic heh doachashmee
letter	\x06CC	24	 arabic farsi yeh
letter	\x07DD	16
letter	\x2CC1	26
letter	\x2D35	34
letter	\x38F4	345
letter	\x38FE	24
letter	\x3908	34
letter	\x3912	15
letter	\x391C	14
letter	\x3926	126
letter	\x3939	146
letter	\x3994	156
letter	\x3D73	34
letter	\x3D86	1
letter	\x53E1	135
letter	\xA1FC	5
letter	\xFB20	1246
letter	\xFB2A	146
letter	\xFB2B	156
letter	\xFB2C	146
letter	\xFB2D	156
letter	\xFB2E	1
letter	\xFB2F	1
letter	\xFB30	1
letter	\xFB31	12
letter	\xFB32	1245
letter	\xFB33	145
letter	\xFB34	125
letter	\xFB35	346
letter	\xFB36	1356
letter	\xFB38	2345
letter	\xFB39	245
letter	\xFB3A	13
letter	\xFB3B	13
letter	\xFB3C	123
letter	\xFB3E	134
letter	\xFB40	1345
letter	\xFB41	234
letter	\xFB43	1234
letter	\xFB44	1234
letter	\xFB46	2346
letter	\xFB47	12345
letter	\xFB48	1235
letter	\xFB49	146
letter	\xFB4A	1456
letter	\xFB4B	135
letter	\xFB4C	1236
letter	\xFB4D	16
letter	\xFB4E	124
letter	\xFBAB	125
letter	\xFBAD	125
letter	\xFBFE	24
letter	\xFBFF	24
letter	\xFE76	2
letter	\xFE80	1236
letter	\xFE81	345
letter	\xFE82	345
letter	\xFE83	34
letter	\xFE84	34
letter	\xFE85	1256
letter	\xFE86	1256
letter	\xFE87	34
letter	\xFE88	34
letter	\xFE89	13456
letter	\xFE8A	13456
letter	\xFE8B	13456
letter	\xFE8C	13456
letter	\xFE8D	1
letter	\xFE8E	1
letter	\xFE8F	12
letter	\xFE90	12
letter	\xFE91	12
letter	\xFE92	12
letter	\xFE93	16
letter	\xFE94	16
letter	\xFE95	2345
letter	\xFE96	2345
letter	\xFE97	2345
letter	\xFE98	2345
letter	\xFE99	1456
letter	\xFE9A	1456
letter	\xFE9B	1456
letter	\xFE9C	1456
letter	\xFE9D	245
letter	\xFE9E	245
letter	\xFE9F	245
letter	\xFEA0	245
letter	\xFEA1	156
letter	\xFEA2	156
letter	\xFEA3	156
letter	\xFEA4	156
letter	\xFEA5	1346
letter	\xFEA6	1346
letter	\xFEA7	1346
letter	\xFEA8	1346
letter	\xFEA9	145
letter	\xFEAA	145
letter	\xFEAB	2346
letter	\xFEAC	2346
letter	\xFEAD	1235
letter	\xFEAE	1235
letter	\xFEAF	1356
letter	\xFEB0	1356
letter	\xFEB1	234
letter	\xFEB2	234
letter	\xFEB3	234
letter	\xFEB4	234
letter	\xFEB5	146
letter	\xFEB6	146
letter	\xFEB7	146
letter	\xFEB8	146
letter	\xFEB9	12346
letter	\xFEBA	12346
letter	\xFEBB	12346
letter	\xFEBC	12346
letter	\xFEBD	1246
letter	\xFEBE	1246
letter	\xFEBF	1246
letter	\xFEC0	1246
letter	\xFEC1	23456
letter	\xFEC2	23456
letter	\xFEC3	23456
letter	\xFEC4	23456
letter	\xFEC5	123456
letter	\xFEC6	123456
letter	\xFEC7	123456
letter	\xFEC8	123456
letter	\xFEC9	12356
letter	\xFECA	12356
letter	\xFECB	12356
letter	\xFECC	12356
letter	\xFECD	126
letter	\xFECE	126
letter	\xFECF	126
letter	\xFED0	126
letter	\xFED1	124
letter	\xFED2	124
letter	\xFED3	124
letter	\xFED4	124
letter	\xFED5	12345
letter	\xFED6	12345
letter	\xFED7	12345
letter	\xFED8	12345
letter	\xFED9	13
letter	\xFEDA	13
letter	\xFEDB	13
letter	\xFEDC	13
letter	\xFEDD	123
letter	\xFEDE	123
letter	\xFEDF	123
letter	\xFEE0	123
letter	\xFEE1	134
letter	\xFEE2	134
letter	\xFEE3	134
letter	\xFEE4	134
letter	\xFEE5	1345
letter	\xFEE6	1345
letter	\xFEE7	1345
letter	\xFEE8	1345
letter	\xFEE9	125
letter	\xFEEA	125
letter	\xFEEB	125
letter	\xFEEC	125
letter	\xFEED	2456
letter	\xFEEE	2456
letter	\xFEEF	135
letter	\xFEF0	135
letter	\xFEF1	24
letter	\xFEF2	24
letter	\xFEF3	24
letter	\xFEF4	24
letter	\xFEF5	1236
letter	\xFEF6	1236
letter	\xFEF7	1236
letter	\xFEF8	1236
letter	\xFEF9	1236
letter	\xFEFA	1236
letter	\xFEFB	1236
