jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.15k stars 3.35k forks source link

[Feature request] DocBook 5 support #2164

Closed nr0cinu closed 8 years ago

nr0cinu commented 9 years ago

This would be nice. I guess it shouldn’t be very much effort, because DocBook 4.5 and 5 are very similar.

Thanks! :)

Bela

nr0cinu commented 9 years ago

PS: my temporary workaround is to use xsltproc and the db4-upgrade.xsl stylesheet included in DocBook 5

jgm commented 9 years ago

Are you talking about input (reader) or output (writer)?

Can you give a summary of the changes from 4.5 to 5 that would affect pandoc?

nr0cinu commented 9 years ago

I’m talking about the writer. The reader probably doesn’t care if it’s 4.5 or 5, because they are so similar.

For sure a DocBook 5 template would be needed, because the header is different.

Additionally it should only be minor tweaks, like renaming tags or attributes (ulink to link, id to xml:id, …)

A list of all the changes: http://docbook.org/tdg5/en/html/ch01.html#introduction-whats-new

adeluccar commented 9 years ago

Input would be cool too. I use pandoc to go from docbook4.5 to epub atm.

IvoBCD commented 8 years ago

Had a stab at adding docbook5 writer support; see pull requests https://github.com/jgm/pandoc/pull/2890 and https://github.com/jgm/pandoc-templates/pull/197

jgm commented 8 years ago

Closing since we now have the writer support.