10,731
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 115: | Line 115: | ||
elseif args[i] ~= nil then | elseif args[i] ~= nil then | ||
local temp_arg = args[i] | local temp_arg = args[i] | ||
local temp_note = mw.ustring.match(temp_arg, "%s*%(.*%)%s*") | |||
if temp_note then | |||
temp_arg = mw.ustring.gsub(temp_arg, temp_note, "") | |||
temp_note = mw.ustring.match(temp_note, "%((.*)%)") | |||
end | |||
if not mw.ustring.find(temp_arg, "%/(.*)%/") then | if not mw.ustring.find(temp_arg, "%/(.*)%/") then | ||
Line 148: | Line 154: | ||
end | end | ||
if temp_note then | |||
temp_arg = temp_arg .. " (''" .. temp_note .. "'')" | |||
end | |||
table.insert(IPA[mode_dialect][mode_register], temp_arg) | table.insert(IPA[mode_dialect][mode_register], temp_arg) | ||
-- mw.log("IPA: added '" .. temp_arg .. "' to IPA[" .. mode_dialect .. "][" .. mode_register .. "]") | -- mw.log("IPA: added '" .. temp_arg .. "' to IPA[" .. mode_dialect .. "][" .. mode_register .. "]") |