Bug 226895 - Thai3.4: Thai line break does not work correctly on GEF's label
Summary: Thai3.4: Thai line break does not work correctly on GEF's label
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-14 06:53 EDT by Suwit Srivilairith CLA
Modified: 2008-04-14 07:03 EDT (History)
4 users (show)

See Also:


Attachments
Screen Capture (26.81 KB, image/gif)
2008-04-14 06:53 EDT, Suwit Srivilairith CLA
no flags Details
Sample Thai text file (UTF-8) (477 bytes, text/plain)
2008-04-14 06:56 EDT, Suwit Srivilairith CLA
no flags Details
Thai logic file for problem reproduction (2.23 KB, application/octet-stream)
2008-04-14 06:57 EDT, 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 2008-04-14 06:53:49 EDT
Created attachment 95893 [details]
Screen Capture

Build ID: I20080330-1350

Steps To Reproduce:
1) Run Eclipse 3.4 platform
2) Select File->New->Example from menu
3) Select Logic Diagram under GEF(Graphical Editing Framework) and click Next > button
4) Select the parent folder
4) Enter ThaiModel.logic as File name and select Empty Model for Logic Model Samples
5) Click Finish button
6) Click label icon at Palette View to create label in the logic editor
7) Click on the label's text and type Thai text for the label (Please find the sample Thai text in the attached sampleThaitext.txt file).
8) Click at the outside of the label to accept text.

Problem: Thai line break position in GEF label are incorrect. For example, some Thai characters cannot be the first character of the line.
You can find the linebreak problem in attached screenshot.
Please use Java or ICU 's Iterator class to identify word break or line break position for Thai locale.
Note: Thai line break within label works correctly in edit mode only.

Regards, Suwit
Comment 1 Suwit Srivilairith CLA 2008-04-14 06:56:17 EDT
Created attachment 95894 [details]
Sample Thai text file (UTF-8)
Comment 2 Suwit Srivilairith CLA 2008-04-14 06:57:56 EDT
Created attachment 95895 [details]
Thai logic file for problem reproduction