Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 225: Line 225:


function export.syll_count(frame)
function export.syll_count(frame)
local pagename = mw.title.getCurrentTitle().title
local term = export.crux("tsammi")
local term = export.crux(pagename, true, false, false)
local xc = "[mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłʣjwʦ⁽ʰ⁾ʔːƀꝺđɣꬶɉ"..UNRELEASED.."]"
local xc = "[mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłʣjwʦ⁽ʰ⁾ʔːƀꝺđɣꬶɉ"..UNRELEASED.."]"
local pattern = "(" .. xc .. "?" .. vowel .. "+ː?" .. xc .. "*)"
local pattern = "(" .. xc .. "?" .. vowel .. "+ː?" .. xc .. "*)"