Bug 119359 - Hebrew keyboard: punctuations marks appear in wrong place in html messages
Summary: Hebrew keyboard: punctuations marks appear in wrong place in html messages
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: composer (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-02 06:46 UTC by mibadt
Modified: 2015-04-12 10:23 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot illustrating issue. (103.38 KB, image/png)
2009-02-02 12:54 UTC, Dotan Cohen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mibadt 2006-01-02 06:46:00 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    Mandriva RPMs
OS:                Linux

Hi,
I'm using Mandriva 2006_64 (fully updated) with KDE (3.4.2).
I've a problem sending HTML messages with KMail in Hebrew (I switch to Hebrew keyboard):
While coposing a new Hebrew message, the puctuations marks appaer in the right place in the compose winwow, but they move to the right margin both while wiewing the message in "sent mail" or received mail. When I turn off the HTML option (in compose) all puctuation marks appear in their place in all windows.

KMail is configured to use the system fonts, and my locale looks as following:

LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=he_IL.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=en_US.UTF-8
LC_MONETARY=he_IL.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=he_IL.UTF-8
LC_NAME=he_IL.UTF-8
LC_ADDRESS=he_IL.UTF-8
LC_TELEPHONE=he_IL.UTF-8
LC_MEASUREMENT=he_IL.UTF-8
LC_IDENTIFICATION=he_IL.UTF-8
LC_ALL=

Thanks
Comment 1 Diego Iastrubni 2007-05-03 18:55:40 UTC
The problem is that the HTML created by the composer does not DIR=rtl in the <P> elements. 
Comment 2 Dotan Cohen 2008-12-11 09:18:52 UTC
This seems to be a dupe of 59029, can someone confirm that Kmail is using the Kword part for exporting HTML? Thanks.
Comment 3 Thomas McGuire 2008-12-11 18:22:18 UTC
> This seems to be a dupe of 59029, can someone confirm that Kmail is using the Kword part for exporting HTML? Thanks.

KMail uses a QTextEdit-derived class, and uses toHtml() of QTextEdit at the moment. If that doesn't do RTL correct, it would be a Qt bug. We're planning to roll our own HTML generator, but I don't know the RTL situation there. Steve, is that supported at the moment?
Comment 4 Stephen Kelly 2009-02-01 21:40:15 UTC
Hi, sorry for the delay (and thanks for the reminder :) ).

The rich text builders do not currently support RTL, or at least I didn't implement anything in particular to make it work.

I'm not certain this is a qt bug, but at any rate, you say you are using KDE3.4, and I know nothing of that release or the corresponding qt release.

Can someone give me a way to reproduce this?
Comment 5 Dotan Cohen 2009-02-02 12:54:55 UTC
Created attachment 30867 [details]
Screenshot illustrating issue.

I only tested in plain text mail, I will test HTML mail in a few minutes. Here is my finding on plain text mail (Kmail 1.11.0 KDE 4.2.0):

Text in the compose subject field, compose body field, and Kmail message window (both subject and body) are displayed correctly. Text in the subject field of the Kmail message list is displayed incorrectly.

To reproduce, in the compose window, copy and paste this text into the subject and again the body:
שלום, עולם!

From right to left, that should be four letters, a comma, a space, four letters, an exclamation point. You may need to press RightShift-RightControl to set directionality of the compose window to RTL.
Comment 6 Dotan Cohen 2009-02-02 13:01:34 UTC
I can report that HTML messages behave exactly like the text messages do, as per my previous comment.

In my opinion this bug can be closed. The only thing that needs to be done is to detect RTL in the subject and if needed, to change the directionality. I can also add that my other preferred email client, Thunderbird, has the same flaw that Kmail does. I have not checked any other clients.
Comment 7 Laurent Montel 2015-04-12 10:23:22 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.