Open Bug 20195 Opened 25 years ago Updated 3 months ago

[mozTXTToHTMLConv] Recognize ASCII-art and -tables (display some paragraphs in fixed width font when plaintext is viewed in variable width font)

Categories

(MailNews Core :: Backend, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: BenB, Unassigned)

References

Details

(Whiteboard: [wontfix?])

If the user chooses a proportional font for reading plain text mail, every preformatted text gets messed up. The IMO best proposal from both n.p.m.mail-news and alt.ascii-art was to scan after more than one space in sequence (and propably [TAB]s) inside the text (not to trigger on a simple indention). However, this should be done paragraph based (i.e. at recognition, the whole paragraph is turned into <pre>) to avoid a switch of the font family inside a paragraph. This in not easy to to with libmime, which is completely line-based.
Assignee: rhp → mozilla
Ben, If you want to tackle this stuff thats great, but I'm just neck deep in work right now and feeling quite doomed. - rhp
Assignee: mozilla → nobody
Summary: Recognize ASCII-art and -tables → [HELP WANTED] Recognize ASCII-art and -tables
Whiteboard: [HELP WANTED]
I just wanted to document this RFE. HELP WANTED.
Depends on: 20212
Keywords: helpwanted
Summary: [HELP WANTED] Recognize ASCII-art and -tables → Recognize ASCII-art and -tables
Whiteboard: [HELP WANTED]
QA Contact: lchiang → pmock
Working on it. Taking bug. It mostly works, but looks a bit silly in some cases, because I can switch the only the rest of a paragraph to monospace, if I detect a line being ASCII-Art, not the previous part, for the reasons given above. Will attach patch to bug 46993, when done.
/
Assignee: nobody → mozilla
Target Milestone: --- → M18
Status: NEW → ASSIGNED
Keywords: helpwanted
Moving out to M20, out of pity for poor Netscape :). Hope, it won't rott.
Target Milestone: M18 → M20
CC'ing mpt. We need this so that all his art will look good. :)
Recommend wontfix. This is an AI-complete problem, and I don't think Mozilla should try to solve it. For example, you will have false positives for: * people who use two spaces between their sentences * people (like me) who preserve original horizontal alignment of parts of quoted lines when splitting a quoted line. And you will have false negatives for: * the common GIFSCII conversion type of art (i.e. bitmaps converted to ASCII), which consists of a solid rectangular block of characters chosen because of their various darknesses (no space characters involved) * any other art which happens not to have more than one space in sequence anywhere -- e.g. smileys, other one-liner art 8//=/\-, and so on ... It would make far more sense, IMO, just to provide a keyboard shortcut for toggling between fixed-width and proportional-width text, like Pegasus Mail does.
Target Milestone: M20 → mozilla0.9.1
Update: I had a working patch, but lost it :-(((. See bug 46993 for details.
for mozTXTToHTMLConv
Component: MIME → Networking
Product: MailNews → Browser
Target Milestone: mozilla0.9.1 → ---
Changing personal priorities. Giving away most of my bugs :-( (reassigning to default owner). I will still track these bugs closely. If you need my input, feel free to ask me. New owner: Please do *not* close these bugs (as WONTFIX or whatever you may find) unless they are fixed. Rather, reassign to <nobody@mozilla.org>, if you don't want to work on them.
Assignee: mozilla → neeti
Status: ASSIGNED → NEW
QA Contact: pmock → tever
QA Contact: tever → pmock
reassign to nobody@mozilla.org
Assignee: neeti → nobody
mass assignment of text->HTML bugs to MailNews w/ esther as QA.
Component: Networking → Mail Back End
Product: Browser → MailNews
Version: Trunk → other
Component: Mail Back End → MIME
Summary: Recognize ASCII-art and -tables → [mozTXTToHTMLConv] Recognize ASCII-art and -tables
Product: MailNews → Core
Moving a bunch of mozTXTToHTMLConv bugs into Core / MailNews Backend to live with their bretheren.
Component: MailNews: MIME → MailNews: Backend
Filter on "Nobody_NScomTLD_20080620"
QA Contact: pmock → backend
Product: Core → MailNews Core
This bug continues and is a nuisance. I sometimes look at pages with electronic circuit diagrams in "ASCII art". Internet Explorer has ALWAYS displayed them correctly (possibly because people tweak them for IE); Firefox NEVER has. Example: http://www.repairfaq.org/REPAIR/F_smpsfaq.html Seek "3.3) Description of typical flyback type SMPS" (anyone interested in switch-mode power supplies might find the page interesting in its own right!). Workaround, obviously: render page with IE
Michael, this bug is about Thunderbird, not Firefox.
Sorry for reporting for Thunderbird rather than Firefox, had searched Bugzilla and not checked the report I'd found was for right component. Worse, the bug is due to my configuration; I'll report it here in case anyone finds it in a search; it can happen in any software. When displaying "ASCII art", the "picture" is garbled. Cause: although I'd initially specified a fount for monospaced text (in Firefox, but could happen anywhere), it had been changed during some long-ago update to Alba, the first alphabetically. Result is garbled picture in ASCII text with incorrect spacing, obviously.
(In reply to Matthew Paul Thomas from comment #7) > Recommend wontfix. +1
Priority: P3 → --
Summary: [mozTXTToHTMLConv] Recognize ASCII-art and -tables → [mozTXTToHTMLConv] Recognize ASCII-art and -tables (display some paragraphs in fixed width font when plaintext is viewed in variable width font)
Whiteboard: [wontfix?]
Severity: normal → S3
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → NEW
You need to log in before you can comment on or make changes to this bug.