Module:lfv-IPA: Difference between revisions

Added /hg/ phon
mNo edit summary
(Added /hg/ phon)
Line 397: Line 397:
if phon then
if phon then
-- /xd/ --
-- /xd/ /xɡ/ --
if mw.ustring.find(working_IPA, "(xd̥)") then
if mw.ustring.find(working_IPA, "(x[dɡ][̥̊])") then
working_IPA = mw.ustring.gsub(working_IPA, "(xd̥)", "hd̥")
working_IPA = mw.ustring.gsub(working_IPA, "(x)([dɡ][̥̊])", "h%2")
elseif mw.ustring.find(working_IPA, "(xd)") then
elseif mw.ustring.find(working_IPA, "(x[dɡ])") then
working_IPA = mw.ustring.gsub(working_IPA, "(xd)", "hd") .. "~" .. mw.ustring.gsub(working_IPA, "(xd)", "ɦd")
working_IPA = mw.ustring.gsub(working_IPA, "(x)([dɡ])", "h%2") .. "~" .. mw.ustring.gsub(working_IPA, "(x)([dɡ])", "ɦ%2")
end
end