Hallo.
I have written two modules to deal with things related to TeX.
TFM.pm allows you to read .tfm file and use information in it.
DVI.pm is for writting .dvi file -- it gives you methods to write
dvi commands rather transparently.
This is how you can use them:
use DVI;
use TFM;
my $dvi = new DVI("btput.dvi");
$dvi->preamble();
$dvi->begin_page();
my $font = new_at TFM("cmr10");
my $fn = $dvi->font_def($font);
$dvi->font($fn);
$dvi->word("AVA");
$dvi->hskip($font->space());
$dvi->word("Hallo.");
$dvi->end_page();
$dvi->postamble();
They are available at
http://www.*-*-*.com/ ~adelton/perl/DVI.pm and TFM.pm.
Please if you feel you have some comments about them, write me.
They will be further developed and your advise is highly
appreciated. Thank you.
A module for using TeX's hyphenation patterns files for finding
places in a word where it is possible to hyphen will be ready
soon.
Honza
--
------------------------------------------------------------------------
I can take or leave it if I please
------------------------------------------------------------------------