Support line breaking for Thai text

Bug #171350 reported by Markpeak-users
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Medium
Unassigned

Bug Description

Line breaking is the big issue for Thai. Softwares
without Thai line breaking are unusable for ordinary
people, especially for DTP or graphics industry.

For your information, whitespaces are used to separate
between "sentences" or "phrases", not "words" as Latin
script. This is still different from East Asian
languages (CJK) which each character means one word. So
Thai line breaking needs dictionary to distinguish word
boundary and insert break points for display.

There are some Thai linebreaking library available on
major platforms (Windows, Linux, Mac):
- Windows applications can use Microsoft Uniscribe. IE
done this.
- Mac applications can use Apple own library,
integrated with OSX. Safari done this.
- Linux applications can use libthai, many GTK+ and Qt
applications use libthai for line breaking already.
- Another alternative library is ICU, which available
cross-platform too.

Since GTK+ and GNOME handle line breaking issue
perfectly via libthai and Inkscape is GTK+ application.
Adding line breaking for Inkscape is big advantafe for
Thai people. On Windows, it can use Uniscribe.

Tags: text ui
hash (hash-g)
Changed in inkscape:
status: New → Confirmed
Kris (kris-degussem)
Changed in inkscape:
importance: High → Medium
Revision history for this message
poju (popjussi) wrote :

This feature was implemented at some point.

Revision history for this message
poju (popjussi) wrote :

This is the SVG used to test. Using "นกนางนวล" and "เนื้อนวลนาง" as strings. The wbr happened at the correct point as the result shows correctly separated words based on dictionary.

Revision history for this message
poju (popjussi) wrote :

for reference "นกนางนวล" and "เนื้อนวลนาง" should be broke down like "นก-นางนวล" and "เนื้อ-นวล-นาง" since "นางนวล" is a single word you can't shrink the display width smaller than its width.

Revision history for this message
poju (popjussi) wrote :

Additional note. I am not sure if this is the feature of libthai or not. But I have it installed and it was loaded by Inkscape via Pango, afaiu.

Revision history for this message
poju (popjussi) wrote :

The screenshot was made from r14232 trunk at the time on Ubuntu 14.04 . BTW. Though I am sure this has been working for a long time but I don't know when.

jazzynico (jazzynico)
tags: added: text
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.