Module:siwa-pron: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 24: Line 24:


function spat(c)
function spat(c)
return "(·?ˈ[mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłⱡʣjwʦ⁽ʰ⁾ʔːƀꝺđꬶɉ]*"..UNR.."?"..vowel..")" .. c .. "([^ː])"
return "(·?ˈ)([mnɲŋpbtdcɟkɡʔvðsɕxɣhʨʥrlɬłⱡʣjwʦ⁽ʰ⁾ʔːƀꝺđꬶɉ]*"..UNR.."?)?("..vowel..")" .. c .. "([^ː])"
end
end


Line 151: Line 151:
local rules2 = {
local rules2 = {
-- stressed consonants (coda of stressed syllables without long vowels, diphthongs, or triphthongs)
-- stressed consonants (coda of stressed syllables without long vowels, diphthongs, or triphthongs)
{spat("h"), "%%2"}, {spat("ꬶ"), "%1k%2"}, {spat("ƀ"), "%1p%2"}, {spat("đ"), "%1t%2"}, {spat("ꝺ"), "%1d%2"}, {spat("ɣ"), "%%2"},
{spat("h"), "%1%2%3ʔ%4"}, {spat("ꬶ"), "%1%2%3k%4"}, {spat("ƀ"), "%1%2%3p%4"},
{spat("đ"), "%1%2%3t%4"}, {spat("ꝺ"), "%1%2%3d%4"}, {spat("ɣ"), "%1%2%3ɉ%4"},
-- internal consonant clusters
-- internal consonant clusters