lem icon indicating copy to clipboard operation
lem copied to clipboard

Thai string is not displayed properly

Open veer66 opened this issue 1 year ago • 4 comments

I didn't hit space bar, but spaces were added to Thai string, which confused me.

https://github.com/lem-project/lem/assets/370688/e60327fa-067e-43fa-812f-f286ff8ef3ab

I use GNOME Terminal 3.44.0. It doesn't have this issue when I typed the same string in Bash shell.

veer66 avatar Mar 19 '24 14:03 veer66

And what is your Lem version? I think I initially had this issue with french accentuated letters, but it's ok now (I am following master).

vindarel avatar Mar 22 '24 18:03 vindarel

And what is your Lem version?

I pulled main branch 4 days ago

I think I initially had this issue with french accentuated letters, but it's ok now (I am following master).

A French letter with a diacritic marker uses only one codepoint.

* (coerce "é" 'list)
(#\LATIN_SMALL_LETTER_E_WITH_ACUTE)

While one Thai block can take up to 3 codepoints.

* (coerce "ปี่" 'list)
(#\THAI_CHARACTER_PO_PLA #\THAI_CHARACTER_SARA_II #\THAI_CHARACTER_MAI_EK)

You don't need to check this picture if your computer display Thai text properly.

Handling Thai and French text here is fundamentally different.

veer66 avatar Mar 23 '24 02:03 veer66