[Konsole-devel] [Bug 279048] When using RTL interface, do not make terminal emulator RTL

Jekyll Wu adaptee at gmail.com
Sat Oct 15 04:43:56 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=279048





--- Comment #1 from Jekyll Wu <adaptee gmail com>  2011-10-15 04:43:56 ---
First of all, I only have limited knowledge about LTR & RTL because I
personally only use Chinese and English. So feel free to correct my wrong
understanding of the problem.

Konsole does contain the code for forcing LTR in the terminal area :

    QWidget::setLayoutDirection(Qt::LeftToRight);

However, according to the Qt doc[1], that method does not influence text layout
direction anymore since Qt-4.7. So this problem is basically a regression
caused by upstream change. I am not sure about that statement because I have
never used RTL before and have no idea how konsole behaved with old version of
Qt.

One solution is to force QPainter to use LTR when drawing text. The result
seems fine to me, but I am, again, not sure because I do not understand neither
Arabic or Hebrew so I do not know whether it causes new regression in
displaying characters from those languages in the terminal area.

So, if possible, could you please try this simple hack[2] and give some
feedback?

[1] http://doc.qt.nokia.com/latest/qwidget.html#layoutDirection-prop
[2] https://github.com/adaptee/konsole/tree/LTR-terminal-area

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the konsole-devel mailing list