10,794
edits
TheNightAvl (talk | contribs) (Added phonetic option) |
TheNightAvl (talk | contribs) m (Added automatic brackets) |
||
Line 1,346: | Line 1,346: | ||
outputIPA = resolve_syllables(outputIPA) | outputIPA = resolve_syllables(outputIPA) | ||
outputIPA = syllables_to_string(outputIPA) | outputIPA = syllables_to_string(outputIPA) | ||
if parameters["phon"] then | |||
outputIPA = "[" .. outputIPA .. "]" | |||
else | |||
outputIPA = "/" .. outputIPA .. "/" | |||
end | |||
mw.log(outputIPA) | mw.log(outputIPA) | ||
return outputIPA | return "<span class=\"IPA\">" .. outputIPA .. "</span>" | ||
end | end |