def __init__(self, unicodeHexValue, block):
self.isVowel = False<EOL>if unicodeHexValue in DevanagariCharacter._vowelRange:<EOL><INDENT>self.isVowel = True<EOL><DEDENT>self._dependentVowel = None<EOL>if unicodeHexValue in DevanagariCharacter._depVowelRange:<EOL><INDENT>vowel = block[chr(unicodeHexValue - DevanagariCharacter._vowelOffset)]<EOL>vowel._setDependentVowel(unicodeHexValue)<EOL>raise (ValueError) <EOL><DEDENT>TLCharacter.__init__(self, unicodeHexValue, block)<EOL>self.isConsonant = False<EOL>if self.isVowel == Falseand self.chr.isalpha()and self.unicodeHexValue not in (DevanagariCharacter._AVAGRAHA,<EOL>DevanagariCharacter._OM):<EOL><INDENT>self.isConsonant = True<EOL><DEDENT>
Create an object representing a Devanagari character.

        Extends TLCharacter.__init__ to distinguish Devanagari standalone
        vowels, dependent vowels and consonants.

        Raises 
        ValueError -- for characters in the Devanagari dependent vowel range.
                      We want these as variants of the corresponding standalone 
                      vowels, not as separate characters.