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
As a consequence HOME and END keys doesn't work properly when there is a space at the end of the line.
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.
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 :)
Bug 285363 is related.
Created attachment 65773 [details] Home and End key e.g don't move the cursor at all
Sure, and thanks for your care
Confirmed.
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.