Skip to content

Commit

Permalink
Instead of moving ㅎ to next syllable, remove it
Browse files Browse the repository at this point in the history
Removes the h from romanizations of words such as 좋아.
  • Loading branch information
JosJuice committed Dec 1, 2019
1 parent 609c2d0 commit 673dcaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hibikase/TextTransform/RomanizeHangul.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,12 @@ static void Resyllabify(QString* finals, Syllable* next_syllable)
if (last_final == QChar(u'') || next_syllable->initials != QStringLiteral(u""))
return;

next_syllable->initials = Lookup(FINAL_TO_INITIAL, last_final);
finals->chop(1);

if (last_final == QChar(u''))
return Resyllabify(finals, next_syllable);

next_syllable->initials = Lookup(FINAL_TO_INITIAL, last_final);
Palatalize(next_syllable);
}

Expand Down

0 comments on commit 673dcaa

Please sign in to comment.