205
edits
(Fix tone marks with implicit o'aomo) |
(Fix tone marks with implicit o'aomo for real) |
||
Line 122: | Line 122: | ||
if is_diphthong and reform then medial, final = v, "" end | if is_diphthong and reform then medial, final = v, "" end | ||
local glyphs = {initial, tone, medial} | local glyphs = {initial, tone, medial} | ||
if initial == "" and is_first_syllable | if initial == "" | ||
and is_first_syllable | |||
and (final == "" or (reform and is_diphthong)) | |||
and coda == "" | |||
and (vowel_lookalikes[next_initial] or (reform and diphthong_lookalikes[next_initial])) then | |||
glyphs[1] = "'" | |||
end | end | ||
if not is_first_syllable then glyphs[2] = "" end | if not is_first_syllable then glyphs[2] = "" end | ||
if glyphs[1] == "'" or glyphs[1] == "ꝡ" then | if glyphs[1] == "" or glyphs[1] == "'" or glyphs[1] == "ꝡ" then | ||
-- Move tone onto the first vowel | -- Move tone onto the first vowel | ||
glyphs[2], glyphs[3] = glyphs[3], glyphs[2] | glyphs[2], glyphs[3] = glyphs[3], glyphs[2] |