Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 223: Line 223:
return term
return term
end
end
function export.syll_count(term)
term = export.crux(term)
local xc = "[mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłʣjwʦ⁽ʰ⁾ʔːƀꝺđɣꬶɉ"..UNRELEASED.."]"
local pattern = "(" .. xc .. "?" .. vowel .. "+ː?" .. xc .. "*)"
local _, n = gsub(term, pattern, "%1")
return n
end


function format_IPA(items)
function format_IPA(items)