Module:rad-syllables: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 32: Line 32:
["gj"] = true, ["lj"] = true,
["gj"] = true, ["lj"] = true,
}
local sibilant = {
["dz"] = true,
["dʒ"] = true,
["s"] = true, ["ș"] = true,
["c"] = true, ["ķ"] = true, ["ts"] = true, ["tș"] = true,
["z"] = true, ["x"] = true,
}
local Cs = {
["d"] = true,
["t"] = true,
["dz"] = true,
["dʒ"] = true,
["s"] = true, ["ș"] = true,
["c"] = true, ["ķ"] = true, ["ts"] = true, ["tș"] = true,
["z"] = true, ["x"] = true,
}
local sibilant = {
["s"] = true, ["ș"] = true,
["z"] = true, ["x"] = true,
}
}


Line 272: Line 295:
elseif consonant[g_prev3] and Cl[g_prev2] and affix[g_prev] and g_current == "σ" and g_after == "l" then
elseif consonant[g_prev3] and Cl[g_prev2] and affix[g_prev] and g_current == "σ" and g_after == "l" then
swap(i, i-1)
swap(i-1, i-2)
-- Cs ↔ σ S
elseif Cs[g_prev] and g_current == "σ" and sibilant[g_after] then
swap(i, i-1)
elseif Cs[g_prev2] and affix[g_prev] and g_current == "σ" and sibilant[g_after] then
swap(i, i-1)
swap(i, i-1)
swap(i-1, i-2)
swap(i-1, i-2)

Navigation menu