Pandoc 1.6 exports images in DocBook very strange. The captions are set wrong. I have to use:
cat text.db | sed -e 's/<inlinemediaobject>/<figure>/g' -e 's/<imageobject>//g' -e 's/<objectinfo>//g' -e 's/<\/objectinfo>/<mediaobject><imageobject>/g' -e 's/<\/inlinemediaobject>/<\/mediaobject><\/figure>/g' > text.db
The OBJECTINFO element seems to be worthless and the included title will be never shown: http://www.docbook.org/tdg/en/html/objectinfo.html
The way to include an image with caption correctly is described here: http://www.ibiblio.org/godoy/sgml/docbook/howto/using-docbook.html#INSERTING-PICTURES
Comment #1
Posted on Nov 23, 2010 by Grumpy DogI can't reproduce this. I don't get anything with . Pandoc gives me:
% pandoc -t docbook
caption caption
That seems almost identical to the second example you referenced (except no tag). Would it be better to output something like:
<figure>
<title>Picture's Title</title>
<graphic fileref="images/file"></graphic>
</figure>
I can't remember whether I looked into that option.
Comment #2
Posted on Nov 24, 2010 by Grumpy DogIssue 267 has been merged into this issue.
Comment #3
Posted on Nov 25, 2010 by Grumpy RabbitI don't know what I drank or what kind of drugs my server buys if I am away. Yes, there is no bug. The images are fine. Sorry.
Comment #4
Posted on Dec 8, 2010 by Grumpy Dog(No comment was entered for this change.)
Status: Invalid
Labels:
Type-Defect
Priority-Medium