Jump to content

Module:Deranize: Difference between revisions

Fix tone marks with implicit o'aomo for real
(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 then
     if initial == ""
       if (final == "" or (reform and is_diphthong))
      and is_first_syllable
        and coda == ""
       and (final == "" or (reform and is_diphthong))
        and (vowel_lookalikes[next_initial] or (reform and diphthong_lookalikes[next_initial])) then
      and coda == ""
        glyphs[1] = "'"
      and (vowel_lookalikes[next_initial] or (reform and diphthong_lookalikes[next_initial])) then
      else
      glyphs[1] = "'"
        glyphs[1] = ""
      end
     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]