devanagari-transliterations-0.1.0.0: Conversion between Devanagari Unicode, Harvard-Kyoto, IAST and ISO15919.
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Char.Devanagari

Synopsis

Documentation

data Vowel Source #

Constructors

A 
AA 
I 
II 
U 
UU 
RI 
RII 
LI 
LII 
E 
O 
AI 
AU 

Instances

Instances details
Bounded Vowel Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Enum Vowel Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Show Vowel Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Methods

showsPrec :: Int -> Vowel -> ShowS #

show :: Vowel -> String #

showList :: [Vowel] -> ShowS #

Eq Vowel Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Methods

(==) :: Vowel -> Vowel -> Bool #

(/=) :: Vowel -> Vowel -> Bool #

Ord Vowel Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Methods

compare :: Vowel -> Vowel -> Ordering #

(<) :: Vowel -> Vowel -> Bool #

(<=) :: Vowel -> Vowel -> Bool #

(>) :: Vowel -> Vowel -> Bool #

(>=) :: Vowel -> Vowel -> Bool #

max :: Vowel -> Vowel -> Vowel #

min :: Vowel -> Vowel -> Vowel #

data Consonant Source #

Constructors

K 
C 
Tdot 
T 
P 
G 
J 
Ddot 
D 
B 
Ntop 
Ntild 
Ndot 
N 
M 
H 
Y 
R 
L 
V 
Z 
F 
Stop 
Sdot 
S 
KH 
CH 
TdotH 
TH 
PH 
GH 
JH 
DdotH 
DH 
BH 
Gtop 

data Digit Source #

Constructors

ZERO 
ONE 
TWO 
THREE 
FOUR 
FIVE 
SIX 
SEVEN 
EIGHT 
NINE 

Instances

Instances details
Bounded Digit Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Enum Digit Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Show Digit Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Methods

showsPrec :: Int -> Digit -> ShowS #

show :: Digit -> String #

showList :: [Digit] -> ShowS #

Eq Digit Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Methods

(==) :: Digit -> Digit -> Bool #

(/=) :: Digit -> Digit -> Bool #

Ord Digit Source # 
Instance details

Defined in Data.Char.Devanagari.DevanagariTokens

Methods

compare :: Digit -> Digit -> Ordering #

(<) :: Digit -> Digit -> Bool #

(<=) :: Digit -> Digit -> Bool #

(>) :: Digit -> Digit -> Bool #

(>=) :: Digit -> Digit -> Bool #

max :: Digit -> Digit -> Digit #

min :: Digit -> Digit -> Digit #

type Tokenizer = Text -> Seq DevanagariToken Source #

A Tokenizer is a function that takes a Text as input and produces a Sequence of DevanagariToken instances as output.

tokenize :: Tokenizer Source #

tokenize a string of Text into a sequence of DevanagariTokens. The actual tokenizer is selected based on the content of the input string. This tokenizer is then applied to the input string.

selectTokenizerByContent :: Text -> Tokenizer Source #

select the correct tokenizer based on the content of the input string.

fromDevanagari :: Tokenizer Source #

a tokenizer function that parses a Text containing Devanagari script into a Sequence of DevanagariToken instances.

fromIso :: Tokenizer Source #

a tokenizer function that parses a Text containing ISO15919 encoded Devanagari script into a Sequence of DevanagariToken instances.

fromHarvard :: Tokenizer Source #

a tokenizer function that parses a Text containing Harvard-Kyoto encoded Devanagari script into a Sequence of DevanagariToken instances.

fromIast :: Tokenizer Source #

a tokenizer function that parses a Text containing IAST encoded Devanagari script into a Sequence of DevanagariToken instances.

toDevanagari :: Generator Source #

toIso :: Generator Source #

toHarvard :: Generator Source #

toIast :: Generator Source #

tokenMap :: [(Text, Text, Text, Text)] Source #

returns a list of tuples containing all available characters in all four encodings.

tokenMapToMd :: Text Source #

this function creates a markdown table containing the complete character map in all four encodings.

tokenMapToHtml :: Text Source #

this function creates an html table containing the complete character map in all four encodings.