3,764
edits
(Created page with "--based on similar modules made by User:Sware, see below for more information and reference. local sub = mw.ustring.sub local find = mw.ustring.find local gmatch = mw.ustring.gmatch local gsub = mw.ustring.gsub local match = mw.ustring.match local u = mw.ustring.char local split = mw.text.split local gsplit = mw.text.gsplit local lang = require("Module:languages").getByCode("hoo") local m_table = require("Module:table") local m_IPA = require("Module:IPA") local export...") |
No edit summary |
||
| Line 28: | Line 28: | ||
{"(" .. consonants .. ")(" .. consonants .. ")", function(c1,c2) return same(c1,c2) and c1 .. "ː" or c1 .. c2 end} | {"(" .. consonants .. ")(" .. consonants .. ")", function(c1,c2) return same(c1,c2) and c1 .. "ː" or c1 .. c2 end} | ||
} | } | ||
function export.crux(term) | |||
term = mw.ustring.lower(term) | |||
for _, rule in ipairs(first_rules) do | |||
term = gsub(term, rule[1], rule[2]) | |||
end | |||
term = syllabify(term) | |||
for _, rule in ipairs(phonetic_rules) do | |||
term = gsub(term, rule[1], rule[2]) | |||
end | |||
term = gsub(term, "·", ".") | |||
term = gsub(term, "%.%.", ".") | |||
return term | |||
end | |||
function export.show(frame) | function export.show(frame) | ||
edits