19 years ago
10 years ago


(Reporter: BenB, Unassigned)




Firefox Tracking Flags

(Not tracked)




19 years ago
This is son-of-17723.

The idea is primarily to have a powerful HTML->TXT conversion, which is used
e.g. by mailnews, when composing in HTML editor and sending plain text (this is
a very common case).

However, it would be very cool to have a Mozilla, that can run (only) on a text
console, i.e. a replacement for lynx (which currently doesn't even support

<quote src="bug 17723">
HTMLToTXTSinkStream and related files are a mess.
To get some flexible structure, we have to design a browser
minus interactivity plus different linebreak strategies (filled for tables,
plain, flowed etc.). We not just have an existing design, but also a lot of
code, we can reuse: NGLayout.

The plan is to at least reuse everything until nsCSSFrameConstructor (see
<>), propably some of the nsIFrames.

The problem is my limited knowledge about NGLayout and XPCOM. More detailed: I
don't know, how to decide somewhere at the webshell, which
set of frames (2D-graphical or text) to use.


Comment 1

19 years ago
From my webpage for bug 17723 (will be disconnected now):

The aim is to make the TXT output more modular. Working are the following cases: 

  + unformatted: just the text 
  * formatted:   trying to do something useful with lists, em, h1 etc. and line
  * flowed:      formatted plus implementing RFC2646 

But there's at least one more proposal: Out-of-band SGML. Additionally, I want
to add support for tables, that do
wrapping, too. 

All these cases are coded more or less in the Write function in
nsHTMLToTXTSinkStream, because they follow
the (optional) formatting like bold, but that it makes the function a mess. 

Thus the goal is to make all this more modular and flexible. 


19 years ago
Keywords: helpwanted

Comment 2

18 years ago
Sounds like a cool feature! :)
Can't we "just" implement a /gfx/ for text mode? Maybe using aalib?
Summary: Create text port → Create text mode port
Depends on: 118557
Filter on "Nobody_NScomTLD_20080620"
QA Contact: sujay → dom-to-text
You need to log in before you can comment on or make changes to this bug.