Module:rad-IPA: Difference between revisions

Jump to navigation Jump to search
Added affix accommodation
mNo edit summary
(Added affix accommodation)
Line 1,568: Line 1,568:
outputIPA = mw.ustring.gsub(outputIPA, "(%&nbsp%;)", " ")
outputIPA = mw.ustring.gsub(outputIPA, "(%&nbsp%;)", " ")
local is_prefix = mw.ustring.sub(outputIPA, -1) == "-" or mw.ustring.sub(outputIPA, -1) == "·"
local is_suffix = mw.ustring.sub(outputIPA, 1, 1) == "-"
outputIPA = generate_IPA(outputIPA)
outputIPA = generate_IPA(outputIPA)
outputIPA = resolve_vowels(outputIPA)
outputIPA = resolve_vowels(outputIPA)
Line 1,587: Line 1,591:
else
else
if is_prefix then
outputIPA = outputIPA .. "-"
end
if is_suffix then
outputIPA = "-" .. outputIPA
end
local nolarge = ""
local nolarge = ""

Navigation menu