Handling Greek chars with HTMLDoc

Author Rouvas Stathis, <rouvas@di.uoa.gr>
http://www.di.uoa.gr/~rouvas
University of Athens
Dept.of Informatics
Date 13/06/2003
Problem PDF and PostScript files created did not contain Greek chars
OS : Linux (SuSE.8.0)
I have no idea whether this problem exists in Windows or if the solution presented here is usable or even appropriate
Software htmldoc-1.8.23 on Linux (SuSE.8.0)
Solution Replace HTMLDOC fonts with those extracted from this file.
PDF files are created OK.
Usage htmldoc [options] --charset iso-8859-7 [file|URL]
Resources used
  1. HTMLDOC suplied documentation
  2. ttf2pt1, for converting TTF fonts.
  3. Smart package of Microsoft's core fonts
Description Creating PDF documents containing Greek chars was not possible as the PDF file did not contain any Greek characters.
Creating necessary .afm anf .pfa files from .ttf ones using ttf2pt1, for example ttf2pt1 -a -e arial.ttf and renaming resulting arial.afm, arial.pfa to Helvetica.afm and Helvatica.pfa, solved the problem.
Doing the same for Times and Courier, completed the set.

As a sideffect, the supplied .tar.gz file contains mappings for all languages contained in the original .ttf files not only for Greek characters. I haven't verified usability in other languages, but I suspect there should be no problems.

I haven't tested the PostScript generation process.

Installation Instructions
  1. Download and install HTMLDOC
  2. Download this file which contains a gzipped version of the fonts directory that is installed by HTMLDOC. The font files have been replaced with those generated by me, thus containing proper information for Greek character generation.
  3. Untar supplied file, thus creating fonts subdirectory
  4. Copy the contents of the fonts subdirectory created in previous step to the directory where you installed the original fonts of HTMLDOC. Propably /usr/local/share/htmldoc/fonts
  5. Done!