Closed Bug 167983 Opened 17 years ago Closed 12 years ago

text with Thai/non-Thai combination, highlighting is not match with selection

Categories

(Core :: Layout: Text and Fonts, defect)

Sun
Solaris
defect
Not set

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: arthit, Assigned: prabhat.hegde)

References

(Blocks 1 open bug)

Details

(Keywords: intl)

Attachments

(12 files)

tested against build 20020908 on Solaris 8
----

if Thai character is followed by non-Thai character,
the highlighting will not match with the selection.
(see attached test case for detail)

test data for use with test cases:
1  <U+0E01>.<U+0E01>          
2  <U+0E01> <U+0E01>          
3  <U+0E01>?<U+0E01>          
4  <U+0E01>a<U+0E01>          
5  <U+0E01><U+0E01><U+0E01>   

----

TEST CASE #1:
1.  put the caret at the position after second character of the text. (xx|x)
    [see attached screenshot  hilite_X_before.gif]
2.  press SHIFT + LEFT_ARROW_KEY  1 time
    [expected: the highlight should covers only second character]
    [actual: 
     for testdata 1-4: the highlight covers both first and second characters
     for testdata 5  : the highlight covers only second character
     -- see attached screenshot  hilite_X_after.gif]
3.  copy it by Sun keyboard's COPY key or CTRL + C or right-click context menu
4.  paste it to other place (e.g. dtpad, composer itself)
    [expected: the pasted text should be the same as highlighted text]

----

TEST CASE #2:
1.  put the caret at the position before second character of the text. (x|xx)
2.  press SHIFT + RIGHT_ARROW_KEY  1 time
    [expected: the highlight should covers only second character]
    [actual: 
     for testdata 1-4: the highlight covers both first and second characters
     for testdata 5  : the highlight covers only second character
     -- see attached screenshot  hilite_X_after.gif]
3.  copy it by Sun keyboard's COPY key or CTRL + C or right-click context menu
4.  paste it to other place (e.g. dtpad, composer itself)
    [expected: the pasted text should be the same as highlighted text]

----

TEST CASE #3
1.  use mouse, click at the position before first character of the text
2.  drag it to the right, to the position after first character.
    [expected: the highlight should covers only first character]
    [actual: 
     for testdata 1-4: no highlight at any character
     for testdata 5  : the highlight covers only first character]
3.  continue drag it to the right, to the position after second character
    [expected: the highlight should covers both first and second characters]
    [actual: the highlight covers both first and second characters]
4.  copy it by Sun keyboard's COPY key or CTRL + C or right-click context menu
5.  paste it to other place (e.g. dtpad, composer itself)
    [expected: the pasted text should be the same as highlighted text]

----
Blocks: thai
Keywords: intl
Attached image #1 before
Attached image #1 after
Attached image #2 before
Attached image #2 after
Attached image #3 before
Attached image #3 after
Attached image #4 before
Attached image #4 after
Attached image #5 before
Attached image #5 after
Attached file testcase html
QA Contact: ruixu → ylong
Component: Internationalization → Complex Text Layout
taking - was not aware of this.
prabhat
Assignee: yokoyama → prabhat.hegde
Summary: [CTL-Thai] text with Thai/non-Thai combination, highlighting is not match with selection → text with Thai/non-Thai combination, highlighting is not match with selection
Depends on: grapheme-breaker
related bug,
Bug 100173 : Thai language selection broken. 
Tested on the given test case with mouse selection method  on Mac OS X 10.5.2 with Minefield nightly trunk build 2008030111 seems this bug has been fixed.
BugAThon Bangkok

Mac OS X, Windows, Linux tested - works for me.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Component: Layout: CTL → Layout: Text
QA Contact: amyy → layout.fonts-and-text
You need to log in before you can comment on or make changes to this bug.