# This table contains braille codes and rules for Telugu  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 3 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

replace \X200D
   
# vowels
letter   \x0C01	3	# TELUGU SIGN CANDRABINDU = arasunna
letter   \x0C02	56	# TELUGU SIGN ANUSVARA = SUNNA
letter   \x0C03	6	# TELUGU SIGN VISARGA
letter   \x0C05	1	# TELUGU LETTER A
letter   \x0C06	345	# TELUGU LETTER AA
letter   \x0C07	24	# TELUGU LETTER I
letter   \x0C08	35	# TELUGU LETTER II
letter   \x0C09	136	# TELUGU LETTER U
letter   \x0C0A	1256	# TELUGU LETTER UU
letter   \x0C0B	5-1235	# TELUGU LETTER VOCALIC R
letter   \x0C0E	26	# TELUGU LETTER E
letter   \x0C0F	15	# TELUGU LETTER EE
letter   \x0C10	34	# TELUGU LETTER AI
letter   \x0C12	1346	# TELUGU LETTER O
letter   \x0C13	135	# TELUGU LETTER OO
letter   \x0C14	246	# TELUGU LETTER AU

# consonants
letter   \x0C15	13	# TELUGU LETTER KA
letter   \x0C16	46	# TELUGU LETTER KHA
letter   \x0C17	1245	# TELUGU LETTER GA
letter   \x0C18	126	# TELUGU LETTER GHA
letter   \x0C19	346	# TELUGU LETTER NGA

letter   \x0C1A	14	# TELUGU LETTER CA
letter   \x0C1B	16	# TELUGU LETTER CHA
letter   \x0C1C	245	# TELUGU LETTER JA
letter   \x0C1D	356	# TELUGU LETTER JHA
letter   \x0C1E	25	# TELUGU LETTER NYA

letter   \x0C1F	23456	# TELUGU LETTER TTA
letter   \x0C20	2456	# TELUGU LETTER TTHA
letter   \x0C21	1246	# TELUGU LETTER DDA
letter   \x0C22	123456	# TELUGU LETTER DDHA
letter   \x0C23	3456	# TELUGU LETTER NNA

letter   \x0C24	2345	# TELUGU LETTER TA
letter   \x0C25	1456	# TELUGU LETTER THA
letter   \x0C26	145	# TELUGU LETTER DA
letter   \x0C27	2346	# TELUGU LETTER DHA
letter   \x0C28	1345	# TELUGU LETTER NA

letter   \x0C2A	1234	# TELUGU LETTER PA
letter   \x0C2B	235	# TELUGU LETTER PHA
letter   \x0C2C	12	# TELUGU LETTER BA
letter   \x0C2D	45	# TELUGU LETTER BHA
letter   \x0C2E	134	# TELUGU LETTER MA

letter   \x0C2F	13456	# TELUGU LETTER YA
letter   \x0C30	1235	# TELUGU LETTER RA
letter   \x0C31	12456	# TELUGU LETTER RRA
letter   \x0C32	123	# TELUGU LETTER LA
letter   \x0C33	456	# TELUGU LETTER LLA
letter   \x0C35	1236	# TELUGU LETTER VA
letter   \x0C36	146	# TELUGU LETTER SHA
letter   \x0C37	12346	# TELUGU LETTER SSA
letter   \x0C38	234	# TELUGU LETTER SA
letter   \x0C3E	345	# TELUGU VOWEL SIGN AA
letter   \x0C3F	24	# TELUGU VOWEL SIGN I
letter   \x0C40	35	# TELUGU VOWEL SIGN II
letter   \x0C41	136	# TELUGU VOWEL SIGN U
letter   \x0C42	1256	# TELUGU VOWEL UU

letter   \x0C43	5-1235	# TELUGU VOWEL SIGN VOCALIC R
letter   \x0C44	6-1235	# TELUGU VOWEL SIGN VOCALIC RR
letter   \x0C46	26	# TELUGU VOWEL SIGN E
letter   \x0C47	15	# TELUGU VOWEL SIGN EE
letter   \x0C48	34	# TELUGU VOWEL SIGN AI = 0C46 AND 0C56
letter   \x0C4A	1346	# TELUGU VOWEL SIGN O
letter   \x0C4B	135	# TELUGU VOWEL SIGN OO
letter   \x0C4C	246	# TELUGU VOWEL SIGN AU
letter   \x0C4D	4	# TELUGU SIGN VIRAMA= HALANT (THE PREFERRED NAME)

# Digits
litdigit   \x0C66	245	# TELUGU DIGIT ZERO
litdigit   \x0C67	1	# TELUGU DIGIT ONE
litdigit   \x0C68	12	# TELUGU DIGIT TWO
litdigit   \x0C69	14	# TELUGU DIGIT THREE
litdigit  \x0C6A	145	# TELUGU DIGIT FOUR
litdigit  \x0C6B	15	# TELUGU DIGIT FIVE
litdigit   \x0C6C	124	# TELUGU DIGIT SIX
litdigit  \x0C6D	1245	# TELUGU DIGIT SEVEN
litdigit   \x0C6E	125	# TELUGU DIGIT EIGHT
litdigit  \x0C6F	24	# TELUGU DIGIT NINE


# ksha and gya


always \x0C15\x0C4D\x0C37\x0C4D 4-12345 #ksha
always \x0C1C\x0c4d\x0C1E 156 # gya
always \x0C15\x0C4D\x0C37 12345 #ksha


# half characters

 	
  always   \x0C15\x0C4D 4-13	# TELUGU LETTER KA
  always   \x0C16\x0C4D	4-46	# TELUGU LETTER KHA
  always   \x0C17\x0C4D	 4-1245	# TELUGU LETTER GA
  always   \x0C18\x0C4D	 4-126	# TELUGU LETTER GHA
  always   \x0C19\x0C4D	 4-346	# TELUGU LETTER NGA

  always   \x0C1A\x0C4D	 4-14	# TELUGU LETTER CA
  always   \x0C1B\x0C4D	 4-16	# TELUGU LETTER CHA
  always   \x0C1C\x0C4D	 4-245	# TELUGU LETTER JA
  always   \x0C1D\x0C4D 4-356	# TELUGU LETTER JHA
  always   \x0C1E\x0C4D	 4-25	# TELUGU LETTER NYA

  always   \x0C1F\x0C4D	 4-23456	# TELUGU LETTER TTA
  always   \x0C20\x0C4D	4-2456	# TELUGU LETTER TTHA
  always   \x0C21\x0C4D	 4-1246	# TELUGU LETTER DDA
  always   \x0C22\x0C4D	 4-123456	# TELUGU LETTER DDHA
  always   \x0C23\x0C4D	 4-3456	# TELUGU LETTER NNA

  always   \x0C24\x0C4D	 4-2345	# TELUGU LETTER TA
  always   \x0C25\x0C4D	 4-1456	# TELUGU LETTER THA
  always   \x0C26\x0C4D	 4-145	# TELUGU LETTER DA
  always   \x0C27\x0C4D	 4-2346	# TELUGU LETTER DHA
  always   \x0C28\x0C4D	 4-1345	# TELUGU LETTER NA

  always   \x0C2A\x0C4D	 4-1234	# TELUGU LETTER PA
  always   \x0C2B\x0C4D	 4-235	# TELUGU LETTER PHA
  always   \x0C2C\x0C4D	 4-12	# TELUGU LETTER BA
  always   \x0C2D\x0C4D  4-45	# TELUGU LETTER BHA
  always   \x0C2E\x0C4D	 4-134	# TELUGU LETTER MA

  always   \x0C2F\x0C4D	 4-13456	# TELUGU LETTER YA
  always   \x0C30\x0C4D	 4-1235	# TELUGU LETTER RA
  always   \x0C31\x0C4D	 4-12456	# TELUGU LETTER RRA
  always   \x0C32\x0C4D	 4-123	# TELUGU LETTER LA
  always   \x0C33\x0C4D	 4-456	# TELUGU LETTER LLA
  always   \x0C35\x0C4D	 4-1236	# TELUGU LETTER VA
  always   \x0C36\x0C4D	 4-146	# TELUGU LETTER SHA
  always   \x0C37\x0C4D	 4-12346	# TELUGU LETTER SSA
  always   \x0C38\x0C4D	 4-234	# TELUGU LETTER SA
  always   \x0C3E\x0C4D	 4-345	# TELUGU VOWEL SIGN AA
  always   \x0C3F\x0C4D	 4-24	# TELUGU VOWEL SIGN I
  always   \x0C40\x0C4D	 4-35	# TELUGU VOWEL SIGN II
  always   \x0C41\x0C4D	 4-136	# TELUGU VOWEL SIGN U
  always   \x0C42\x0C4D	 4-1256	# TELUGU VOWEL UU

  always   \x0C43\x0C4D 4-5-1235 # TELUGU VOWEL SIGN VOCALIC R
  always   \x0C44\x0C4D	 4-6-1235 # TELUGU VOWEL SIGN VOCALIC RR
  always   \x0C46\x0C4D	 4-26	# TELUGU VOWEL SIGN E
  always   \x0C47\x0C4D	 4-15	# TELUGU VOWEL SIGN EE
  always   \x0C48\x0C4D	 4-34	# TELUGU VOWEL SIGN AI = 0C46 AND 0C56
  always   \x0C4A\x0C4D	 4-1346	# TELUGU VOWEL SIGN O
  always   \x0C4B\x0C4D	 4-135	# TELUGU VOWEL SIGN OO
  always   \x0C4C\x0C4D	 4-246	# TELUGU VOWEL SIGN AU

  # consonant followed by vowels not matra

class TeluguVowel \x0C07\x0C08\x0C09\x0C0A\x0C0B\x0C0E\x0C0F\x0C10\x0C12\x0C13\x0C14 
class halant \x0C4D
  before TeluguVowel always   \x0C15 	13-1	# TELUGU LETTER KA
  before TeluguVowel always   \x0C16	46-1	# TELUGU LETTER KHA
  before TeluguVowel always   \x0C17	1245-1	# TELUGU LETTER GA
  before TeluguVowel always   \x0C18	126-1	# TELUGU LETTER GHA
  before TeluguVowel always   \x0C19	346-1	# TELUGU LETTER NGA

  before TeluguVowel always   \x0C1A	14-1	# TELUGU LETTER CA
  before TeluguVowel always   \x0C1B	16-1	# TELUGU LETTER CHA
  before TeluguVowel always   \x0C1C	245-1	# TELUGU LETTER JA
  before TeluguVowel always   \x0C1D	356-1	# TELUGU LETTER JHA
  before TeluguVowel always   \x0C1E	25-1	# TELUGU LETTER NYA

  before TeluguVowel always   \x0C1F	23456-1	# TELUGU LETTER TTA
  before TeluguVowel always   \x0C20	2456-1	# TELUGU LETTER TTHA
  before TeluguVowel always   \x0C21	1246-1	# TELUGU LETTER DDA
  before TeluguVowel always   \x0C22	123456-1	# TELUGU LETTER DDHA
  before TeluguVowel always   \x0C23	3456-1	# TELUGU LETTER NNA

  before TeluguVowel always   \x0C24	2345-1	# TELUGU LETTER TA
  before TeluguVowel always   \x0C25	1456-1	# TELUGU LETTER THA
  before TeluguVowel always   \x0C26	145-1	# TELUGU LETTER DA
  before TeluguVowel always   \x0C27	2346-1	# TELUGU LETTER DHA
  before TeluguVowel always   \x0C28	1345-1	# TELUGU LETTER NA

  before TeluguVowel always   \x0C2A	1234-1	# TELUGU LETTER PA
  before TeluguVowel always   \x0C2B	235-1	# TELUGU LETTER PHA
  before TeluguVowel always   \x0C2C	12-1-1	# TELUGU LETTER BA
  before TeluguVowel always   \x0C2D	45-1	# TELUGU LETTER BHA
  before TeluguVowel always   \x0C2E	134-1	# TELUGU LETTER MA

  before TeluguVowel always   \x0C2F	13456-1	# TELUGU LETTER YA
  before TeluguVowel always   \x0C30	1235-1	# TELUGU LETTER RA
  before TeluguVowel always   \x0C31	12456-1	# TELUGU LETTER RRA
  before TeluguVowel always   \x0C32	123-1	# TELUGU LETTER LA
  before TeluguVowel always   \x0C33	456-1	# TELUGU LETTER LLA
  before TeluguVowel always   \x0C35	1236-1	# TELUGU LETTER VA
  before TeluguVowel always   \x0C36	146-1	# TELUGU LETTER SHA
  before TeluguVowel always   \x0C37	12346-1	# TELUGU LETTER SSA
  before TeluguVowel always   \x0C38	234-1	# TELUGU LETTER SA
  before TeluguVowel always   \x0C3E	345-1	# TELUGU VOWEL SIGN AA
  before TeluguVowel always   \x0C3F	24-1	# TELUGU VOWEL SIGN I
  before TeluguVowel always   \x0C40	35-1	# TELUGU VOWEL SIGN II
  before TeluguVowel always   \x0C41	136-1	# TELUGU VOWEL SIGN U
  before TeluguVowel always   \x0C42	1256-1	# TELUGU VOWEL UU

  before TeluguVowel always   \x0C43	5-1235-1	# TELUGU VOWEL SIGN VOCALIC R
  before TeluguVowel always   \x0C44	6-1235-1	# TELUGU VOWEL SIGN VOCALIC RR
  before TeluguVowel always   \x0C46	26-1	# TELUGU VOWEL SIGN E
  before TeluguVowel always   \x0C47	15-1	# TELUGU VOWEL SIGN EE
before TeluguVowel always   \x0C48\x0C4D	 34-1	# TELUGU VOWEL SIGN AI = 0C46 AND 0C56
before TeluguVowel always   \x0C4A\x0C4D	 1346-1	# TELUGU VOWEL SIGN O
before TeluguVowel always      \x0C4B\x0C4D	 135-1	# TELUGU VOWEL SIGN OO
before TeluguVowel always      \x0C4C\x0C4D	 246-1	# TELUGU VOWEL SIGN AU

