10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 217: | Line 217: | ||
if p_current == "x" and p_next == "d" then | if p_current == "x" and p_next == "d" then | ||
working_IPA[i+1] = "ð" | |||
if vowel[working_IPA[i-2]] and (p_prev == "i" or p_prev == "u") then | if vowel[working_IPA[i-2]] and (p_prev == "i" or p_prev == "u") then | ||
table.remove(working_IPA, i) | table.remove(working_IPA, i) | ||
Line 315: | Line 316: | ||
function export.generate(frame) | function export.generate(frame) | ||
local args = getArgs(frame) | local args = getArgs(frame) | ||
local outputIPA = | local outputIPA = "" | ||
local parameters = {} | local parameters = {} | ||
local valid_parameter = { | |||
["phon"] = true, | |||
["col"] = true, | |||
["colloquial"] = true, | |||
["nolarge"] = true, | |||
} | |||
local p = 2 | local p = 2 | ||
if valid_parameter[args[1]] or args[1] == nil then | |||
outputIPA = mw.title.getCurrentTitle().subpageText | |||
p = 1 | |||
end | |||
-- mw.log("——— Parameters ———") | -- mw.log("——— Parameters ———") |