W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1999

Re: Hi

From: Raffaele Sena <raff@nuvomedia.com>
Date: Thu, 24 Jun 1999 21:17:16 -0700
Message-ID: <009901bebec1$9e6d95a0$303728ce@aromatic.com>
To: <suxm@cpqmail.cs.tsinghua.edu.cn>, <www-lib@w3.org>


> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:29 GMT