From 673dcaa0e3102b3633309230516d7751aafeb23a Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 1 Dec 2019 19:46:52 +0100 Subject: [PATCH] =?UTF-8?q?Instead=20of=20moving=20=E3=85=8E=20to=20next?= =?UTF-8?q?=20syllable,=20remove=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removes the h from romanizations of words such as 좋아. --- hibikase/TextTransform/RomanizeHangul.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hibikase/TextTransform/RomanizeHangul.cpp b/hibikase/TextTransform/RomanizeHangul.cpp index 5a1eef5..e9767a9 100644 --- a/hibikase/TextTransform/RomanizeHangul.cpp +++ b/hibikase/TextTransform/RomanizeHangul.cpp @@ -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); }