Initial work on PS and PDF output. Because these two backends share
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Apr 2004 13:17:48 +0000 (13:17 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Apr 2004 13:17:48 +0000 (13:17 +0000)
commit4334192268c4b1c0c27a91d043792a21bd8d1292
treecc37e6ee1698c33a72eaf3d818df40795908aa18
parente62b33025aa7174b4aafb1d89a6c178e9ceaf291
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.

git-svn-id: svn://svn.tartarus.org/sgt/halibut@4058 cda61777-01e9-0310-a592-d414129be87e
16 files changed:
.cvsignore
Makefile
bk_info.c
bk_man.c
bk_paper.c [new file with mode: 0644]
bk_pdf.c [new file with mode: 0644]
bk_ps.c [new file with mode: 0644]
bk_text.c
bk_whlp.c
bk_xhtml.c
halibut.h
help.c
main.c
misc.c
paper.h [new file with mode: 0644]
psdata.c [new file with mode: 0644]