# This table contains braille codes and rules for Gurumukhi script.
#
# Copyright (C) 2014 National Institute for Visually Handicapped, 116, Rajpur Road, Dehradun, Uttrakhand, India
#
# 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/>.

# This table is built and maintained under an activity of Braille Council of India
# Contributors: Dipendra Manocha, Sreeja, Dinesh Kaushal, Mesar Hameed
# Last updated on May 5, 2014
# To report any bugs or any suggestion, please write to d@saksham.org and sreeja.param@gmail.com
    
include braille-patterns.cti

# generated by ttbtest
 letter      \x0A01		3	# GURUMUKHI SIGN ADAK B1NDI
 letter      \x0A02	56	# GURUMUKHI SIGN BINDI
 letter      \x0A03	6	# GURUMUKHI SIGN VISARGA
 letter      \x0A05	1	# GURUMUKHI LETTER A = aira
 letter      \x0A06	345	# GURUMUKHI LETTER AA
 letter      \x0A07	24	# GURUMUKHI LETTER I
 letter      \x0A08	35	# GURUMUKHI LETTER II
 letter      \x0A09	136	# GURUMUKHI LETTER U
 letter      \x0A0A	1256	# GURUMUKHI LETTER UU
 letter      \x0A0F	15	# GURUMUKHI LETTER EE
 letter      \x0A10	34	# GURUMUKHI LETTER Al
 letter      \x0A13	135	# GURUMUKHI LETTER OO
 letter      \x0A14	246	# GURUMUKHI LETTER AU

 replace \X200D
# consonants 
 
 letter      \x0A15	13	# GURUMUKHI LETTER KA
 letter      \x0A16	24	# GURUMUKHI LETTER KHA
 letter      \x0A17	1245	# GURUMUKHI LETTER GA
 letter      \x0A18	126	# GURUMUKHI LETTER GHA
 letter      \x0A19	346	# GURUMUKHI LETTER NGA
 letter      \x0A1A	14	# GURUMUKHI LETTER CA
 letter      \x0A1B	16	# GURUMUKHI LETTER CHA
 letter      \x0A1C	245	# GURUMUKHI LETTER JA
 letter      \x0A1D	356	# GURUMUKHI LETTER JHA
 letter      \x0A1E	25	# GURUMUKHI LETTER NYA
 letter      \x0A1F	23456	# GURUMUKHI LETTER TTA
 letter      \x0A20	2456	# GURUMUKHI LETTER TTHA
 letter      \x0A21	1246	# GURUMUKHI LETTER DDA
 letter      \x0A22	123456	   # GURUMUKHI LETTER DDHA
 letter      \x0A23	3456	# GURUMUKHI LETTER NNA
 letter      \x0A24	2345	# GURUMUKHI LETTER TA
 letter      \x0A25	1456	# GURUMUKHI LETTER THA
 letter      \x0A26	145	# GURUMUKHI LETTER DA
 letter      \x0A27	2346	# GURUMUKHI LETTER DHA
 letter      \x0A28	1345	# GURUMUKHI LETTER NA
 letter      \x0A2A	1234	# GURUMUKHI LETTER PA
 letter      \x0A2B	235	# GURUMUKHI LETTER PHA
 letter      \x0A2C	12	# GURUMUKHI LETTER BA
 letter      \x0A2D	45	# GURUMUKHI LETTER BHA
 letter      \x0A2E	134	# GURUMUKHI LETTER MA
 letter      \x0A2F	13456	# GURUMUKHI LETTER YA
 letter      \x0A30	1235	# GURUMUKHI LETTER RA
 letter      \x0A32	123	# GURUMUKHI LETTER LA
 letter      \x0A33	456	# GURUMUKHI LETTER LLA =  0A32 AND 0A3C
 letter      \x0A35	1236	# GURUMUKHI LETTER VA
 letter      \x0A36	146	# GURUMUKHI LETTER SHA - 0A38 AND 0A3C
 letter      \x0A38	234	# GURUMUKHI LETTER SA
 letter      \x0A39	125	# GURUMUKHI LETTER HA
 
 # vowels 
 
 letter      \x0A3E	345	# GURUMUKHI VOWEL SIGN AA= kanna
 letter      \x0A3F	24	# GURUMUKHI VOWEL SIGN I= sihari stands to the left of the consonant
 letter      \x0A40	35	# GURUMUKHI VOWEL SIGN II = BIHARI
 letter      \x0A41	136	# GURUMUKHI VOWEL SIGN U = AUNKAR
 letter      \x0A42	1256	# GURUMUKHI VOWEL SIGN UU = DULAINKAR
 letter      \x0A47	15	# GURUMUKHI VOWEL SIGN EE
 letter      \x0A48	34	# GURUMUKHI VOWEL SIGN AI = DULAINKAR
 letter      \x0A4B	135	# GURUMUKHI VOWEL SIGN OO =HORA
 letter      \x0A4C	246	# GURUMUKHI VOWEL SIGN AU = KANAURA
 
letter      \x0A59		46	# GURUMUKHI LETTER KHHA= 0A16 AND 0A3C
letter      \x0A5B	245	# GURUMUKHI LETTER ZA = 0A1C AND 0A3C
 letter      \x0A5C	12456	# GURUMUKHI LETTER RRA
 letter      \x0A5E	235	# GURUMUKHI LETTER FA
 letter      \x0A64	256	RESERVED- 0964 #DEVANAGARI DANDA
 letter      \x0A65	256-256	RESERVED- 0965 # DEVANAGARI DOUBLE DANDA
 
 # Digits
 
 litdigit      \x0A66	245	# GURUMUKHI DIGIT ZERO
 litdigit      \x0A67	1	# GURUMUKHI DIGIT ONE
 litdigit      \x0A68	12	# GURUMUKHI DIGIT TWO
 litdigit      \x0A69	14	# GURUMUKHI DIGIT THREE
 litdigit      \x0A6A	145	# GURUMUKHI DIGIT FOUR
 litdigit      \x0A6B	15	# GURUMUKHI DIGIT FIVE
 litdigit      \x0A6C	124	# GURUMUKHI DIGIT SIX
 litdigit      \x0A6D	1245	# GURUMUKHI DIGIT SEVEN
 litdigit      \x0A6E	125	# GURUMUKHI DIGIT EIGHT
 litdigit      \x0A6F	24	# GURUMUKHI DIGIT NINE
 
 letter      \x0A70	56	# GURUMUKHI TIPPI  nasalization
 letter      \x0A71	4	# GURUMUKHI ADDAK  doubles following consonant
letter      \x0A74	3456-1-136	# GURUMUKHI EK ONKAR  God is One

  # half characters
   always      \x0A15\x0A71	4-13	# GURUMUKHI LETTER KA
 always      \x0A16\x0A71	4-24	# GURUMUKHI LETTER KHA
 always      \x0A17\x0A71	4-1245	# GURUMUKHI LETTER GA
 always      \x0A18\x0A71	4-126	# GURUMUKHI LETTER GHA
 always      \x0A19\x0A71	4-346	# GURUMUKHI LETTER NGA

 always      \x0A1A\x0A71	4-14	# GURUMUKHI LETTER CA
 always      \x0A1B\x0A71	4-16	# GURUMUKHI LETTER CHA
 always      \x0A1C\x0A71	4-245	# GURUMUKHI LETTER JA
 always      \x0A1D\x0A71	4-356	# GURUMUKHI LETTER JHA
 always      \x0A1E\x0A71	4-25	# GURUMUKHI LETTER NYA

 always      \x0A1F\x0A71	4-23456	# GURUMUKHI LETTER TTA
 always      \x0A20\x0A71	4-2456	# GURUMUKHI LETTER TTHA
 always      \x0A21\x0A71	4-1246	# GURUMUKHI LETTER DDA
 always      \x0A22\x0A71	4-123456	   # GURUMUKHI LETTER DDHA
 always      \x0A23\x0A71	4-3456	# GURUMUKHI LETTER NNA

 always      \x0A24\x0A71	4-2345	# GURUMUKHI LETTER TA
 always      \x0A25\x0A71	4-1456	# GURUMUKHI LETTER THA
 always      \x0A26\x0A71	4-145	# GURUMUKHI LETTER DA
 always      \x0A27\x0A71	4-2346	# GURUMUKHI LETTER DHA
 always      \x0A28\x0A71	4-1345	# GURUMUKHI LETTER NA

 always      \x0A2A\x0A71	4-1234	# GURUMUKHI LETTER PA
 always      \x0A2B\x0A71	4-235	# GURUMUKHI LETTER PHA
 always      \x0A2C\x0A71	4-12	# GURUMUKHI LETTER BA
 always      \x0A2D\x0A71	4-45	# GURUMUKHI LETTER BHA
 always      \x0A2E\x0A71	4-134	# GURUMUKHI LETTER MA

 always      \x0A2F\x0A71	4-13456	# GURUMUKHI LETTER YA
 always      \x0A30\x0A71	4-1235	# GURUMUKHI LETTER RA
 always      \x0A32\x0A71	4-123	# GURUMUKHI LETTER LA
 always      \x0A33\x0A71	4-456	# GURUMUKHI LETTER LLA =  0A32 AND 0A3C
 always      \x0A35\x0A71	4-1236	# GURUMUKHI LETTER VA
 always      \x0A36\x0A71	4-146	# GURUMUKHI LETTER SHA - 0A38 AND 0A3C
 always      \x0A38\x0A71	4-234	# GURUMUKHI LETTER SA
 always      \x0A39\x0A71	4-125	# GURUMUKHI LETTER HA

always      \x0A59\x0A71		4-46	# GURUMUKHI LETTER KHHA= 0A16 AND 0A3C
always      \x0A5B\x0A71	4-245	# GURUMUKHI LETTER ZA = 0A1C AND 0A3C
 always      \x0A5C\x0A71	4-12456	# GURUMUKHI LETTER RRA
 always      \x0A5E\x0A71	4-235	# GURUMUKHI LETTER FA
 always      \x0A64\x0A71	4-256	RESERVED- 0964 #DEVANAGARI DANDA
always        \x0A65\x0A71	4-256-256	RESERVED- 0965 # DEVANAGARI DOUBLE DANDA

# consonent followed by vowel but not matra

class GurumukiVowel \x0A07\x0A08\x0A09\x0A0A\x0A0F\x0A10\x0A13\x0A14
class Halant \x0A71

 before GurumukiVowel always      \x0A15 	  13-1	# GURUMUKHI LETTER KA
 before GurumukiVowel always      \x0A16 	  24-1	# GURUMUKHI LETTER KHA
 before GurumukiVowel always      \x0A17 	  1245-1	# GURUMUKHI LETTER GA
 before GurumukiVowel always      \x0A18 	  126-1	# GURUMUKHI LETTER GHA

 before GurumukiVowel always      \x0A1A 	  14-1	# GURUMUKHI LETTER CA
 before GurumukiVowel always      \x0A1B 	  16-1	# GURUMUKHI LETTER CHA
 before GurumukiVowel always      \x0A1C 	  245-1	# GURUMUKHI LETTER JA
 before GurumukiVowel always      \x0A1D 	  356-1	# GURUMUKHI LETTER JHA

 before GurumukiVowel always      \x0A1F 	  23456-1 	# GURUMUKHI LETTER TTA
 before GurumukiVowel always      \x0A20 	  2456-1	# GURUMUKHI LETTER TTHA
 before GurumukiVowel always      \x0A21 	  1246-1	# GURUMUKHI LETTER DDA
 before GurumukiVowel always      \x0A22 	  123456-1	   # GURUMUKHI LETTER DDHA
 before GurumukiVowel always      \x0A23 	  3456-1	# GURUMUKHI LETTER NNA

 before GurumukiVowel always      \x0A24 	  2345-1	# GURUMUKHI LETTER TA
 before GurumukiVowel always      \x0A25 	  1456-1	# GURUMUKHI LETTER THA
 before GurumukiVowel always      \x0A26 	  145-1	            # GURUMUKHI LETTER DA
 before GurumukiVowel always      \x0A27 	  2346-1	# GURUMUKHI LETTER DHA
 before GurumukiVowel always      \x0A28 	  1345-1	# GURUMUKHI LETTER NA

 before GurumukiVowel always      \x0A2A 	  1234-1	# GURUMUKHI LETTER PA
 before GurumukiVowel always      \x0A2B 	  235-1   	# GURUMUKHI LETTER PHA
 before GurumukiVowel always      \x0A2C 	  12-1	# GURUMUKHI LETTER BA
 before GurumukiVowel always      \x0A2D 	  45-1	# GURUMUKHI LETTER BHA
 before GurumukiVowel always      \x0A2E 	  134-1	# GURUMUKHI LETTER MA

 before GurumukiVowel always      \x0A2F 	  13456-1	# GURUMUKHI LETTER YA
 before GurumukiVowel always      \x0A30 	  1235-1	# GURUMUKHI LETTER RA
 before GurumukiVowel always      \x0A32 	  123-1	# GURUMUKHI LETTER LA
 before GurumukiVowel always      \x0A33 	  456-1	# GURUMUKHI LETTER LLA =  0A32 AND 0A3C
 before GurumukiVowel always      \x0A35 	  1236-1	# GURUMUKHI LETTER VA
 before GurumukiVowel always      \x0A36 	  146-1	# GURUMUKHI LETTER SHA - 0A38 AND 0A3C
 before GurumukiVowel always      \x0A38 	  234-1	# GURUMUKHI LETTER SA
 before GurumukiVowel always      \x0A39 	  125-1	# GURUMUKHI LETTER HA

before GurumukiVowel always      \x0A59 		  46-1	# GURUMUKHI LETTER KHHA= 0A16 AND 0A3C
before GurumukiVowel always      \x0A5B 	  245-1	# GURUMUKHI LETTER ZA = 0A1C AND 0A3C
 before GurumukiVowel always      \x0A5C 	  12456-1	# GURUMUKHI LETTER RRA
 before GurumukiVowel always      \x0A5E 	  235-1	# GURUMUKHI LETTER FA
 before GurumukiVowel always      \x0A64 	  256-1	RESERVED- 0964 #DEVANAGARI DANDA
before GurumukiVowel always        \x0A65 	  256-256-1	RESERVED- 0965 # DEVANAGARI DOUBLE DANDA
