Closed
Bug 123326
Opened 23 years ago
Closed 23 years ago
Text decoration and accent letter
Categories
(MailNews Core :: Internationalization, enhancement)
MailNews Core
Internationalization
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 106028
People
(Reporter: j.queinnec, Unassigned)
Details
Attachments
(4 files)
In Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.8) Gecko/20020202
Text decoration (ie *bold* or /italic/) don't work if the word begin or end with
an accent letter (for example éèàçù ...).
*test* or *testés* give the world in bold
but *àtester* or *testé* don't "boldize" (this word mustn't exist I suppose) the
words
Comment 1•23 years ago
|
||
Confirmed on 2002-02-03-18, Win32, MathML/SVG, using Windows XP Pro (OS => All?).
Comment 2•23 years ago
|
||
WinNT and WinXP are not different enough to warrant an ALL, but setting status
to NEW. :)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Do you mean the bold/italic display is not working in mail body?
I don't see this problem. Could you please include reproduce steps or attach a
testing mail to this report? Thanks.
i am not able to reproduce this bug neither on Win2K, NT nor on Mac OSX. I
tried Composer/ Mail composer, in all cases when the string start or ends with
accented chars it is bold or italic if we chose so.
Comment 5•23 years ago
|
||
My Mac OS and Linux setups are both broken, so I can't test them at the moment.
Sorry.
Comment 6•23 years ago
|
||
ji: Yes, I figure that's what he means, because that's what's in fact not
working for me either.
Build ID: 2002-02-03-18, Win32, SVG/MathML
Platform: x86
OS: WinXP Pro
Charset: ISO-8859-1 (maybe that's the problem)
I've attached a sample mail as a testcase. Note that Mozilla might try to open
it through the browser which causes the text decorations not to be shown at all
(e.g. only ASCII). I actually haven't found any way to open it with Mozilla
_Mail_.
Reporter | ||
Comment 7•23 years ago
|
||
The proposed attachment is correct.
For test send to you a e-mail with this text :
1 *abcdef*
2 /abcdef/
3 *ért*
4 *azèert*
5 *qsdoè*
6 /àaazer/
7 /azeçezr/
8 /azeazù/
I use this option :
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
The line 1, 2, 4 and 7 are in bold or italic not the line 3, 5, 6 and 8.
This is of course for pure text e-mail not HTML mail.
Did you mean the bold/italic display for quoted plain text messages? (For new
plain text mail compose, there is no way to compose/display it in style) That
can be set from Edit | Preferences | Mail&Newsgroups | Message Display window,
and I don't have problems with that. After I select bold or italic for the
option, I can see the quoted message be displayed in style.
Reporter | ||
Comment 10•23 years ago
|
||
Comment 11•23 years ago
|
||
j.queinnec@comidoc.fr, question again: how did you compose a plain text mail
with some chars in bold/italic? Could you describe the steps? As I mentioned in
comments #8, for plain text mail, we can only display quoted mail in bold/italic
in reply messages.
And some chars in the sample strings (comments #7) are actually iso-8859-2
chars, like è and à, you should have a charset alert when sending out messages
containing those chars with mail charset pointing to iso-8859-1 or iso-8859-15.
If you ignore the alert and send it out anyway, it can't be displayed correctly
after received.
Reporter | ||
Comment 12•23 years ago
|
||
I don't compose an email with bold or italic caracter in plain text.
I compose email with word beetween "*" ou beetwenn "/". In this case, when you
read this email (in the sent box for example), the word beetween "*" must appair
in bold and the word beetween "/" must appair in italic.
This feature exist in most of unix mailreader.
I use iso-8859-15 charset and the caracters I use are legal in this charset.
The bug is that if I use accent letter like ιθηΰ legal in iso-8859-15 in beging
or end of the word, it don't appair in bold ou italic.
Comment 13•23 years ago
|
||
So here * or / has special meanings. It means the string between should appear
in bold or italic. Thanks for the explanation.
Comment 14•23 years ago
|
||
How it's supposed to work like ( for ji@netscape.com )
Comment 15•23 years ago
|
||
On the right of the image, you see a compose window where I typed
*bold*
_underline_
/italic/
On the left of it, you can see the results: in all cases, the special characters
remain, but text decorations are added.
This bug is about Mozilla not handling this feature correctly with accent
letters, as http://bugzilla.mozilla.org/attachment.cgi?id=68118&action=view shows.
Comment 16•23 years ago
|
||
Cc to ducarroz, putterman, is this a new feature? I don't see it in NS6.2.
Comment 17•23 years ago
|
||
no, but I think there is a pref for it somewhere. If I remember right, BenB
wrote that!
Comment 18•23 years ago
|
||
Cc to Ben, is this yours?
Comment 19•23 years ago
|
||
Yes, that's the TXT->HTML code (mozTXTToHTMLConv) I wrote.
The converter works as specified, see
<http://www.bucksch.com/1/projects/mozilla/16507/>, headings "Goals" and
"Structured phrases recognition". Relevant quotes:
"Failures should be minimized. A wrong recognition is a failure, not recognizing
a structure/formatting is not seen as failure."
"In general, if "delimiter plainTextTag alpha anyContent alpha plainTextTag
delimiter" is found, htmlTag is inserted as following..."
The exact meaning of "alpha" is defined by nsCRT::IsAsciiAlpha().
Maybe you want to modify that function or close this as WONTFIX.
Severity: normal → enhancement
OS: Windows NT → All
Hardware: PC → All
Comment 20•23 years ago
|
||
BTW: *Shut up!* is not made bold either, for the same reason.
Comment 21•23 years ago
|
||
What preference is used for this feature?
Comment 22•23 years ago
|
||
$grep struct mailnews.js
pref("mail.display_struct", true); // TXT->HTML in viewer; ditto
pref("mail.send_struct", false); // HTML->HTML during Send; ditto
Comment 24•23 years ago
|
||
WONTFIX.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Comment 25•23 years ago
|
||
Dumbass, Ben. It's nsCRT::Is*Ascii*Alpha(). Of course, that doesn't cover i18n
chars.
nhotta, is there any equiv function, which I should use to decide, if it's an
alpha (or whitespace, BTW), and which works internationally?
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Comment 26•23 years ago
|
||
That's a dupe of bug 106028. Ben, in which direction do want it to be resolved
as duplicate?
Comment 27•23 years ago
|
||
I'll dupe it on the older one. Further, I don't think, this is an enhancement.
The other bug gets this better.
pi
*** This bug has been marked as a duplicate of 106028 ***
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: MailNews → Core
Assignee | ||
Updated•17 years ago
|
Product: Core → MailNews Core
Comment 28•11 years ago
|
||
Duplicate bugs no longer need assignee, I suppose.
Assignee: ben.bucksch → nobody
You need to log in
before you can comment on or make changes to this bug.
Description
•