Version: (using Devel) OS: Linux Installed from: Compiled sources Kopete's chat input box (the one you use to enter text for the conversation), is always left-aligned, even when the entire sentence is written in Hebrew (which requires right-alignment). The text is displayed fine in the chat window after it is entered.
I think this is a QTextEdit bug. It also applies for kmail's composer and probably other apps too. Could somebody confirm that it is a QTextEdit bug? For testcase, open Qt designer, create a new widget and add a new QTextEdit in it, then preview the form and type some hebrew or some other rtl language.
Unlike Qt3, Qt4 does not automaticlally decides the direction of the text editor. This should be addressed in KTextEdit and not kopete. The display, the text sent, is still sending rl=1 if QString::isRightToLeft(), this is why even tough the local text is borked, the remote is fine.
*** Bug 173237 has been marked as a duplicate of this bug. ***
According to bug 173237, this also applies for KLineEdit.
*** Bug 176362 has been marked as a duplicate of this bug. ***
*** Bug 176594 has been marked as a duplicate of this bug. ***
setting "rtl support" in qtconfig-qt4 (interface tab) solve this issue (i think)
I have that option selected in qtconfig and I have this problem as well. Also, this problem happens in version 4.2.
did you try pressing right CTRL + right SHIFT ? it aligns the entire paragraph (textbox) to the right left CTRL + left SHIFT does the opposite. temporarily work-around
> This should be addressed in KTextEdit and not kopete. Is this the bug for that, or does a new bug need to be filed?
(In reply to comment #1) > I think this is a QTextEdit bug. It also applies for kmail's composer and > probably other apps too. Could somebody confirm that it is a QTextEdit bug? For > testcase, open Qt designer, create a new widget and add a new QTextEdit in it, > then preview the form and type some hebrew or some other rtl language. Can someone confirm this bug is still present in Qt 4.6? I don't know how to "type hebrew", and if the bug needs to be filed to Nokia, I would need a description how it can be reproduced.
still persist in qt 4.6 & kde 4.3.4 (debian)
(In reply to comment #11) > (In reply to comment #1) > > I think this is a QTextEdit bug. It also applies for kmail's composer and > > probably other apps too. Could somebody confirm that it is a QTextEdit bug? For > > testcase, open Qt designer, create a new widget and add a new QTextEdit in it, > > then preview the form and type some hebrew or some other rtl language. > > Can someone confirm this bug is still present in Qt 4.6? I don't know how to > "type hebrew", and if the bug needs to be filed to Nokia, I would need a > description how it can be reproduced. It is, at least in the Kopete of KDE-4.4beta1. Hebrew text is aligned to the left by default. Pressing Ctrl+Shift indeed aligns it to the right. Regards, -- Shlomi Fish
@Christoph: You can copy and paste this text if you need Hebrew: כמה חול יכול לאכול ציפול חול ביום חול? Note that text ends in an RLM character, to keep the punctuation at the end (left) in this LTR environment (bugzilla). You might loose that character by copying the text, but the current issue should still be reproducible.
Christoph Feck, In Qt3, all display widgets set the paragraph direction to RTL when the first strong char was RTL. Now, iq Qt4 the direction is derived only from QWidget::layoutDirection(). People are asking for the automatic text direction to be ported on the K* widgets. This is still valid, and not a Qt4 bug - they changed behaviour in purpose.
> This is still valid, and not a Qt4 bug - they > changed behaviour in purpose. There may not be a programming error however this is unexpected behaviour with no obvious solution. Programming error or poor design decision, it is a bug.
I'd like to work on solving this problem (I am a programmer), but I need some guidance: why isn't the direction of the text preserved after pressing enter to submit the message? What causes it to become reset, and how can I preserve it?
I think this bug has been fixed in Qt. Could you check with Qt 4.7.4?
Kopete now works fine (In reply to comment #18) > I think this bug has been fixed in Qt. Could you check with Qt 4.7.4? OK, Kopete is now working fine with regards to the direction of the text in the chat input box.
In KDE 4.7.3 (Kopete 1.1.3) on Kubuntu 11.10 I can confirm that Ctrl-Shift can be used to set directionality in Kopete's chat input box.
However, in Kate I cannot set the directionality manually. It seems that Kate decides directionality by the first character of the line, and that there is no manual override.
Dotan, this bug is about QTextEdit (and derived classes). Kate does not use QTextEdit, so please report a new bug for Kate, with simple steps to reproduce.