Re: Hi

> Hi, everyone.
> I am writing a simple browser based on SVGA LIB in Linux.
> This simple browser implements HTML 3.2 parsing and can
> display images.
> How long will I take if this browser is based on Libwww ?
>
> Any suggestion will be appreciated.
>
    Well, in my experience a long time, but maybe not  :)

    I wrote such a browser based on libwww 2.17 and the LineMode browser.
    The way I did it was to use the GridText module (the HTML parser) as the
    interface to a "graphical formatter engine" (a sort of word processor
with no input).
    The HTML would parse the various tag and feed the formatter engine with
appropriate
    commands (i.e. addParagraph for <P>, addNewLine for <BR>, addImage for
<IMG>,
    addText for regular text and so on).

    When the parsing phase was completed, the "formatter" could format the
page and display
    it with no more support from the HTML parser.

    I was able to write pretty quickly a basic browser, then spent a very
long time to refine it.

    Libwww it's a good base for the various protocols and link management.
    Unfortunately for the graphical part you are on your own.

    But for my experience, even with what is available today, I think it's a
good start.
    If you start from one of the graphical browser or HTML widget available
(gzilla, the widget in KDE
    or GTK, etc.) you'll find they are much more difficult to understand
and/or to modify for your needs.

Hope this help,

    Raffaele

Received on Friday, 25 June 1999 00:15:14 UTC