Hi, On Sat, Oct 1, 2011 at 1:20 PM, Tommaso Cucinotta <[email protected]> wrote: > the attached patch adds the "-C" option to LyX, allowing to use its > converters > for arbitrary files conversions, e.g.:
Nice. > lyx -C /path/to/source.dia /path/to/dest.eps > lyx --convert-to /path/to/source.dia /path/to/dest.eps > > Despite being useful in general (as this is more powerful than ImageMagik's > convert), > this might be specifically useful when invoking elyxer for conversions to > HTML. > In such a case, instead of using the default converter for elyxer, one might > use "lyx -C" as the converter used by elyxer, and be able this way to > support > arbitrary image formats. I have uploaded to Savannah a test version which uses this feature: http://download-mirror.savannah.gnu.org/releases/elyxer/older/elyxer-lyx-C.py To use LyX as a converter: $ elyxer --converter=lyx input.lyx output.html It is a bit experimental at this moment, as I could not test it with your patch. > This option does not need any LyX buffer to operate with nor any LyX file to > be opened > when it is activated, that's why there's some unusual stuff in LyX.cpp > around > parse_convert_to(). > > Comments ? Great idea, and it makes LyX even more useful. Comments on your part? Alex.
