Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

Complex Text and Cursor Rendering Issue #4066

Open
rcampbellbassac opened this issue Apr 2, 2016 · 0 comments
Open

Complex Text and Cursor Rendering Issue #4066

rcampbellbassac opened this issue Apr 2, 2016 · 0 comments

Comments

@rcampbellbassac
Copy link

Complex text (like Lao in this case) is rendering the cursor wrong - when vowels/tonemarks/consonants are placed above or below a consonant, the cursor compensates by going to teh right, as if it wasn't stacked on top of the consonant.

On line 38 of the code in the screenshot, you will see 4 ZWSPs (zero width spaces), and then a comma which is the last character in the line. However, as you press the key to the right, it seems to assume that the characters that are stacked need to push the cursor an equal distance to the right.

Look at the vowels and tone marks that can be above and below nuclear consonants... Like the ິ above the consonant ຈ on line 38. In the editor, the cursor is way out to the right in order to edit the characters far to the left of the cursor.

Note, there is a return immediately after the comma, and no whitespace at the end of the line. The cursor is simply floating off in nirvana, far separated from reality... ;)

screenshot 2016-04-02 at 18 02 47

The issue is the same for Burmese, Thai, and Khmer, as well as Lao.
Here's some text to play with...

ປື້ມທ່ານ​ນາງ​ເອ​ເລັນຈີ​ໄວທ໌ (Lao)
ឯ​ពូជ​ដំណ​នៃ​ពួក​កូន​ចៅ​រូបេន (Khmer)
ในเริ่มแรกนั้นพระเจ้าทรงเนรมิตสร้างฟ้าสวรรค์และแผ่นดินโลก (Thai)
အစအဦး၌ ဘုရားသခင်သည် (Burmese)

Copy and paste it into the editor and navigate the cursor to the end of the line...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant