Tartarus CVS: halibut: simon

tartarus-commits@lists.tartarus.org tartarus-commits@lists.tartarus.org
Tue, 13 Apr 2004 14:17:51 +0100


CVS Root:       /home/cvs
Module:         halibut
Changes by:     simon
Date:           Tue Apr 13 2004  14:17:51 BST

Log message:
Initial work on PS and PDF output. Because these two backends share
an enormous amount of preprocessing and differ only in their final
output form, I've introduced a new type of layer called a
`pre-backend' (bk_paper.c is one). This takes all the information
passed to a normal backend and returns an arbitrary void *, which is
cached by the front end and passed on to any backend(s) which state
a desire for the output of that particular pre-backend. Thus, all
the page layout is done only once, and the PS and PDF backends
process the same data structures into two output files.
Note that these backends are _very_ unfinished; all sorts of vital
things such as section numbers, list markers, and title formatting
are missing, the paragraph justification doesn't quite work, and
advanced stuff like indexes and PDF interactive features haven't
even been started. But this basic framework generates valid output
files and is a good starting point, so I'm checking it in.

Modified files:
    .               : .cvsignore Makefile bk_info.c bk_man.c
                      bk_paper.c bk_pdf.c bk_ps.c bk_text.c bk_whlp.c
                      bk_xhtml.c halibut.h help.c main.c misc.c
Added files:
    .               : paper.h psdata.c

Links:
http://cvs.tartarus.org//halibut/.cvsignore.diff?r1=1.1&r2=1.2
http://cvs.tartarus.org//halibut/Makefile.diff?r1=1.19&r2=1.20
http://cvs.tartarus.org//halibut/bk_info.c.diff?r1=1.6&r2=1.7
http://cvs.tartarus.org//halibut/bk_man.c.diff?r1=1.10&r2=1.11
http://cvs.tartarus.org//halibut/bk_paper.c.diff?r1=1.2&r2=1.3
http://cvs.tartarus.org//halibut/bk_pdf.c.diff?r1=1.2&r2=1.3
http://cvs.tartarus.org//halibut/bk_ps.c.diff?r1=1.2&r2=1.3
http://cvs.tartarus.org//halibut/bk_text.c.diff?r1=1.23&r2=1.24
http://cvs.tartarus.org//halibut/bk_whlp.c.diff?r1=1.23&r2=1.24
http://cvs.tartarus.org//halibut/bk_xhtml.c.diff?r1=1.37&r2=1.38
http://cvs.tartarus.org//halibut/halibut.h.diff?r1=1.15&r2=1.16
http://cvs.tartarus.org//halibut/help.c.diff?r1=1.6&r2=1.7
http://cvs.tartarus.org//halibut/main.c.diff?r1=1.24&r2=1.25
http://cvs.tartarus.org//halibut/misc.c.diff?r1=1.15&r2=1.16
http://cvs.tartarus.org//halibut/paper.h?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.tartarus.org//halibut/psdata.c?rev=1.1&content-type=text/vnd.viewcvs-markup