Bug 133333 - Thai3.2: Thai word wrap does not work correctly in Label text
Summary: Thai3.2: Thai word wrap does not work correctly in Label text
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-27 05:16 EST by Suwit Srivilairith CLA
Modified: 2006-04-18 04:00 EDT (History)
4 users (show)

See Also:


Attachments
Sample Model file contains Thai label (2.23 KB, application/octet-stream)
2006-03-27 05:19 EST, Suwit Srivilairith CLA
no flags Details
Screen capture indicates the word break problem (48.97 KB, image/png)
2006-03-27 05:20 EST, Suwit Srivilairith CLA
no flags Details
Thai word break works correctly in edit mode. (43.96 KB, image/png)
2006-03-27 05:21 EST, Suwit Srivilairith CLA
no flags Details
Thai text file with UTF-8 encoding (477 bytes, text/plain)
2006-03-27 22:52 EST, Suwit Srivilairith CLA
no flags Details
This picture shows the word break positions in the sample string. (7.08 KB, image/png)
2006-03-27 23:05 EST, Suwit Srivilairith CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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