Closed
Bug 244383
Opened 20 years ago
Closed 16 years ago
Inconsistent display of text after an rtl-override in message compose and message display windows (utf-8, Bidi, RTL, LTR)
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
FIXED
People
(Reporter: bugzilla, Assigned: mkaply)
References
()
Details
(Keywords: rtl)
Attachments
(1 file)
1.21 KB,
message/rfc822
|
Details |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7b) Gecko/20040421 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7b) Gecko/20040421 When replying to a certain message containing a devanagari Character (ि, Unicode 0x093F), Text direction is RTL instead of LTR. Even an english signature is inserted reversed as RTL. After Removing a Quote-sign from the end of the message, added text becomes LTR. Also, when not removing quote and just sending the message as is (with RTL added text), the added text becomes LTR. Can see this with TB 0.8. You can reproduce this with the message <news:40AFC93F.1020006@kuestner.org> ind de.test and alt.test Reproducible: Always Steps to Reproduce:
Reporter | ||
Comment 1•20 years ago
|
||
Adding test message
Comment 2•20 years ago
|
||
Confirmed with Thunderbird version 0.6+ (20040520).
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Wrong text direction of reply to Devanagari message (utf-8, Bidi, RTL, LTR) → Wrong text direction of reply to Devanagari message (utf-8, Bidi, RTL, LTR)
Comment 3•20 years ago
|
||
If you view source in attachment 149115 [details], you will see a line containing
=E2=80=AD=E2=80=AE
This represents a left-to-right override character followed by a right-to-left
override. The right-to-left override is causing the text after it to be reversed.
Reporter | ||
Comment 4•20 years ago
|
||
You are right. But before marking this bug invalid, why is the text after posting shown LTR?
Comment 5•20 years ago
|
||
I haven't been able to reproduce the bug yet. Are you replying in plain text or HTML?
Reporter | ||
Comment 6•20 years ago
|
||
I'm replying in plain text.
Comment 7•20 years ago
|
||
I can only reproduce the wrong text direction if I write some right to left characters in the mail. This is by design: if there are no intrinsically right-to-left displayable characters in a document, we don't do any Bidi processing, per the HTML spec at http://www.w3.org/TR/1999/REC-html401-19991224/struct/dirlang.html#h-8.2: "If a document does not contain a displayable right-to-left character, a conforming user agent is not required to apply the [UNICODE] bidirectional algorithm" You would see what you describe if you wrote Hebrew or Arabic characters (thus triggering Bidi processing) and then deleted them (which doesn't untrigger Bidi processing in an open window). After posting, the message contains no right-to-left characters and the right-to-left override is ignored. If that is what you did, this is probably INVALID. If not, there is an inconsistency somewhere which ought to be fixed.
Assignee: sspitzer → mkaply
Component: Composition → BiDi Hebrew & Arabic
QA Contact: giladehven
Reporter | ||
Comment 8•20 years ago
|
||
Thank you for trying to reproduce. I'm not exactly sure, what you are talking about, esp. if you are always talking about Compose window or the display of the message after posting. I will try to make it more clear: 1) When replying to the message linked above, ascii text (including the signature) is displayed rtl in the _compose window_. Also the signature is included rtl. 2) after sending, the text after rtl-override, which was rtl in compose window, is now displayed ltr in _message window_, when there are no rtl-letters after the rt-override. If I understand you right, 2) is due to the fact, that there are no rtl-characters in the message. As you stated in comment #3, 1) is due to the rtl-override. It seems not dependend on whether I use rtl-characters or not. The display in the compose window seems only be dependent on the rtl-override character: If I delete it, evereything afterwards is switching to ltr. (This is wat I erroneous thought is triggered by "removing a quote"). This means, that there is an inconsistency: The message compose window is always changing direction according to rtl-override. The message display is ignoring rtl-override when no rtl-letters occure after rtl-override. Consequently, message display in compose window differs from how the message is displayed after sending.
Reporter | ||
Comment 9•20 years ago
|
||
Changing summary.
Summary: Wrong text direction of reply to Devanagari message (utf-8, Bidi, RTL, LTR) → Inconsistent display of text after an rtl-override in message compose and message display windows (utf-8, Bidi, RTL, LTR)
Updated•20 years ago
|
Product: MailNews → Core
Comment 10•16 years ago
|
||
Mass-assigning the new rtl keyword to RTL-related (see bug 349193).
Keywords: rtl
Component: MailNews: BiDi Hebrew & Arabic → Layout: Text
QA Contact: giladehven → layout.fonts-and-text
Comment 11•16 years ago
|
||
(In reply to comment #7) > I can only reproduce the wrong text direction if I write some right to left > characters in the mail. This is by design: if there are no intrinsically > right-to-left displayable characters in a document, we don't do any Bidi > processing. Hmm, Simon, is this still supposed to be true? data:text/html,abcde‮abcde shows up for me as abcdeedcba.
Comment 12•16 years ago
|
||
No, that has not been true since 2005-04-09, with the checkin of bug 177148.
Comment 13•16 years ago
|
||
So, I'm closing this as FIXED (by bug 177148) - there's no more inconsistency (whatever the source of the original inconsistency was).
You need to log in
before you can comment on or make changes to this bug.
Description
•