You are not logged in.

#1 2005-07-08 05:13:23

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

docbook-to-pdf

has anyone packaged anything that will convert a docbook XML to a PDF? if not, would anyone be interested if I were to package the docbook-tools and place them in AUR?

Offline

#2 2005-07-08 16:10:38

max_sipos
Member
From: Ithaca, NY
Registered: 2004-10-31
Posts: 106
Website

Re: docbook-to-pdf

I would like them in the AUR! smile

Offline

#3 2005-07-08 16:51:56

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: docbook-to-pdf

iBertus : put it in there dude!  if you can't it in there assume it ain't there smile

Offline

#4 2005-07-11 12:22:21

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: docbook-to-pdf

OK - I've got three packages, xmltex, passivetex and xmlto that i'll put on AUR in the next few days, once testing is complete and I iron out some of the bugs.

These pkgs will allow you to convert docbook XML to html, postscript and pdf, along with several other formats. However, packaging these is/was a pain in the ass so I don't promise perfection, yet.

Offline

#5 2005-07-12 16:55:05

max_sipos
Member
From: Ithaca, NY
Registered: 2004-10-31
Posts: 106
Website

Re: docbook-to-pdf

iBertus wrote:

OK - I've got three packages, xmltex, passivetex and xmlto that i'll put on AUR in the next few days, once testing is complete and I iron out some of the bugs.

These pkgs will allow you to convert docbook XML to html, postscript and pdf, along with several other formats. However, packaging these is/was a pain in the ass so I don't promise perfection, yet.

I'm looking forward to your packages.

By the way, I've gotten XHTML output working properly in Arch. Because it involved quite a bit of RTFM, I'm providing info in this post,  once the wiki is migrated to mediawiki I'll make a page "docbook on Arch". iBertus, if you would like to add some info, that would be great!

Here's what I have so far:

So to set up docbook running on arch:

pacman -S docbook-xml docbook-xsl libxslt libxml2

Assuming our docbook document is in File.xml.
To validate the XML file use:

xmllint --valid --noout File.xml

This will generate no output if the file is proper XML.
Then, to convert into a XHTML file (single file) use:

xsltproc /usr/share/xml/docbook/xhtml/docbook.xsl File.xml > Output.html

To convert into a a segmented XHTML file (each section in its own file) use:

xsltproc /usr/share/xml/docbook/xhtml/chunk.xsl File.xml

Offline

#6 2005-07-12 17:10:27

max_sipos
Member
From: Ithaca, NY
Registered: 2004-10-31
Posts: 106
Website

Re: docbook-to-pdf

And of course you can add these to ~/.bashrc:

alias doc2html1="xsltproc /usr/share/xml/docbook/xhtml/docbook.xsl"
alias doc2multihtml="xsltproc /usr/share/xml/docbook/xhtml/chunk.xsl"
alias docvalidate="xmllint --valid --noout"

Offline

#7 2005-07-14 00:15:16

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: docbook-to-pdf

thanks for the info! i'll try and get these packages on AUR once I get 'em working right. i've had several things happen in the past few days that have caused major delays.

Offline

#8 2005-07-14 23:25:49

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: docbook-to-pdf

this should to in the wiki


The impossible missions are the only ones which succeed.

Offline

#9 2005-07-15 00:11:05

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: docbook-to-pdf

The wiki is currently under the process to being migrated from phpWkiki to MediaWiki.  So it might be better to wait until it's finalized.

Offline

#10 2005-07-15 01:11:16

max_sipos
Member
From: Ithaca, NY
Registered: 2004-10-31
Posts: 106
Website

Re: docbook-to-pdf

Yeah, that's exactly what I said smile

Once the wiki is migrated, I'll be sure to put this info into wiki. If anybody has any info to add, fire away !

Offline

#11 2005-07-15 02:13:34

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: docbook-to-pdf

Ooops... I missed that point.

Offline

#12 2005-07-24 00:20:57

max_sipos
Member
From: Ithaca, NY
Registered: 2004-10-31
Posts: 106
Website

Re: docbook-to-pdf

OK, Ive added it to the wiki at:
http://www.archlinux.org/archwiki/index.php/Docbook

Offline

#13 2005-07-24 02:16:17

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: docbook-to-pdf

Thanks max! I've sorta gotten stalled with the PDF conversion stuff. I'll pick back up as soon as possible. Been busy the last few days getting my sig. other ready to start her PhD program this fall big_smile

Offline

#14 2005-07-24 12:57:08

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: docbook-to-pdf

Cool!  Best of luck to her smile

Offline

Board footer

Powered by FluxBB