Re: Question about page formatting in the PHP docs
Gabor Hojtsy <[email protected]>
| Newsgroups | gmane.comp.php.documentation.windows |
|---|---|
| Message-ID | <[email protected]> |
Hi Rubens!
You have choosen yourself a pretty hard job if you would like to make
the extended CHMs work on Gnome... Since most of the JS code used inside
are aimed to be put at Internet Explorer. In a future CHM version we
will certainly generalize the code, but since at the time there was no
non-Windows CHM viewer on the horizon, there was no need to take our
time with cross-platform coding...
> I am writing (yet another) CHM viewer for Linux (this one for Gnome),
> and I have been trying to get the PHP (build 12) docs to work with it.
> I've got two questions:
>
> 1. Some html pages in the PHP CHM contain something like:
> <html>
> <head>
> ....
> </head>
> <body>
> <div id="pageContent" style="display:none;">
> ....
> </div>
> </body>
> </html>
>
> My HTML widget will parse this and think that it should not display
> anything because of the "display:none" that encloses all of the
> text (same happens on Mozilla).
>
> Maybe this is a problem with the widget I am using, but I was just
> interested to know what is the purpose of that in your files.
Yes, this hides the whole page. Then when the aproppriate theme is
loaded the page is displayed again by the theme. I expect that you have
used the CHM before, and this is the reason that you have choosen to
make it work on Gnome. The theme loading process is explained in the CHM.
> 2. Your Topics file contains an entry that looks like:
> <tag attr="Empty("0")">
> And my XML/HTML parsers all break when they try to read this because
> of the embedded ". I was just wondering what is the function of that
> attribute.
Hm, this is certainly broken, but the Windows parser understands it...
Probably the windows compiler makes this out of the properly escaped TOC
we give to it. Actually we have a section [1] in the manual, which has
this title for ages, so it needs to be reflected somehow in the CHM too.
[1] http://www.php.net/manual/en/migration4.empty.php
> By the way, if anyone is interested, the program I am writing is called
> GnoCHM, and lives here:
> http://gnochm.sourceforge.net
Great. I would suggest you try to make the simpler PHP documentation
CHMs work first. :)
Happy holidays!
Goba
--
PHP CHM Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php