Module:rad-IPA: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
m (Fixed hiatus marker appear next to stress marker)
mNo edit summary
Line 1,357: Line 1,357:
-- add hiatus marker --
-- add hiatus marker --
if syllables[i+1] then
if syllables[i+1] then
if syllables[i]["coda"] == nil and marked_hiatus[syllables[i]["nucleus"]] and syllables[i+1]["onset"] == nil and type(syllables[i+1]) == "table" and syllables[i+1]["stress"] == false and syllables[i+1]["stress2"] == false then
if syllables[i]["coda"] == nil and marked_hiatus[syllables[i]["nucleus"]] and syllables[i+1]["onset"] == nil and type(syllables[i+1]) == "table" then
syllables[i]["coda"] = {"."}
if not (syllables[i+1]["stress"] or syllables[i+1]["stress2"]) then
mw.log("Hiatus marked between syllables " .. i .. " and " .. i+1 .. ".")
syllables[i]["coda"] = {"."}
mw.log("Hiatus marked between syllables " .. i .. " and " .. i+1 .. ".")
end
end
end
end
end