10,731
edits
TheNightAvl (talk | contribs) m (Changed delimiter) |
TheNightAvl (talk | contribs) (Added automatic affix recognition to turn off rhyme display) |
||
Line 70: | Line 70: | ||
local mode_register = "plain" | local mode_register = "plain" | ||
local working_syllables = "" | local working_syllables = "" | ||
-- turn off rhymes if affix | |||
if mw.ustring.find(word, "^[%-·]") or mw.ustring.find(word, "[%-·]$") then | |||
show_rhymes = false | |||
end | |||
local i = 1 | local i = 1 | ||
Line 75: | Line 80: | ||
while args[i] ~= nil or args[i+1] ~= nil do | while args[i] ~= nil or args[i+1] ~= nil do | ||
mw.log("Processing argument " .. i .. ".") | mw.log("Processing argument " .. i .. ".") | ||
if | if parameter[args[i]] ~= nil then -- mode changer | ||
mode = args[i] | mode = args[i] | ||
mode_dialect = "standard" | mode_dialect = "standard" |