10,794
edits
TheNightAvl (talk | contribs) m (Fixed hiatus marker appear next to stress marker) |
TheNightAvl (talk | contribs) 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" | if syllables[i]["coda"] == nil and marked_hiatus[syllables[i]["nucleus"]] and syllables[i+1]["onset"] == nil and type(syllables[i+1]) == "table" then | ||
if not (syllables[i+1]["stress"] or syllables[i+1]["stress2"]) then | |||
syllables[i]["coda"] = {"."} | |||
mw.log("Hiatus marked between syllables " .. i .. " and " .. i+1 .. ".") | |||
end | |||
end | end | ||
end | end |