Bug 133333

Summary: Thai3.2: Thai word wrap does not work correctly in Label text
Product: [Tools] GEF Reporter: Suwit Srivilairith <suwits>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: camle, kitlo, steven.wasleski, steveshaw
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Sample Model file contains Thai label
none
Screen capture indicates the word break problem
none
Thai word break works correctly in edit mode.
none
Thai text file with UTF-8 encoding
none
This picture shows the word break positions in the sample string. none

Description Suwit Srivilairith CLA 2006-03-27 05:16:25 EST
Eclipse 3.2M5a 
Build date: GEF-ALL-3.2M5

Problem description: Thai word wrap does not work properly in Label text

Steps to create the problem
1) Create a label in the logic editor by dragging a label from the palette.
2) Click on the label's text and then enter long Thai text into the label until the line wrap occurs. 

Please note that Thai word break works correctly while editing Thai text in label.

3) Click mouse outside the label to quit from edit mode.

Problem: After exit from edit mode, Thai word break does not work correctly on label text (Please see the screen captures in the attachment).

Please investigate the problem.

Thanks, Suwit
Comment 1 Suwit Srivilairith CLA 2006-03-27 05:19:48 EST
Created attachment 36977 [details]
Sample Model file contains Thai label
Comment 2 Suwit Srivilairith CLA 2006-03-27 05:20:40 EST
Created attachment 36978 [details]
Screen capture indicates the word break problem
Comment 3 Suwit Srivilairith CLA 2006-03-27 05:21:45 EST
Created attachment 36979 [details]
Thai word break works correctly in edit mode.
Comment 4 Randy Hudson CLA 2006-03-27 11:34:35 EST
Please provide string in unicode.
Comment 5 Suwit Srivilairith CLA 2006-03-27 22:52:38 EST
Created attachment 37039 [details]
Thai text file with UTF-8 encoding

Please use thai string in the attached UTF-8 text file (SampleString.txt)
Comment 6 Suwit Srivilairith CLA 2006-03-27 23:05:48 EST
Created attachment 37040 [details]
This picture shows the word break positions in the sample string.

Please use this picture to find the correct word break positions in the sample string.

Thanks, Suwit
Comment 7 Steven R. Shaw CLA 2006-04-17 15:57:03 EDT
Can you retry this with the M6 stack?  GEF M6 migrated to the ICU4J plug-ins in M6 and specifically their BreakIterator implementation which is supposed to be more "intelligent" then the default Java implementation.  BreakIterator is what determines where to make the appropriate word-wrap break point.
Comment 8 Suwit Srivilairith CLA 2006-04-18 04:00:44 EDT
I've tried Eclipse 3.2 M6 I20060331-2000 and GEF 3.2 M6 I20060405
Unfortunately the problem still persist.

It seems that text display in label may not use BreakIterator class to determine the break position. In the other hand, Thai word break works correctly in edit mode (Right click on label and select Rename from popup menu)

If you need more information, please let me know.

Thanks, Suwit