Module:tevo-translit: Difference between revisions
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 123: | Line 123: | ||
text = gsub(text, "ः॑","́h") | text = gsub(text, "ः॑","́h") | ||
text = gsub(text, '([aअ][' .. acute .. grave .. ']?[इउ])', '%1' .. diaeresis) | text = gsub(text, '([aअ][' .. acute .. grave .. ']?[इउ])', '%1' .. diaeresis) | ||
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 | ||