Bug 176594

Summary: No autmatic detection of paragraph direction in the editor
Product: [Applications] lokalize Reporter: Khaled Hosny <dr.khaled.hosny>
Component: generalAssignee: Nick Shaforostoff <shafff>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mail
Priority: NOR    
Version: 0.2   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Khaled Hosny 2008-12-01 00:55:47 UTC
Version:           0.2 (using KDE 4.1.3)
OS:                Linux
Installed from:    Unspecified Linux

Lokalize's editor inherits its direction (whether rtl or ltr) from that of the UI, so when running Lokalize with English all paragraphs are left aligned, the same with Arabic interface; all will be right aligned.

Instead paragraph direction should be determined according to the first strong BiDi char, according to Unicode BiDi algorithm (UAX #9).

Kbabel used to do this, so may be its paragraph direction detection code (if there any) can be of some use for Lokalize. It'll be nice if doing this don't disable the ability to switch paragraph direction present in Qt4.
Comment 1 George Kiagiadakis 2008-12-17 11:31:49 UTC

*** This bug has been marked as a duplicate of bug 173657 ***