Module:siwa-pron: Difference between revisions
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
local find = mw.ustring.find | local find = mw.ustring.find | ||
local gmatch = mw.ustring.gmatch | local gmatch = mw.ustring.gmatch | ||
local gsub = | local gsub = require('ustring').gsub | ||
local u = mw.ustring.char | local u = mw.ustring.char | ||
local split = mw.text.split | local split = mw.text.split | ||
| Line 173: | Line 173: | ||
term = gsub(term, "ꬶl", "ʔł") | term = gsub(term, "ꬶl", "ʔł") | ||
for _, anap in ipairs(anaptyctic) do | for _, anap in ipairs(anaptyctic) do | ||
term = | term = gsub(term, anap[1], anap[2]) | ||
end | end | ||
elseif e then | elseif e then | ||
| Line 184: | Line 184: | ||
for _, final_rule in ipairs(final_rules) do | for _, final_rule in ipairs(final_rules) do | ||
term = | term = gsub(term, final_rule[1], final_rule[2]) | ||
end | end | ||