Convert word (.docx) to docbook

此生再无相见时 提交于 2019-12-04 03:18:13

There are several ways to script this, both using external scripts and scripts within OpenOffice. See the following links for some examples:

Some of the above links aren't using Java or Python, but the principles still apply and the scripts are typically short enough that they can be ported (the first example is in Ruby, but it's my personal favorite due to the simplicity).

At the risk of earning an archeologist's badge from SX, the answers should include a reference to Pandoc. This does not rely on open office.

pandoc -f docx -t docbook -o newdocbook.dbk --standalone original.docx

You can run openoffice in server mode and feed the docs to it without having to manually open each on.

One way: http://code.google.com/p/bungeni-editor/wiki/RunningTheJODConverterServer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!