On Thu, 29 Mar 2007, Abdelrazak Younes wrote:
> Hum, looking at the syntax I think it should be quite easy to modify the
> 'Plain Text' export of LyX so that it supports the wiki syntax.
Where is this code located?
Look at InsetBase::plaintext() and all its derivative. You have two options:
- add a new pmWiki()
- modularize plaintext() so that it can generate PmWiki tags optionally.
Ok. I made a note of it so I don't forget
http://wiki.lyx.org/Devel/ExportingToPmWiki
However, the more important question is the motivation for exporting a LyX
file as a PmWiki page?
Even though the syntax is simple, I for one hate to re-read the
documentation each time I want to add something. Other format like ReSt
might be of interest for python developers...
Hmm... not sure I understand. Do you mean you'd maintain a master document
in LyX, that you then export to PmWiki after you've made changes?
(If so, then any changes made to the wiki page will have been lost of
course)
PS. I think there are methods to import HTML to wiki, so LyX -> HTML ->
PmWiki is another alternative. I've never investigated it though.
It's a bit heavy because LyX->HTML does not exist directly... But why
not if it works.
It might be possible to go via some other formats as well, I don't really
know. But I'm still not clear about the purpose.
/C
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr