Bug 285496 - Regression: textDirection is set to LeftToRight instead of RightToLeft for Arabic text
Summary: Regression: textDirection is set to LeftToRight instead of RightToLeft for Ar...
Status: CONFIRMED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: 2.4-snapshots
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2011-11-01 17:38 UTC by Munzir Taha
Modified: 2013-10-12 13:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Home and End key e.g don't move the cursor at all (4.65 KB, application/vnd.oasis.opendocument.text)
2011-11-17 08:37 UTC, Munzir Taha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Munzir Taha 2011-11-01 17:38:22 UTC
Version:           2.4-snapshots (using Devel) 
OS:                Linux

Kword correctly sets directionality for RTL text written in Kword. calligrawords has a regression here textDirection is set to LTR instead of RTL. e.g when I type an arabic word and space, the space jumps one letter before the beginning of the word instead of one letter after the word. I quess something along setLayoutDirection(Qt::RightToLeft) or setTextDirection(Qt::RightToLeft)is missed in the layout files.

Reproducible: Always

Steps to Reproduce:
Type an Arabic word then a space

Actual Results:  
The space jumps one letter before the beginning of the word

Expected Results:  
The space should jump one letter to the left after the word

This is different than bug https://bugs.kde.org/show_bug.cgi?id=285363 where I was speaking about Qt::AlignRightfcc
Comment 1 Munzir Taha 2011-11-01 17:41:49 UTC
As a consequence HOME and END keys doesn't work properly when there is a space at the end of the line.
Comment 2 Munzir Taha 2011-11-01 18:39:34 UTC
Note: Directionality also affects opening and closing parenthesis, brackets, braces, greater than and minus than signs, bullets and numbers, .... This is to remind me to test them all before closing this bug as fixed.
Comment 3 Sebastian Sauer 2011-11-17 07:04:47 UTC
Hi Munzir Taha Obeid,

lot of thanks for the feedback. Could you attach a arabic document that shows the issue? Would make it easier to test and fix. Lot of thanks in advance :)
Comment 4 Sebastian Sauer 2011-11-17 07:06:46 UTC
Bug 285363 is related.
Comment 5 Munzir Taha 2011-11-17 08:37:00 UTC
Created attachment 65773 [details]
Home and End key e.g don't move the cursor at all
Comment 6 Munzir Taha 2011-11-17 08:42:32 UTC
Sure, and thanks for your care
Comment 7 Sebastian Sauer 2011-11-17 11:51:16 UTC
Confirmed.
Comment 8 Munzir Taha 2013-10-12 13:44:25 UTC
Most of the issues in this bug is now resolved. The only thing remaining I think is selecting Arabic text with the keyboard (Shift+Arrow) would work in reverse order.