[docbook-apps] Generating PDF from docbook on Linux (OSS)
hi there, I am looking for tool that would generate PDF file from a docbook file. I tried a couple without success: - forgedp, does not process MathML 2.0 equation at all (no output!), - publican simply aborts on my machine (*) - xmlto fails not process MathML 2.0 equation (**), Document is simply: ?xml version=1.0 encoding=UTF-8? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [ !ENTITY % MATHML.prefixed INCLUDE !ENTITY % MATHML.prefix mml !ENTITY % equation.content (alt?, (graphic+|mediaobject+|mml:math)) !ENTITY % inlineequation.content (alt?, (inlinegraphic+|inlinemediaobject+|mml:math)) !ENTITY % mathml PUBLIC -//W3C//DTD MathML 2.0//EN http://www.w3.org/Math/DTD/mathml2/mathml2.dtd; %mathml;] article sect1 id=section_Description titleDescription/title para equation titleMy MathML example/title mml:math mml:mrow mml:mosum;/mml:mo mml:mn4/mml:mn mml:mo+/mml:mo mml:mix/mml:mi /mml:mrow /mml:math /equation /para /sect1 /article Could someone please let me know what are the command line tool that should be used for this particular example (debian system) ? I am thinking of a sequence xstlproc then fop, but I did not find any definitive guide. Thanks, -- Mathieu (*) http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=566271 (**) $ xmlto --with-fop pdf /tmp/math.xml I/O error : Attempt to load network entity http://www.w3.org/Math/DTD/mathml2/mathml2.dtd /tmp/math.xml:12: warning: failed to load external entity http://www.w3.org/Math/DTD/mathml2/mathml2.dtd; %mathml; ^ Entity: line 1: %mathml; ^ /tmp/math.xml:23: namespace error : Namespace prefix mml on math is not defined mml:math ^ /tmp/math.xml:24: namespace error : Namespace prefix mml on mrow is not defined mml:mrow ^ /tmp/math.xml:25: namespace error : Namespace prefix mml on mo is not defined mml:mosum;/mml:mo ^ /tmp/math.xml:26: namespace error : Namespace prefix mml on mn is not defined mml:mn4/mml:mn ^ /tmp/math.xml:27: namespace error : Namespace prefix mml on mo is not defined mml:mo+/mml:mo ^ /tmp/math.xml:28: namespace error : Namespace prefix mml on mi is not defined mml:mix/mml:mi ^ Making portrait pages on letter paper (215.9mmx279.4mm) math encountered in equation, but no template matches. mrow encountered in math, but no template matches. mo encountered in mrow, but no template matches. mn encountered in mrow, but no template matches. mo encountered in mrow, but no template matches. mi encountered in mrow, but no template matches. Jan 22, 2010 5:19:00 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree SEVERE: Couldn't find hyphenation pattern en - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Generating PDF from docbook on Linux (OSS)
Am Freitag, den 22.01.2010, 17:26 +0100 schrieb Mathieu Malaterre: I am looking for tool that would generate PDF file from a docbook file. I tried a couple without success: You can try dblatex too or xmlroff. But please allow me some words: - xmlto fails not process MathML 2.0 equation (**), Nope. a) You missed to define the mml namespace. b) Fop doesn't come with MathML support by default. Let me explain: Document is simply: [..] mml:math You did not define the mml namespace anywhere. Please add an xmlns:mml attribute accordingly (to article or the root element with the mml prefix). So these: /tmp/math.xml:23: namespace error : Namespace prefix mml on math is not defined mml:math ^ [..] math encountered in equation, but no template matches. disappear. Then to process the .fo file with Fop you can install the JEuclid FOP plugin [1][2]. Then the resulting pdf contains your equation. [1] http://jeuclid.sourceforge.net/jeuclid-fop/index.html [2] packages.debian.org/libjeuclid-fop-java Regards, Daniel - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Formatting an Inline Graphic in a List
Yes, the relative-align property is what you need here, and it is unfortunate that FOP does not yet support it. I don't know of a solution that works with FOP. You might need to go with a different XSL-FO processor. Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - From: Sam Fischmann s.fischm...@ghs.com To: docbook-apps@lists.oasis-open.org Sent: Thursday, January 21, 2010 6:14 PM Subject: [docbook-apps] Formatting an Inline Graphic in a List Hello, I am having difficulty getting an inline graphic to render nicely in the first line of a list when generating a PDF through FOP 0.95. The graphic is slightly higher than the font height, so I get something akin to this ASCII art example: 1. Everything is going fine 2. - My graphic is here |_|, see what I mean? 3. Back to normal I read http://www.sagehill.net/docbookxsl/InlineGraphics.html, but there are some listitems that contain graphics that aren't inlined, so line-stacking-strategy can't be set to font-height. I think that I want to align the base of the the fo:list-item-label to the base of the first line of the fo:list-item-body (that seems the most sensical to me in all use cases I could consider). The correct solution seemed to be setting relative-align=baseline in fo:list-item (http://www.w3.org/TR/2001/REC-xsl-20011015/xslspec.html#relative-align), but that didn't work... Then I saw FOP doesn't support it (http://xmlgraphics.apache.org/fop/compliance.html#fo-property-relative-alig n). Am I barking up the wrong tree and is there a more appropriate solution I may have missed? Thanks for any help or references, Sam Fischmann - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] ANN: oXygen/ XML Editor Manual available in print form
For those who like their manuals in printed form, XML Press has just published a print version of the oXygen/ XML Editor Manual (v11.1), available on Amazon and Barnes and Noble in the US and Canada (Europe and Japan will follow shortly). The contents are exactly the same as the pdf version available on the Oxygen website, but the cost is much cheaper than taking the pdf to your local copy shop, and the binding and cover are much nicer, too. I've included direct links to the two retailers. You can also find information at the XML Press website: http://xmlpress.net/publications/oxygen-xml-editor. Amazon: http://www.amazon.com/dp/098221913X Barnes and Noble: http://search.barnesandnoble.com/Oxygen-XML-Editor-Version-11-User-Manua l/SyncRO-Soft-Ltd/e/9780982219133/ (At the moment, the Barnes and Noble version is about 10% cheaper.) Best Regards, Dick Hamilton - XML Press XML for Technical Communicators http://xmlpress.net (970) 231-3624 - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] Generating PDF from docbook on Linux (OSS)
Am Freitag, den 22.01.2010, 18:19 +0100 schrieb Mathieu Malaterre: [..] $ fop -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl -xml /tmp/math.xml -pdf foo.pdf [..] Jan 22, 2010 6:10:33 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker WARNING: Unknown formatting object http://www.w3.org/1998/Math/MathML^math SAee the first URL I gave you. You must add the JEclid jars to the fop script. It probably also works be extending classpath and calling fop via java. Tested successfully locally on my Sid system. Regards, Daniel - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] author-year citations
Hi, I've got my citations in my docbook document and a docbook xml formatted bibliography. I can create the bibliography myself in postprocessing (using lxml and python), but I'm stumped on how to get author-year style citations. I have a book of many chapters, with each chapter having its own bibliography. However, I need to process the book as a whole since I need htmlhelp and a full index and toc xml files for later processing. I wonder if it is too hard to write the xsl to convert the citation to html in the author-year style? Is that too big of a task for an XSL newbie? thanks, --Tim Arnold - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] docbook thesis example
hello, i was hoping to find an example of docbook being used for a thesis. jsmith on IRC was kind enough to point to this example: https://svn.typo3.org/Teams/DEV3/trunk/doc/src/docbook/master-thesis/ which is great, but seems to be lacking bibliography stuff. additionally, is there an easy way to get auto-complete for a bibliography collection? such that if i'm type a citation id i get auto-complete. i'm using nXML emacs mode but i'm an emacs noob. thanks! -kurt j - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org