Bug 27396

Summary: Moving cursor in Thai text sometimes jumps over two characters
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: HTML EditingAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: hbono
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
proposed fix mitz: review+

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>.