mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-22 01:34:22 +00:00
Add additional initial combination conditions
This commit is contained in:
parent
0647a3d516
commit
53f8234798
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class HangulCombiner : Combiner {
|
||||||
is HangulJamo.Initial -> {
|
is HangulJamo.Initial -> {
|
||||||
if(currentSyllable.initial != null) {
|
if(currentSyllable.initial != null) {
|
||||||
val combination = COMBINATION_TABLE_SEBEOLSIK[currentSyllable.initial.codePoint to jamo.codePoint]
|
val combination = COMBINATION_TABLE_SEBEOLSIK[currentSyllable.initial.codePoint to jamo.codePoint]
|
||||||
if(combination != null) {
|
if(combination != null && currentSyllable.medial == null && currentSyllable.final == null) {
|
||||||
history += currentSyllable.copy(initial = HangulJamo.Initial(combination))
|
history += currentSyllable.copy(initial = HangulJamo.Initial(combination))
|
||||||
} else {
|
} else {
|
||||||
composingWord.append(currentSyllable.string)
|
composingWord.append(currentSyllable.string)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue