Hello,
The following images:
http://www.freepascal.org/docs-html/ref/refsu5.html#x25-240003.1.1
Are too big, in the sense that there are huge white spaces in the height.
Are they supposed to be so big?
Are the images somehow generated?
thanks,

Mailing lists / fpc-devel / 2008-05
14 messages · 8 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hello,
The following images:
http://www.freepascal.org/docs-html/ref/refsu5.html#x25-240003.1.1
Are too big, in the sense that there are huge white spaces in the height.
Are they supposed to be so big?
Are the images somehow generated?
thanks,
Yes, they are, by the latex->html converter.
It's just one of the many problems.
Anyway, unless someone else starts providing a good set, the next releases will no have html manuals any more. Only PDF.
(unit references will of course still be in HTML).
Michael.
Michael Van Canneyt wroteAnyway, unless someone else starts providing a good set, the next releases will no have html manuals any more. Only PDF.
No, please =)
What do you mean by good set? A good set of pictures?
My idea would be just taking the current ones and cutting the white area. Shouldn't that be enougth?
No. A good set of complete HTML docs. The pictures are not the only issues. Ligatures are also an issue, special characters also, links are often wrong. The converter (tex4ht) is no longer maintained or supported by some big distros.
My idea would be just taking the current ones and cutting the white area. Shouldn't that be enougth?
No, because they would be overwritten the next time the docs are built.
Michael.
I second that.
So, the biggest issue is to find a latex to html converter?
Mattias
It has been an issue for 10 years now.
Exactly. There are 4 converters:
Latex2html - a huge perl script which needs more time and memory than God needed to create the earth, to convert the docs. We dumped it because it simply takes too long. It's good for small documents (articles), but not for books.
tex4ht - Was very good, but has some issues. Problem is that it's no longer maintained, and is no longer included in e.g. SuSE.
Hevea - also good, but is written in objective caml (and I thought Pascal was considered obscure) so it also doesn't install easily on a SuSE system.
tex2rtf - Very good, fast. But only supports a subset of latex, not enough for the documentation.
We once toyed with the idea of writing our own, but this is a monumental task. I can barely find the time to maintain fpdoc, let alone a full-blown latex parser. Although if someone writes one, I'll certainly put my shoulders under that...
Add to all that the fact that I never intended the docs to be converted to HTML in the first place - and I still don't - and you end up with the situation as it is now.
Note that this only concerns the manuals, not the unit references. fpdoc creates good HTML, and this will definitely be maintained.
Michael.
Last version is from 2007 and ubuntu (I checked 8.04 too) has it.
apt-get install tex4ht
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
tex4ht-common
Suggested packages:
libxml2-utils
Recommended packages:
dvipng
The following NEW packages will be installed:
tex4ht tex4ht-common
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 1526kB of archives.
After unpacking 22.1MB of additional disk space will be used. Do you want to continue [Y/n]?
Get:1 http://be.archive.ubuntu.com gutsy/main tex4ht-common 20070717-2 [1339kB]
Get:2 http://be.archive.ubuntu.com gutsy/main tex4ht 20070717-2 [187kB] Fetched 1526kB in 16s (94.5kB/s)
Selecting previously deselected package tex4ht-common. (Reading database ... 97036 files and directories currently installed.) Unpacking tex4ht-common (from .../tex4ht-common_20070717-2_all.deb) ... Selecting previously deselected package tex4ht.
Unpacking tex4ht (from .../tex4ht_20070717-2_amd64.deb) ... Setting up tex4ht-common (20070717-2) ...
texhash: Updating /var/lib/texmf/ls-R-TEXMFMAIN... texhash: Updating /var/lib/texmf/ls-R-TEXLIVE...
texhash: Updating /var/lib/texmf/ls-R...
texhash: Done.
Replacing config file /etc/texmf/texmf.cnf with new version
Setting up tex4ht (20070717-2) ...
Actually, last changes are from 2008-05-10:
http://www.cse.ohio-state.edu/~gurari/TeX4ht/bugfixes.html
Last version is from 2007 and ubuntu (I checked 8.04 too) has it. apt-get install tex4ht…
I meant maintained by SuSE.
I checked.
There are open bugreports about it, and it seems SuSE 11.0 will again contain tex4ht. I'll keep observing that, as I plan to upgrade to SuSE 11.0.
Hopefully, they have fixed some of the bugs. It seems there is now also openoffice support in tex4ht, so that would be very good.
So, the HTML afficiniados are in luck.
Michael.
Exactly. There are 4 converters: Latex2html - a huge perl script which needs more time…
2008/5/25 Michael Van Canneyt :
Is there a good latex to docbook converter? DocBook to HTML seems pretty good (well, the examples I have seen) If so, maybe it can be a two step process. latex -> docbook -> html
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
The process usually is docbook -> latex, not the other way round...
Michael.
Exactly. There are 4 converters: Latex2html - a huge perl script which needs more time…
There's also one other converter, namely, Hyperlatex [ http://hyperlatex.sourceforge.net/ ], written in Lisp.
It is mentioned in this page
http://small.dropbear.id.au/docs/latexhtml.html and seems to be actively maintained --the README file in the CVS says the latest version, v2.9, is dated November 2006.
BTW, I know nothing about Lisp or Latex; but I did some googling to help if I can.
On Sat, May 24, 2008 at 1:42 PM, Michael Van Canneyt No, please =) What do you mean by…
I second that too. :-)
Martin