View source for Module:Deranize
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- Converts Latin text to Derani.
-- Supports: syllable splitting, tone, prefixes, hiatus/diphthong marks, punctuation.
-- For cartouches and null-raı, try: deranize("Ruaq sá [poq] sá* da.")
u = mw.ustring
function get_tone(word)
local nfd = u.toNFD(word)
if u.find(nfd, "́") then return 2 end
if u.find(nfd, "̈") then return 3 end
if u.find(nfd, "̂") then return 4 end
return 1
end
function strip_tone(word)
return u.gsub(u.gsub(u.toNFD(word), "[́̈̂]", ""), "i", "ı")
end
local deranimap = {
-- consonants
000
1:0
Templates used on this page:
Return to Module:Deranize.