Community
Participate
Working Groups
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
Created attachment 36977 [details] Sample Model file contains Thai label
Created attachment 36978 [details] Screen capture indicates the word break problem
Created attachment 36979 [details] Thai word break works correctly in edit mode.
Please provide string in unicode.
Created attachment 37039 [details] Thai text file with UTF-8 encoding Please use thai string in the attached UTF-8 text file (SampleString.txt)
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
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.
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