Module:rad-IPA: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 1,485: Line 1,485:


function export.get_rhyme(IPA)
function export.get_rhyme(IPA)
if mw.ustring.match(IPA, "([ %|])") then
if mw.ustring.find(IPA, "([ %|])") then
return nil
return nil
end
end
if mw.ustring.match(IPA, "(ˈ)") then
if mw.ustring.find(IPA, "(ˈ)") then
IPA = mw.ustring.gsub(IPA, "(ˌ)", "")
IPA = mw.ustring.gsub(IPA, "(ˌ)", "")
IPA = mw.ustring.gsub(IPA, "^(.*ˈ)", "")
IPA = mw.ustring.gsub(IPA, "^(.*ˈ)", "")