[Vim-latex-devel] Re: tex-refs project and xml to vim-help conversion
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2003-02-01 20:30:09
|
On Sat, 1 Feb 2003, Michael Wiedmann wrote: > > <table> > > <tr><td colspan=2>=====================================================================</td></tr> > > <tr><td>Section name</td><td align=right>*section-tag*</td></tr> > > </table> > > This might need some complicate customization, but I can ask for some > help in the DocBook-Apps ML. Could you please test before, whether > this output would produce the wanted TXT output if dumped with lynx/w3m? Lynx behaves somewhat strangely... Doing lynx -dump test.html > test.txt produces something like: ===================================================================== Section name *section-tag* But if I do lynx test.html and from within lynx do print -> save to local file -> test.txt then I correctly get: ===================================================================== Section name *section-tag* I still do not quite see why it produces extra leading spaces, but that is easy to take care of... > <para> foo foo foo foo <emphasis>bar bar</emphasis> foo foo foo</para> > > If you completely ignore the contents of the <emphasis> tag, then you'll > loose the information inside the tag. Just copy the text content of > any unknown tag to the output file and don't do any sepcial treatment > for this tag. Okay... Its trivial enough to just process all text within unkwown tags in python... It looks like customizing docbook xsl stylesheets is a complicated affair from what you said about customizing the output of the section tag. So another question: how hard is it to add tags of our own... For example, in a vim help file, we typically describe vim options in a consistent manner which lends itself nicely to markup. (For example try :help 'statusline'). We could do the same thing with a series of <table>'s but then we'll have to take care of the indexing and stuff ourselves which kind of defeats the purpose of docbook. Srinath |