ref: 68512a3f6695f57f1cbdd68bdbdd5a00a7d544bf
parent: f4122cfbc9ee6b99f69f1194ea38565fdfad36bb
author: Jacob Moody <moody@posixcafe.org>
date: Mon Apr 1 23:55:16 EDT 2024
ktrans: correct Korean input (thanks npmania!) This patch implements two specific behaviors of Dubeolsik layout. dubeollkup function makes Jongseong(final consonant) to be treated as Choseong(initial consonant) when possible. For example, QWERTY input "zhem" in Dubeolsik has to be "코드", not "콛ㅡ" where switched Jongseong is "ㄷ". dubeolbksp function emits out syllable remaining after single backspace. So when user presses backspace on "코드", the expected output is "코ㄷ", still allowing user to edit latter syllable, rather than "코" without dubeolbksp. This should only apply to last syllable considering it's de facto in Dubeolsik implementations.