“Thai – kesmanee (m17n)”.
Then, start gedit, enable IBus, and type M (on US keyboard) several times.
You will see Thai character THO THAHAN (U+0E17) inserted each time.
Now move cursor to some point and type U.
You will see a sonant SARA II (U+0E35) is added to a THO THAHAN:
At this point, if you type Y
you will see the sonant is replaced with a sonant MAI HAN-AKAT (U+0E31):
If surrounding text is not supported, the new sonant mark will be inserted like a normal character,
because IM cannot get any information about characters around the cursor:
Additional info:
Test cases
a)Select m17n si-wijesekera (non-preedit):
1)TYPE: fkda (incorrect): ෙනා්
2)TYPE: fkda (correct): නෝ
b)Select m17n si-phonetic-dynamic:
1)TYPE: nO (incorrect): නඕ
2)TYPE: nO (correct): නෝ
Example A:
1) <f><l><d><a> should output කෝ.
2) Press the space bar to commit the buffer.
3) Press the backspace key 4 times.
4) The remaining output should be ෙ .
Example B:
1) <f><l><d><a> should output කෝ.
2) Press the space bar to commit the buffer.
3) Press the backspace key 3 times
4) Prease <a>
5) The remaining output should be කේ.