Module:ryn-mut: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 16: Line 16:
["v"] = {nil, "mv"},
["v"] = {nil, "mv"},
["k"] = {"h", "nk"},
["k"] = {"h", "nk"},
["h"] = {"", "nh"},
["h"] = {"ŗ", "nh"},
["d"] = {"", "nd"},
["d"] = {"", "nd"},
[""] = {"", "nd̦"},
[""] = {"", "nḑ"},
["ð"] = {nil, "nð"},
["ð"] = {nil, "nð"},
["f"] = {nil, "mf"},
["f"] = {nil, "mf"},
["g"] = {"", "ng"},
["g"] = {"ŗ", "ng"},
[""] = {nil, "nr̦"},
["ŗ"] = {nil, ""},
["l"] = {nil, "nl"},
["l"] = {nil, "nl"},
["hl"] = {"l", "nl"},
["hl"] = {"l", "nl"},
Line 30: Line 30:
["r"] = {nil, "dr"},
["r"] = {nil, "dr"},
["hr"] = {"r", "dr"},
["hr"] = {"r", "dr"},
["s"] = {"ș", "ns"},
["s"] = {"ş", "ns"},
["ș"] = {"ș", ""},
["ş"] = {"ş", ""},
["t"] = {"ț", "nt"},
["t"] = {"ţ", "nt"},
["ț"] = {"ț", ""},
["ţ"] = {"ţ", ""},
}
}
local vowel_pattern = "[aáeiíouú]"
local vowel_pattern = "[aáeiíouú]"
Line 64: Line 64:
if change then
if change then
local r_initial = mw.ustring.sub(data.remainder, 1, 1)
local r_initial = mw.ustring.sub(data.remainder, 1, 1)
if change == "" and mw.ustring.find(r_initial, gh_to_v_vowel_pattern) then
if change == "ŗ" and mw.ustring.find(r_initial, gh_to_v_vowel_pattern) then
change = "v"
change = "v"
end
end

Navigation menu