On Thu, Feb 27, 2014 at 10:23 AM, stefano franchi <stefano.fran...@gmail.com> wrote: > On Thu, Feb 27, 2014 at 9:18 AM, Richard Heck <rgh...@lyx.org> wrote: >> On 02/27/2014 03:44 AM, Prannoy Pilligundla wrote: >>> >>> >>> I also had a look at pandoc and tex4ht but as they are converters from >>> Latex,i feel we should only consider them as secondary options. >> >> >> I believe pandoc is pretty modular. One would only need to add LyX to the >> list of formats that it handles and then, like magic, we could convert the >> LyX format to anything else that pandoc handles. It seems to me that this >> would be a very good approach. >> > > Well, pandoc handles LaTex already (although not very successfully in > my tests. Management of citation, for instance leaves a lot to be > desired), so all it's missing is a docx "reader" to make the > back-conversion possible. > > That is, I understand pandoc to work this way: > > Reader module from format X produces ---> internal representation in > pandoc format which is used by --> writer module to produce format Y > > So we would need to add a doc writer module and possibly a lyx reader module. > I assume both would have to be written in Haskell (haven't really > looked carefully into this). >
Correction after morning coffee: The needed modules would be: 1. a docx|odt reader module 2. (possibly) a LyX reader module No writer module would be needed, as pandoc has an extensive collection already >From Pandoc's docs it seems that writers can be written in Lua, but not readers. Stefano -- __________________________________________________ Stefano Franchi Associate Research Professor Department of Hispanic Studies Ph: +1 (979) 845-2125 Texas A&M University Fax: +1 (979) 845-6421 College Station, Texas, USA stef...@tamu.edu http://stefano.cleinias.org