[Dillo-dev]any documents about html parser?
Hello everyone: Are there any documents about html parser in Dillo? It seems HtmlParser.txt is too brief. And it is not easy to analyse the code about html parser. Thanks a lot!
On Mon, Jul 19, 2004 at 05:32:33PM +0800, Calvin Yu wrote:
Hello everyone: Are there any documents about html parser in Dillo? It seems HtmlParser.txt is too brief. And it is not easy to analyse the code about html parser. Thanks a lot!
I guess you're thinking of making dillo able to render chinese. There're several issues about this, I made an answer for the soon-to-be-publised Dillo FAQ. <q> ----------------------------------------------------------------- Q: Internationalization and Localization (i18n & l10n) The main problem for doing this is that the underlying library that Dillo uses (GTK+-1.2.x), doesn't support UTF-8 character rendering. Dillo currently supports ISO-LATIN1 and works internally with this encoding. GTK+-2.x supports UTF-8 but it's too big to be used with Dillo. After a long feasibility analysis FLTK was chosen as the next widget library for Dillo. Among other things FLTK supports UTF-8 and before Dillo is ported to it, i18n and l10n is frozen. There're some patches that enable Dillo to view some other encodings though. Beware that as Dillo works internally in Latin1, these patches do break some functionality and don't expect them to work flawlessly (specially with FORMS and entities). That's why they're not included in the main source tree. OTOH, we know they're worth to people longing to see their native language. These patches may apply to an old version of Dillo. Please don't hesitate to write to the original authors if you update them. Problems with these patches don't belong to our mailing list. If you update the patch, and the original author is no longer interested, you may tell us to update the link. Russian (also suports other encodings): http://bobuk.ipost.ru/packages/dillo/ Japanese: http://oldeee.see.ed.ac.uk/~rjt/dillo/japanese.html Polish: http://www.chemia.px.pl/cgi-bin/archiwum.cgi#dillo Some comments about Hindi and Chinese: these languages need an special technology to render, and they're not currently supported under FLTK, but the possibility is open. This is, the best path to add support for them in Dillo, when it runs over FLTK, is to add Chinese/Hindi support directly into FLTK. The FLTK developing team should be contacted for the details. Some References: Glibc's Texinfo documentation on iconv() (`info iconv`). http://developer.gnome.org/doc/whitepapers/gtki18n/index.html http://www.pango.org/ </q> Sorry if my guess was wrong! Cheers Jorge.-
participants (2)
-
Calvin Yu
-
Jorge Arellano Cid