;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;                                                                             ;;
;;;  Lexical Analysis: lexical lookup, letter-to-sound rules (words to phones)  ;;
;;;                                                                             ;;
;;;  Copyright (c) 2005, Chaitanya Kamisetty <chaitanya@atc.tcs.co.in>          ;;
;;;  										;;
;;;  Copyright (c) 2006, Priti Patil, janabhaaratii, C-DAC, Mumbai              ;;
;;;                     <prithisd@cdacmumbai.in>, <prithisd@gmail.com>          ;;
;;;  										;;
;;;  This program is a part of festival-hi.					;;
;;;  										;;
;;;  festival-hi is free software; you can redistribute it and/or modify        ;;
;;;  it under the terms of the GNU General Public License as published by	;;
;;;  the Free Software Foundation; either version 2 of the License, or		;;
;;;  (at your option) any later version.					;;
;;;										;;
;;;  This program 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 General Public License for more details.				;;
;;;										;;
;;;  You should have received a copy of the GNU General Public License		;;
;;;  along with this program; if not, write to the Free Software		;;
;;;  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA  ;;
;;;										;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(define (hindi_addenda)
  "(hindi_addenda)
Basic lexicon should (must ?) basic letters and punctuation."
;; Basic punctuation must be in with nil pronunciation
(lex.add.entry '("'" punc nil))
(lex.add.entry '(":" punc nil))
(lex.add.entry '(";" punc nil))
(lex.add.entry '("," punc nil))
(lex.add.entry '("." punc nil))
(lex.add.entry '("-" punc nil))
(lex.add.entry '("\"" punc nil))
(lex.add.entry '("`" punc nil))
(lex.add.entry '("?" punc nil))
(lex.add.entry '("!" punc nil))
(lex.add.entry '("(" punc nil))
(lex.add.entry '(")" punc nil))
(lex.add.entry '("{" punc nil))
(lex.add.entry '("}" punc nil))
(lex.add.entry '("[" punc nil))
(lex.add.entry '("]" punc nil))
)

(lts.ruleset
 hindi
  ( 
	; Matras can be formed by (OCT340 OCT244 MAT1 )  and (OCT340 OCT245 MAT2)
	( OCT340 à ) 
	( OCT244 ¤ )
	( OCT245 ¥ )
	( MAT1 ¾ ¿ )
	( MAT2 € � ‚ ƒ „ … † ‡ ˆ ‰ Š ‹ Œ � ¼ ½ ¾ ¿ ¢ £ )
  )
  (
;; single vowels
( [ à ¤ … ] = a ) ;hindi letter A 
( [ à ¤ † ] = aa ) ;hindi letter AA
( [ à ¤ ‡ ] = ih ) ;hindi letter I
( [ à ¤ ˆ ] = iy ) ;hindi letter II
( [ à ¤ ‰ ] = uh ) ;hindi letter U
( [ à ¤ Š ] = uw ) ;hindi letter UU 
( [ à ¤ ‹ ] = r uh ) ;hindi letter vocalic R 
( [ à ¥   ]  = r uw ) ;hindi letter vocalic RR 
([ à ¤ Œ ] =  l uh ) ; hindi letter vocalic L (using 'lu' sound)
([ à ¥ ¡ ] = l uw ) ; hindi letter vocalic LL (uinsg 'luu' sound)
( [ à ¤ � ] = eh ) ;U+090D hindi letter chandra E
( [ à ¤ Ž  ] = ay ) ;U+090E DEVANAGARI LETTER SHORT E (for transcribing Dravidian short e)
( [ à ¤ � ] = eh ) ;hindi letter E
;( [ à ° � ] = ee ) ;no hindi letter EE
( [ à ¤ � ] = ay ) ;hindi letter AI
( [ à ¤ ‘ ] = oo ) ;U+0911 DEVANAGARI LETTER CANDRA O
( [ à ¤ “ ] = oh )  ;hindi letter O 
( [ à ° ’ ] = oh )  ;U+0912 DEVANAGARI LETTER SHORT O 
( [ à ¤ ” ] = aw ) ;hindi letter AU
( [ à ¤ ‚ ]  = m ) ;hindi sign anusvara (sunna) (using 'ma' sound)
([ à ¤ ƒ ] = h a ) ;hindi sign visarga (using 'ha' sound)
;; consonants in half forms i.e. consonant + halant
( [ à ¤ • à ¥ � ]  = k ) ;hindi letter K
( [ à ¥ ˜ à ¥ � ]  = k ) ;U+0958 DEVANAGARI LETTER QA ( U+0915 DEVANAGARI LETTER KA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ – à ¥ � ] = kh ) ;hindi letter KH
( [ à ¥ ™ à ¥ � ]  = kh ) ;U+0959 DEVANAGARI LETTER KHHA (U+0916 DEVANAGARI LETTER KHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ — à ¥ � ] = g ) ;hindi letter G
( [ à ¥ š à ¥ � ]  = g ) ;U+095A DEVANAGARI LETTER GHHA (U+0917 DEVANAGARI LETTER GA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ˜ à ¥ � ] = g h ) ;hindi letter GH
( [ à ¤ ™ à ¥ � ] = n y ) ;hindi letter NG
( [ à ¤ š à ¥ � ] = ch ) ;hindi letter C
( [ à ¤ › à ¥ � ] = ch h )	;hindi letter CH 
( [ à ¤ œ à ¥ � ] = j ) ;hindi letter J
( [ à ¥ › à ¥ � ]  = j ) ;U+095B DEVANAGARI LETTER ZA ( U+091C DEVANAGARI LETTER JA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ � à ¥ � ] = j h )	;hindi letter JH (missing in phoneset)
( [ à ¤ ž à ¥ � ] = eh n eh )	;hindi letter NY (missing in phoneset)
( [ à ¤ Ÿ à ¥ � ] = T ) ;hindi letter TT
( [ à ¤   à ¥ � ] = T h )	;hindi letter TTH (missing in phoneset)
( [ à ¤ ¡ à ¥ � ] = D ) ;hindi letter DD
( [ à ¥ œ à ¥ � ]  = D ) ;U+095C DEVANAGARI LETTER DDDHA (U+0921 DEVANAGARI LETTER DDA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ¢ à ¥ � ] = D h ) ;hindi letter DDH (missing in phoneset)
( [ à ¥ � à ¥ � ]  = D h) ;U+095D DEVANAGARI LETTER RHA (U+0922 DEVANAGARI LETTER DDHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ £ à ¥ � ] = N ) ;hindi letter NN (missing in phoneset)
( [ à ¤ ¤ à ¥ � ] = th )	;hindi letter T (missing in phoneset)
( [ à ¤ ¥ à ¥ � ] = tth ) ;hindi letter TH
( [ à ¤ ¦ à ¥ � ] = dh )	;hindi letter D (missing in phoneset)
( [ à ¤ § à ¥ � ] = ddh )	;hindi letter DH
( [ à ¤ ¨ à ¥ � ] = n ) ;hindi letter N
( [ à ¤ © à ¥ � ] = n ) ;half hindi letter NNNA (U+0928 DEVANAGARI LETTER NA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ª à ¥ � ] = p ) ;hindi letter P
( [ à ¤ « à ¥ � ] = f ) ;hindi letter PH
( [ à ¥ ž à ¥ � ]  = f ) ;U+095E DEVANAGARI LETTER FA (U+092B DEVANAGARI LETTER PHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ¬ à ¥ � ] = b ) ;hindi letter B
( [ à ¤ ­ à ¥ � ] = bh ) ;hindi letter BH
( [ à ¤ ® à ¥ � ] = m ) ;hindi letter M
( [ à ¤ ¯ à ¥ � ] = y ) ;hindi letter Y
( [ à ¥ Ÿ à ¥ � ]  = y ) ;U+095F DEVANAGARI LETTER YYA (U+092F DEVANAGARI LETTER YA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ° à ¥ � ] = r ) ;hindi letter R
( [ à ¤ ± à ¥ � ] = r ) ;half hindi letter U+0931 RRA ( U+0930 DEVANAGARI LETTER RA + U+093C DEVANAGARI SIGN NUKTA)  for transcribing Dravidian alveolar r and half form is represented as "Eyelash RA"
( [ à ¤ ² à ¥ � ] = l ) ;hindi letter L 
( [ à ¤ ³ à ¥ � ] = L ) ;hindi letter LL
( [ à ¤ ´ à ¥ � ] = L ) ;half hindi letter LLLA, U+0934 DEVANAGARI LETTER LLLA (U+0933 DEVANAGARI LETTER LLA + U+093C DEVANAGARI SIGN NUKTA) for transcribing Dravidian l
( [ à ¤ µ à ¥ � ] = v ) ;hindi letter V
( [ à ¤ ¶ à ¥ � ] = sh ) ;hindi letter SH
( [ à ¤ · à ¥ � ] = sh h ) ;hindi letter SS
( [ à ¤ ¸ à ¥ � ] = s ) ;hindi letter S (missing in phoneset)
( [ à ¤ ¹ à ¥ � ] = h ) ;hindi letter H
;;consonants occuring as vattulu
;; matches the regex [consonant]{consonant}
( [ à ¤ • ]  OCT340 OCT244 MAT1  =  k ) ;hindi letter K
( [ à ¥ ˜ ]  OCT340 OCT244 MAT1  =  k ) ;hindi letter K U+0958 DEVANAGARI LETTER QA ( U+0915 DEVANAGARI LETTER KA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ – ]  OCT340 OCT244 MAT1 = kh ) ;hindi letter KH
( [ à ¥ ™ ]  OCT340 OCT244 MAT1 = kh ) ;hindi letter KH U+0959 DEVANAGARI LETTER KHHA (U+0916 DEVANAGARI LETTER KHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ — ]   OCT340 OCT244 MAT1 = g ) ;hindi letter G
( [ à ¥ š ]   OCT340 OCT244 MAT1 = g ) ;hindi letter G U+095A DEVANAGARI LETTER GHHA (U+0917 DEVANAGARI LETTER GA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ˜ ]   OCT340 OCT244 MAT1 = g h ) ;hindi letter GH
( [ à ¤ ™ ]  OCT340 OCT244 MAT1 = n y ) ;hindi letter NG
( [ à ¤ š ]   OCT340 OCT244 MAT1 = ch ) ;hindi letter C
( [ à ¤ › ]  OCT340 OCT244 MAT1  = ch h ) ;hindi letter CH
( [ à ¤ œ ]  OCT340 OCT244 MAT1  = j ) ;hindi letter J
( [ à ¥ › ]  OCT340 OCT244 MAT1  = j ) ;hindi letter J U+095B DEVANAGARI LETTER ZA ( U+091C DEVANAGARI LETTER JA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ � ]   OCT340 OCT244 MAT1 = j h ) ;hindi letter JH
( [ à ¤ ž ]   OCT340 OCT244 MAT1 = eh n eh ) ;hindi letter NY
( [ à ¤ Ÿ ]   OCT340 OCT244 MAT1 = T ) ;hindi letter TT
( [ à ¤   ]   OCT340 OCT244 MAT1 = T h ) ;hindi letter TTH
( [ à ¤ ¡ ]   OCT340 OCT244 MAT1 = D ) ;hindi letter DD 
( [ à ¥ œ ]   OCT340 OCT244 MAT1 = D ) ;hindi letter DD U+095C DEVANAGARI LETTER DDDHA (U+0921 DEVANAGARI LETTER DDA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ¢ ]   OCT340 OCT244 MAT1 = D h ) ;hindi letter DDH 
( [ à ¥ � ]   OCT340 OCT244 MAT1 = D h ) ;hindi letter DDH U+095D DEVANAGARI LETTER RHA (U+0922 DEVANAGARI LETTER DDHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ £ ]   OCT340 OCT244 MAT1 = N ) ;hindi letter NN
( [ à ¤ ¤ ]   OCT340 OCT244 MAT1 = th ) ;hindi letter T
( [ à ¤ ¥ ]  OCT340 OCT244 MAT1  = tth ) ;hindi letter TH
( [ à ¤ ¦ ]   OCT340 OCT244 MAT1 = dh ) ;hindi letter D
( [ à ¤ § ]   OCT340 OCT244 MAT1 = ddh ) ;hindi letter DH
( [ à ¤ ¨ ]   OCT340 OCT244 MAT1 = n ) ;hindi letter N
( [ à ¤ © ]   OCT340 OCT244 MAT1 = n ) ;hindi letter N
( [ à ¤ ª ]   OCT340 OCT244 MAT1 = p ) ;hindi letter P
( [ à ¤ « ]   OCT340 OCT244 MAT1 = f ) ;hindi letter PH 
( [ à ¥ ž ]   OCT340 OCT244 MAT1 = f ) ;hindi letter PH U+095F DEVANAGARI LETTER YYA (U+092F DEVANAGARI LETTER YA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ¬ ]   OCT340 OCT244 MAT1 = b ) ;hindi letter B
( [ à ¤ ­ ]   OCT340 OCT244 MAT1 = bh ) ;hindi letter BH
( [ à ¤ ® ]   OCT340 OCT244 MAT1 = m ) ;hindi letter M
( [ à ¤ ¯ ]   OCT340 OCT244 MAT1 = y ) ;hindi letter Y 
( [ à ¥ Ÿ ]   OCT340 OCT244 MAT1 = y ) ;hindi letter Y U+095F DEVANAGARI LETTER YYA (U+092F DEVANAGARI LETTER YA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ° ]   OCT340 OCT244 MAT1 = r ) ;hindi letter R
( [ à ¤ ± ] OCT340 OCT244 MAT1 = r ) ;hindi letter RR
( [ à ¤ ² ]  OCT340 OCT244 MAT1  = l) ;hindi letter L
( [ à ¤ ³ ]   OCT340 OCT244 MAT1 = L ) ;hindi letter LL
( [ à ¤ ³ ]   OCT340 OCT244 MAT1 = L ) ;hindi letter LLLA, U+0934 DEVANAGARI LETTER LLLA (U+0933 DEVANAGARI LETTER LLA + U+093C DEVANAGARI SIGN NUKTA) for transcribing Dravidian l
( [ à ¤ µ ]   OCT340 OCT244 MAT1 = v ) ;hindi letter V
( [ à ¤ ¶ ]   OCT340 OCT244 MAT1 = sh ) ;hindi letter SH
( [ à ¤ · ]   OCT340 OCT244 MAT1 = sh h ) ;hindi letter SS
( [ à ¤ ¸ ]   OCT340 OCT244 MAT1 = s ) ;hindi letter S
( [ à ¤ ¹ ]   OCT340 OCT244 MAT1 = h ) ;hindi letter H
( [ à ¤ • ]   OCT340 OCT245 MAT2  =  k ) ;hindi letter K
( [ à ¥ ˜ ]  OCT340 OCT245 MAT2  =  k ) ;hindi letter K U+0958 DEVANAGARI LETTER QA ( U+0915 DEVANAGARI LETTER KA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ – ]  OCT340 OCT245 MAT2   = kh ) ;hindi letter KH
( [ à ¥ ™ ]  OCT340 OCT245 MAT2 = kh ) ;hindi letter KH U+0959 DEVANAGARI LETTER KHHA (U+0916 DEVANAGARI LETTER KHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ — ]  OCT340 OCT245 MAT2   = g ) ;hindi letter G
( [ à ¥ š ]   OCT340 OCT245 MAT2 = g ) ;hindi letter G U+095A DEVANAGARI LETTER GHHA (U+0917 DEVANAGARI LETTER GA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ˜ ]   OCT340 OCT245 MAT2  = g h ) ;hindi letter GH
( [ à ¤ ™ ]   OCT340 OCT245 MAT2  = n y ) ;hindi letter NG
( [ à ¤ š ]   OCT340 OCT245 MAT2  = ch ) ;hindi letter C
( [ à ¤ › ]  OCT340 OCT245 MAT2  = ch h ) ;hindi letter CH
( [ à ¤ œ ]  OCT340 OCT245 MAT2  = j ) ;hindi letter J
( [ à ¥ › ]  OCT340 OCT245 MAT2  = j ) ;hindi letter J U+095B DEVANAGARI LETTER ZA ( U+091C DEVANAGARI LETTER JA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ � ]   OCT340 OCT245 MAT2  = j h ) ;hindi letter JH
( [ à ¤ ž ]   OCT340 OCT245 MAT2  = eh n eh ) ;hindi letter NY
( [ à ¤ Ÿ ]  OCT340 OCT245 MAT2   = T ) ;hindi letter TT
( [ à ¤   ]   OCT340 OCT245 MAT2  = T h ) ;hindi letter TTH
( [ à ¤ ¡ ]   OCT340 OCT245 MAT2  = D ) ;hindi letter DD
( [ à ¥ œ ]   OCT340 OCT245 MAT2 = D ) ;hindi letter DD U+095C DEVANAGARI LETTER DDDHA (U+0921 DEVANAGARI LETTER DDA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ¢ ]   OCT340 OCT245 MAT2  = D h ) ;hindi letter DDH
( [ à ¥ � ]   OCT340 OCT245 MAT2 = D h ) ;hindi letter DDH U+095D DEVANAGARI LETTER RHA (U+0922 DEVANAGARI LETTER DDHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ £ ]  OCT340 OCT245 MAT2   = N ) ;hindi letter NN
( [ à ¤ ¤ ]   OCT340 OCT245 MAT2  = th ) ;hindi letter T
( [ à ¤ ¥ ]  OCT340 OCT245 MAT2   = tth ) ;hindi letter TH
( [ à ¤ ¦ ]   OCT340 OCT245 MAT2  = dh ) ;hindi letter D
( [ à ¤ § ]   OCT340 OCT245 MAT2  = ddh ) ;hindi letter DH
( [ à ¤ ¨ ]   OCT340 OCT245 MAT2  = n ) ;hindi letter N
( [ à ¤ © ]   OCT340 OCT245 MAT2  = n ) ;hindi letter N
( [ à ¤ ª ]   OCT340 OCT245 MAT2  = p ) ;hindi letter P
( [ à ¤ « ]   OCT340 OCT245 MAT2  = f ) ;hindi letter PH
( [ à ¥ ž ]   OCT340 OCT244 MAT2 = f ) ;hindi letter PH U+095F DEVANAGARI LETTER YYA (U+092F DEVANAGARI LETTER YA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ¬ ]   OCT340 OCT245 MAT2  = b ) ;hindi letter B
( [ à ¤ ­ ]   OCT340 OCT245 MAT2  = bh ) ;hindi letter BH
( [ à ¤ ® ]   OCT340 OCT245 MAT2  = m ) ;hindi letter M
( [ à ¤ ¯ ]   OCT340 OCT245 MAT2  = y ) ;hindi letter Y
( [ à ¥ Ÿ ]   OCT340 OCT245 MAT2 = y ) ;hindi letter Y U+095F DEVANAGARI LETTER YYA (U+092F DEVANAGARI LETTER YA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ° ]  OCT340 OCT245 MAT2   = r ) ;hindi letter R
([ à ¤ ± ] OCT340 OCT245 MAT2  = r ) ;hindi letter RR
( [ à ¤ ² ]   OCT340 OCT245 MAT2  = l) ;hindi letter L
( [ à ¤ ³ ]  OCT340 OCT245 MAT2   = L ) ;hindi letter LL
( [ à ¤ ³ ]   OCT340 OCT245 MAT2 = L ) ;hindi letter LLLA, U+0934 DEVANAGARI LETTER LLLA (U+0933 DEVANAGARI LETTER LLA + U+093C DEVANAGARI SIGN NUKTA) for transcribing Dravidian l
( [ à ¤ µ ]   OCT340 OCT245 MAT2  = v ) ;hindi letter V
( [ à ¤ ¶ ]   OCT340 OCT245 MAT2  = sh ) ;hindi letter SH
( [ à ¤ · ]   OCT340 OCT245 MAT2  = sh h ) ;hindi letter SS
( [ à ¤ ¸ ]  OCT340 OCT245 MAT2   = s ) ;hindi letter S
( [ à ¤ ¹ ]   OCT340 OCT245 MAT2  = h ) ;hindi letter H
;consonants
( [ à ¤ • ]   =  k a ) ;hindi letter KA
( [ à ¥ ˜ ]  =  k a ) ;hindi letter KA U+0958 DEVANAGARI LETTER QA ( U+0915 DEVANAGARI LETTER KA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ – ] = kh a ) ;hindi letter KHA
( [ à ¥ ™ ] = kh a ) ;hindi letter KHA +0959 DEVANAGARI LETTER KHHA (U+0916 DEVANAGARI LETTER KHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ — ] = g a ) ;hindi letter GA
( [ à ¥ š ] = g a ) ;hindi letter GA U+095A DEVANAGARI LETTER GHHA (U+0917 DEVANAGARI LETTER GA + U+093C DEVANAGARI SIGN NUKTA) 
( [ à ¤ ˜ ] = g h a ) ;hindi letter GHA
( [ à ¤ ™ ] = n y a ) ;hindi letter NGA
( [ à ¤ š ] = ch a ) ;hindi letter CA
( [ à ¤ › ] = ch h a ) ;hindi letter CHA
( [ à ¤ œ ] = j a ) ;hindi letter JA
( [ à ¥ › ] = j a ) ;hindi letter JA U+095B DEVANAGARI LETTER ZA ( U+091C DEVANAGARI LETTER JA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ � ] = j h a ) ;hindi letter JHA
( [ à ¤ ž ] = eh n eh a ) ;hindi letter NYA
( [ à ¤ Ÿ ] = T a ) ;hindi letter TTA
( [ à ¤   ] = T h a ) ;hindi letter TTHA
( [ à ¤ ¡ ] = D a ) ;hindi letter DDA 
( [ à ¥ œ ] = D a ) ;hindi letter DDA U+095C DEVANAGARI LETTER DDDHA (U+0921 DEVANAGARI LETTER DDA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ¢ ] = D h a ) ;hindi letter DDHA
( [ à ¥ � ] = D h a ) ; hindi letter DDHA U+095D DEVANAGARI LETTER RHA (U+0922 DEVANAGARI LETTER DDHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ £ ] = N a ) ;hindi letter NNA
( [ à ¤ ¤ ] = th a ) ;hindi letter TA
( [ à ¤ ¥ ] = tth a ) ;hindi letter THA
( [ à ¤ ¦ ] = dh a ) ;hindi letter D
( [ à ¤ § ] = ddh a ) ;hindi letter DHA
( [ à ¤ ¨ ] = n a ) ;hindi letter NA
( [ à ¤ © ] = n a ) ;indi letter NA U+0928 DEVANAGARI LETTER NA + U+093C DEVANAGARI SIGN NUKTA
( [ à ¤ ª ] = p a ) ;hindi letter PA
( [ à ¤ « ] = f a ) ;hindi letter PHA
( [ à ¥ ž ] = f a ) ;hindi letter PHA U+095E DEVANAGARI LETTER FA (U+092B DEVANAGARI LETTER PHA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ¬ ] = b a ) ;hindi letter BA
( [ à ¤ ­ ] = bh a ) ;hindi letter BHA
( [ à ¤ ® ] = m a ) ;hindi letter MA
( [ à ¤ ¯ ] = y a ) ;hindi letter YA
( [ à ¥ Ÿ ] = y a ) ;hindi letter YA U+095F DEVANAGARI LETTER YYA (U+092F DEVANAGARI LETTER YA + U+093C DEVANAGARI SIGN NUKTA)
( [ à ¤ ° ] = r a ) ;hindi letter RA
( [ à ¤ ± ] = r a ) ;hindi letter RRA
( [ à ¤ ² ] = l a ) ;hindi letter LA
( [ à ¤ ³ ] = L a ) ;hindi letter LLA
( [ à ¤ ´ ] = L a ) ;hindi letter LLA U+0934 DEVANAGARI LETTER LLLA (U+0933 DEVANAGARI LETTER LLA + U+093C DEVANAGARI SIGN NUKTA) for transcribing Dravidian l
( [ à ¤ µ ] = v a ) ;hindi letter VA
( [ à ¤ ¶ ] = sh a ) ;hindi letter SHA
( [ à ¤ · ] = sh h a ) ;hindi letter SSA
( [ à ¤ ¸ ] = s a ) ;hindi letter SA
( [ à ¤ ¹ ] = h a ) ;hindi letter HA
( [ à ¥ � ] = oh m) ;U+0950 DEVANAGARI OM 
;;dependent vowels
( [ à ¥ ˆ ] = ay ) ;hindi vowel sign AI 0C46 (E)+ 0C56(AI Length Mark)
( [ à ¤ ¾ ] =  aa )  ;hindi vowel sign AA
( [ à ¤ ¿ ] =  ih ) ;hindi vowel sign I
( [ à ¥ € ] = iy ) ;hindi vowel sign II
( [ à ¥ � ] = uh ) ;hindi vowel sign U
( [ à ¥ ‚ ] = uw ) ;hindi vowel sign UU
( [ à ¥ ƒ ] = r eh )  ;hindi vowel sign vocalic R
( [ à ¥ „ ] = r ee )  ;hindi vowel sign vocalic RR
( [ à ¥ … ] = ee ) ;hindi vowel sign chandra E
( [ à ¤ � ] = n ) ;hindi U+0901 DEVANAGARI SIGN CANDRABINDU
( [ à ¥ † ] = eh ) ;hindi vowel sign short E (for transcribing Dravidian vowels)
( [ à ¥ ‡ ] = eh ) ;hindi vowel sign E
( [ à ¥ ˆ ] = ay ) ;hindi vowel sign AI
( [ à ¥ ‰ ] = oo ) ;hindi vowel sign chandra O
( [ à ¥ Š ] = oh ) ;U+094A DEVANAGARI VOWEL SIGN SHORT O (for transcribing Dravidian vowels)
( [ à ¥ ‹ ] = oh ) ;hindi vowel sign O
( [ à ¥ Œ ] = aw ) ;hindi vowel sign AU
;( [ à ¤ ¼ ]= )  ;ignoring nukta sign U+093C
;( [ à ¤ ½ ] = ) ;ignoring U+093D DEVANAGARI SIGN AVAGRAHA
( [ à ¥ � ] = ) ;ignoring U+094D DEVANAGARI SIGN VIRAMA, halant (the preferred Hindi name)

   )
)

;;; Lexicon definition
(lex.create "hindi")
(lex.set.phoneset "hindi")

(define (hindi_lts_function word features)
  "(hindi_lts_function WORD FEATURES)
 Using letter to sound rules to bulid a hindi pronunciation of WORD."
   (list word
	 nil
          (lex.syllabify.phstress (lts.apply (downcase word) 'hindi))))
(lex.set.lts.method 'hindi_lts_function)
(hindi_addenda)

(provide 'hindi_lex)


