hurray, I have a pdf

Original commit message from CVS:
hurray, I have a pdf
This commit is contained in:
Thomas Vander Stichele 2002-12-18 14:44:26 +00:00
parent 477892a29d
commit 16f4d3f27a
16 changed files with 45 additions and 35 deletions

View file

@ -16,7 +16,3 @@ CSS=base.css
EXTRA_DIST = $(XML) $(FIGS) $(CSS) magic-png magic-pdf EXTRA_DIST = $(XML) $(FIGS) $(CSS) magic-png magic-pdf
include $(srcdir)/../manuals.mak include $(srcdir)/../manuals.mak
check:
xmllint -noout -valid $(MAIN)

View file

@ -89,7 +89,7 @@
<title>The Hello world pipeline with MIME types</title> <title>The Hello world pipeline with MIME types</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/mime-world.&magic;" format="&magic;" /> <imagedata fileref="images/mime-world.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>

View file

@ -69,7 +69,7 @@
<title>A thread</title> <title>A thread</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/thread.&magic;" format="&magic;" /> <imagedata fileref="images/thread.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>

View file

@ -20,7 +20,7 @@
<title>Visualisation of a <classname>GstBin</classname> element with some elements in it</title> <title>Visualisation of a <classname>GstBin</classname> element with some elements in it</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/bin-element.&magic;" format="&magic;" /> <imagedata fileref="images/bin-element.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -187,7 +187,7 @@
<title>Visualisation of a <classname>GstBin</classname> element without ghost pads</title> <title>Visualisation of a <classname>GstBin</classname> element without ghost pads</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/bin-element-noghost.&magic;" format="&magic;" /> <imagedata fileref="images/bin-element-noghost.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -202,7 +202,7 @@
<title>Visualisation of a <classname>GstBin</classname> element with a ghost pad</title> <title>Visualisation of a <classname>GstBin</classname> element with a ghost pad</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/bin-element-ghost.&magic;" format="&magic;" /> <imagedata fileref="images/bin-element-ghost.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>

View file

@ -34,7 +34,7 @@
<title>Visualisation of a source element</title> <title>Visualisation of a source element</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/src-element.&magic;" format="&magic;" /> <imagedata fileref="images/src-element.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -62,7 +62,7 @@
<title>Visualisation of a filter element</title> <title>Visualisation of a filter element</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/filter-element.&magic;" format="&magic;" /> <imagedata fileref="images/filter-element.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -77,7 +77,7 @@
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/filter-element-multi.&magic;" <imagedata fileref="images/filter-element-multi.&magic;"
format="&magic;" /> format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -102,7 +102,7 @@
<title>Visualisation of a sink element</title> <title>Visualisation of a sink element</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/sink-element.&magic;" format="&magic;" /> <imagedata fileref="images/sink-element.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>

View file

@ -181,7 +181,7 @@ main (int argc, char *argv[])
<title>The Hello world pipeline</title> <title>The Hello world pipeline</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/hello-world.&magic;" format="&magic;" /> <imagedata fileref="images/hello-world.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>

View file

@ -20,7 +20,7 @@
<title>Visualisation of a <classname>GstBin</classname> element with some elements in it</title> <title>Visualisation of a <classname>GstBin</classname> element with some elements in it</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/bin-element.&magic;" format="&magic;" /> <imagedata fileref="images/bin-element.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -187,7 +187,7 @@
<title>Visualisation of a <classname>GstBin</classname> element without ghost pads</title> <title>Visualisation of a <classname>GstBin</classname> element without ghost pads</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/bin-element-noghost.&magic;" format="&magic;" /> <imagedata fileref="images/bin-element-noghost.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -202,7 +202,7 @@
<title>Visualisation of a <classname>GstBin</classname> element with a ghost pad</title> <title>Visualisation of a <classname>GstBin</classname> element with a ghost pad</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/bin-element-ghost.&magic;" format="&magic;" /> <imagedata fileref="images/bin-element-ghost.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>

View file

@ -9,7 +9,7 @@
<title>Visualisation of three connected elements</title> <title>Visualisation of three connected elements</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/connected-elements.&magic;" format="&magic;" /> <imagedata fileref="images/connected-elements.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>

View file

@ -34,7 +34,7 @@
<title>Visualisation of a source element</title> <title>Visualisation of a source element</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/src-element.&magic;" format="&magic;" /> <imagedata fileref="images/src-element.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -62,7 +62,7 @@
<title>Visualisation of a filter element</title> <title>Visualisation of a filter element</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/filter-element.&magic;" format="&magic;" /> <imagedata fileref="images/filter-element.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -77,7 +77,7 @@
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/filter-element-multi.&magic;" <imagedata fileref="images/filter-element-multi.&magic;"
format="&magic;" /> format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>
@ -102,7 +102,7 @@
<title>Visualisation of a sink element</title> <title>Visualisation of a sink element</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/sink-element.&magic;" format="&magic;" /> <imagedata fileref="images/sink-element.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>

View file

@ -89,7 +89,7 @@
<title>The Hello world pipeline with MIME types</title> <title>The Hello world pipeline with MIME types</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/mime-world.&magic;" format="&magic;" /> <imagedata fileref="images/mime-world.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>

View file

@ -181,7 +181,7 @@ main (int argc, char *argv[])
<title>The Hello world pipeline</title> <title>The Hello world pipeline</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/hello-world.&magic;" format="&magic;" /> <imagedata fileref="images/hello-world.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>

View file

@ -1 +1,2 @@
<!ENTITY magic "pdf"> <!ENTITY magic "pdf">
<!ENTITY MAGIC "PDF">

View file

@ -1 +1,2 @@
<!ENTITY magic "png"> <!ENTITY magic "png">
<!ENTITY MAGIC "PNG">

View file

@ -26,7 +26,7 @@
<title>a two-threaded decoder with a queue</title> <title>a two-threaded decoder with a queue</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/queue.&magic;" format="&magic;" /> <imagedata fileref="images/queue.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>

View file

@ -69,7 +69,7 @@
<title>A thread</title> <title>A thread</title>
<mediaobject> <mediaobject>
<imageobject> <imageobject>
<imagedata fileref="images/thread.&magic;" format="&magic;" /> <imagedata fileref="images/thread.&magic;" format="&MAGIC;" />
</imageobject> </imageobject>
</mediaobject> </mediaobject>
</figure> </figure>

View file

@ -2,9 +2,13 @@
# taken from selfdocbookx, http://cyberelk.net/tim/docbook/selfdocbookx/index.html # taken from selfdocbookx, http://cyberelk.net/tim/docbook/selfdocbookx/index.html
# modified by andy wingo <apwingo@eos.ncsu.edu> 14 dec 2001 for use by gstreamer # modified by andy wingo <apwingo@eos.ncsu.edu> 14 dec 2001 for use by gstreamer
# and a little bit by thomas as well
all: html ps pdf all: html ps pdf
check:
xmllint -noout -valid $(MAIN)
if HAVE_XSLTPROC if HAVE_XSLTPROC
if HAVE_FIG2DEV_PNG if HAVE_FIG2DEV_PNG
@ -39,17 +43,25 @@ ps:
pdf: pdf:
endif #!HAVE_XSLTPROC endif #!HAVE_XSLTPROC
$(DOC).fo: $(XML) $(PDFS) $(XSLFO) $(XSLFOMODS) #$(DOC).fo: $(XML) $(PDFS) $(XSLFO) $(XSLFOMODS)
cp magic-pdf magic # cp magic-pdf magic
xsltproc $(XSLFO) $(MAIN) > $@-t # xsltproc $(XSLFO) $(MAIN) > $@-t
mv -f $@-t $@ # mv -f $@-t $@
#
#$(DOC).pdf: $(DOC).fo
# pdfxmltex $< || true
# pdfxmltex $< || true
#
#$(DOC).ps: $(DOC).pdf
# pdftops $< $@
$(DOC).pdf: $(DOC).fo # thomasvs: use db2 because it seems a lot better
pdfxmltex $< || true # this ought to be checked for in configure, and the old stuff removed
pdfxmltex $< || true $(DOC).pdf: $(DOC).xml
db2pdf $(DOC).xml
$(DOC).ps: $(DOC).pdf $(DOC).ps: $(DOC).xml
pdftops $< $@ db2ps $(DOC).xml
$(DOC): $(XML) $(PNGS) $(XSLHTML) $(XSLHTMLMODS) $(DOC): $(XML) $(PNGS) $(XSLHTML) $(XSLHTMLMODS)
-$(RM) *.html -$(RM) *.html