Module:ábḫ-ipa/remake: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 50: Line 50:
["s"] = "ɕ",
["s"] = "ɕ",
["z"] = "θ",
["z"] = "θ",
}}, {"jh", "ʑ"}, {"j", "ɲ"}, {"y", "j"}, {"", "x"}, {"", ""},  
}}, {"jh", "ʑ"}, {"j", "ɲ"}, {"y", "j"}, {"", ""}, {"", ""},  
{"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""},  
{"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""},  
{"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""},
{"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""}, {"", ""},
Line 59: Line 59:
function export.test(frame)
function export.test(frame)
local word = frame.args[1]
local word = frame.args[1]
local letters = word:split("")
for _, rule in ipairs(rules) do
for _, letter in ipairs(letters) do
word = word:gsub(rule[1], rule[2])
for _, rule in ipairs(rules) do
word = word:gsub(rule[1], rule[2])
end
end
end