Jump to content

Module:Deranize: Difference between revisions

m
fix
m (fix)
m (fix)
Line 102: Line 102:
     end
     end


     local di = deranimap[medial..final]
     local v = medial..final
     if di and reform then medial = di final = "" end
    local is_diphthong = v == "aı" or v == "ao" or v == "eı" or v == "oı"
     if is_diphthong and reform then medial = deranimap[v] final = "" end
     local glyphs = {initial, tone, medial}
     local glyphs = {initial, tone, medial}
     if initial == "" and is_first_syllable then glyphs[1] = "'" end
     if initial == "" and is_first_syllable then glyphs[1] = "'" end
Line 111: Line 112:
       glyphs[2], glyphs[3] = glyphs[3], glyphs[2]
       glyphs[2], glyphs[3] = glyphs[3], glyphs[2]
     end
     end
     if di and not reform then
     if is_diphthong and not reform then
       glyphs[#glyphs+1] = "diphthong"
       glyphs[#glyphs+1] = "diphthong"
     elseif final ~= "" then
     elseif final ~= "" then