Canonical Composition of korean
-
My Problem:
I have a virtual Keyboard which I which i want to implement a Korean option for.
My Problem is that I don’t know how to do the Canonical Composition. (Combining ㅂ + ㅑ = 뱌)I also dont want to use a ready made virtuall Keyboard. Since we allready have one implemented.
My basic expectation /what I’m looking for:
Optimal would be some kind of black-box i can input the already typed string(Korean symbols) + a second string with the new Character. And returning the resulting String.(for each key stroke of the virtual Keyboard)What i have looked at:
From what i understand a "Input Method Editor" is used to do the composition. I found this:
https://doc.qt.io/qt-6/qinputmethodevent.html#QInputMethodEvent-3
https://doc.qt.io/qt-6/technical-guide.html
https://www.kdab.com/qt-input-method-depth/Also other websites with more broad info’s.
For now I am using Qt 5.12.4 so without upgrading i think i don’t have access. I am also not ruling out upgrading to a higher Qt version if needed.
My summed-up question:
Which Qt classes do i need to use to do the Canonical Composition? Or do I need to use external libraries for that part?I am thankful for all tips and links which can help me solve the task :)