Bug 154705 - When typing in an right-to-left script, the text is not right-aligned
Summary: When typing in an right-to-left script, the text is not right-aligned
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-27 20:52 UTC by mutlu inek
Modified: 2008-07-27 19:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
This shows this (KDE4 SVN) problem in KWrite. (16.18 KB, image/png)
2007-12-27 20:55 UTC, mutlu inek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mutlu inek 2007-12-27 20:52:46 UTC
Version:           SVN r753240 (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.2.2 
OS:                Linux

When you start a line with a character of an rtl language, the line should automatically be right-aligned (as it is in KDE3); instead, it is left-aligned.
Comment 1 mutlu inek 2007-12-27 20:55:10 UTC
Created attachment 22706 [details]
This shows this (KDE4 SVN) problem in KWrite.
Comment 2 Maksim Orlovich 2007-12-27 20:56:28 UTC
What sort of typing locations are you talking about?
Comment 3 Thomas McGuire 2007-12-27 20:59:01 UTC
QTextEdit in Qt < 4.4 has a bug, see http://trolltech.com/developer/task-tracker/index_html?method=entry&id=181177.
I am not sure if KWrite uses QTextEdit though.
Comment 4 mutlu inek 2007-12-27 21:35:51 UTC
Maksim, I am not sure what you mean by "typing locations." If I start typing in Arabic script, the characters should not only be drawn from right to left (as they are), but also automatically right-aligned. As you can see in the screenshot, they are left-aligned like Roman text. If I misunderstood you, could you rephrase your question?
Comment 5 Maksim Orlovich 2007-12-27 21:39:23 UTC
re: c#3 KWrite does not use QTextEdit.

to reporter: basically, I am wondering about what applications have the problem, and in what places in them. There may be multiple bugs involved.
Comment 6 mutlu inek 2007-12-27 21:51:41 UTC
Maksim: This problem is not application specific. As seen in the screenshot, it exists in KWrite. I quickly checked random programs and found it in every single case:

- Dolphin's tagging textbox in the information panel
- Parley's search box and vocabulary list
- KWordQuiz's search box and vocabulary list
- KNotes
- Marble's search box
- SameGame's High score list
- all of KAddressBook's fields


It does, however, work in KOffice2's KWord (recent SVN)!
Comment 7 mutlu inek 2008-07-27 19:17:59 UTC
I just checked with the final 4.1 and it works perfectly now. The line even switches depending on whether it contains more RTL or LTR text. Awesome! :)

IIRC I have to thank Diego Iastrubni. So there: thank you!