Bug 27396 - Moving cursor in Thai text sometimes jumps over two characters
Summary: Moving cursor in Thai text sometimes jumps over two characters
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexey Proskuryakov
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2009-07-17 16:02 PDT by Alexey Proskuryakov
Modified: 2009-07-17 16:22 PDT (History)
1 user (show)

See Also:


Attachments
proposed fix (5.03 KB, patch)
2009-07-17 16:05 PDT, Alexey Proskuryakov
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2009-07-17 16:02:08 PDT
This is very similar to bug 24342, but happens for different characters. Moving insertion point left or right shouldn't jump over several glyphs, even if those form an extended grapheme cluster.

ICU has a special case for those Thai characters now, see <http://source.icu-project.org/repos/icu/icu/trunk/source/data/brkitr/char_th.txt>. We should do the same.

Patch with a test forthcoming.
Comment 1 Alexey Proskuryakov 2009-07-17 16:05:27 PDT
Created attachment 32987 [details]
proposed fix
Comment 2 Alexey Proskuryakov 2009-07-17 16:09:33 PDT
<rdar://problem/7069717>
Comment 3 mitz 2009-07-17 16:16:04 PDT
Comment on attachment 32987 [details]
proposed fix

r=me if you add a description and the Radar link to the change log
Comment 4 Alexey Proskuryakov 2009-07-17 16:22:54 PDT
Committed <http://trac.webkit.org/changeset/46069>.