10,735
edits
TheNightAvl (talk | contribs) No edit summary |
TheNightAvl (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
local from_secondary = { | local from_secondary = { | ||
["lfv"] = true | ["lfv"] = true, | ||
["rad"] = true, | |||
} -- list of language codes which get rhyme from secondary stress as well as primary | } -- list of language codes which get rhyme from secondary stress as well as primary | ||
Line 76: | Line 77: | ||
local rhyme2 | local rhyme2 | ||
if from_secondary[language.code] and mw.ustring.find(rhyme, "ˌ") then | if from_secondary[language.code] and mw.ustring.find(rhyme, "ˌ") then | ||
rhyme2 = mw.ustring.match(rhyme, "ˌ( | rhyme2 = mw.ustring.match(rhyme, "ˌ([^ˈ]*)$") | ||
end | end | ||
rhyme = mw.ustring.match(rhyme, "ˈ(.*)$") or rhyme | rhyme = mw.ustring.match(rhyme, "ˈ(.*)$") or rhyme |