Module:rad-IPA: Difference between revisions

Jump to navigation Jump to search
m
Added automatic brackets
(Added phonetic option)
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

Navigation menu