[Vim-latex-devel] Docbook 2 vim-help
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@ee...> - 2003-06-17 04:23:38
|
Hello, I just finished the first draft of a python program which is capable of converting a docbook xml file into a text file in vim-help format. As of now, it only supports a very limited set of tags. Only those which latex-suite needs as of now. As some of you might know, this was to enable writing all of the documentation for the vim-latex project in xml so it could be easily converted into a variety of formats. For a sample: XML file: http://vim-latex.sourceforge.net/tutorial/latex-suite.xml HTML file: http://vim-latex.sourceforge.net/tutorial/latex-suite.xml chunked HTML file: http://vim-latex.sourceforge.net/tutorial/latex-suite/index.html and finally, the vim-help file: http://vim-latex.sourceforge.net/tutorial/latex-suite.txt And the python program db2vim can be downloaded via anonymous cvs from sourceforge.net using: cvs -d:pserver:ano...@vi...:/cvsroot/vim-latex login cvs -d:pserver:ano...@vi...:/cvsroot/vim-latex co db2vim Running db2vim is simple: $ db2vim file.xml where file.xml has to be docbook xml variety. Any tags which db2vim does not understand will be ignored. There are no style-sheets needed. Please contact me if you are interested in extending this to more docbook tags. I am sure the tex-refs project uses a rich set of tags... As of now, I do not think I will have too much time to devote to this, although I will gladly help whoever is willing to extend this. You will need python 2.2 with xml.dom and xml.dom.minidom packages installed. Activestate python works well for windows. Thanks! Srinath |