Module:tevo-translit: Difference between revisions
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 58: | Line 58: | ||
['ु']='u', | ['ु']='u', | ||
['ू']='ū', | ['ू']='ū', | ||
['ॆ']=' | ['ॆ']='ei', | ||
['े']=' | ['े']='ēi', | ||
['ॅ']='e', | ['ॅ']='e', | ||
['ै']='ē', | ['ै']='ē', | ||
| Line 77: | Line 77: | ||
['उ']='u', | ['उ']='u', | ||
['ऊ']='ū', | ['ऊ']='ū', | ||
['ऎ']=' | ['ऎ']='ei', | ||
['ए']=' | ['ए']='ēi', | ||
['ऍ']='e', | ['ऍ']='e', | ||
['ऐ']='ē', | ['ऐ']='ē', | ||
| Line 126: | Line 126: | ||
text = gsub(text, '.', tt) | text = gsub(text, '.', tt) | ||
text = gsub(text, 'a([iu])([' .. acute .. grave .. '])', 'a%2%1') | text = gsub(text, 'a([iu])([' .. acute .. grave .. '])', 'a%2%1') | ||
text = gsub(text, 'e([i])([' .. acute .. grave .. '])', 'e%2%1') | |||
text = gsub(text, 'o([u])([' .. acute .. grave .. '])', 'o%2%1') | |||
text = gsub(text, 'ē([i])([' .. acute .. grave .. '])', 'ē%2%1') | |||
text = gsub(text, 'ō([u])([' .. acute .. grave .. '])', 'ō%2%1') | |||
text = gsub(text, " ?[।॥]", ".") | text = gsub(text, " ?[।॥]", ".") | ||
text = gsub(text, "(ā" .. acute .. "3[iu])" .. acute, "%1") -- for pluti vowels | text = gsub(text, "(ā" .. acute .. "3[iu])" .. acute, "%1") -- for pluti vowels | ||