Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-17 Thread Guenter Milde
On 2015-06-17, Richard Heck wrote: > On 06/17/2015 04:53 AM, Guenter Milde wrote: >> Indeed. However, when exporting to XeTeX/LuaTeX, LyX uses >> "utf8-plain", which is the right thing for pandoc, too. > So, as you suggest, we can make our pandoc converted work with that, yes? This is just solv

Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-17 Thread Richard Heck
On 06/17/2015 04:53 AM, Guenter Milde wrote: Indeed. However, when exporting to XeTeX/LuaTeX, LyX uses "utf8-plain", which is the right thing for pandoc, too. So, as you suggest, we can make our pandoc converted work with that, yes? Richard

Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-17 Thread Guenter Milde
On 2015-06-15, Jürgen Spitzmüller wrote: > 2015-06-15 1:15 GMT+02:00 Uwe Stöhr : >> Am 14.06.2015 um 17:58 schrieb Jürgen Spitzmüller: >> I investigated: pandoc expects utf8 encoded input files. LyX has to take >>> care about that. The pandoc manual suggests to go via iconv: ... > You must tak

Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-16 Thread Jürgen Spitzmüller
Am Dienstag, 16. Juni 2015 schrieb Uwe Stöhr : >>>iconv -t utf-8 input.txt | pandoc | iconv -f utf-8 >> >> What do you propose? I have no idea. I just can point you to the problem, which must be solved in order to support pandoc. >> (On my PC the encoding for output TeX files is already UTF8.) >

Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-16 Thread Richard Heck
Pandoc uses the UTF-8 character encoding for both input and output. If your local character encoding is not UTF-8, you should pipe input and output through iconv: iconv -t utf-8 input.txt | pandoc | iconv -f utf-8 What do you propose? You

Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-16 Thread Uwe Stöhr
From:

Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-15 Thread Jürgen Spitzmüller
2015-06-15 1:15 GMT+02:00 Uwe Stöhr : > Am 14.06.2015 um 17:58 schrieb Jürgen Spitzmüller: > > I investigated: pandoc expects utf8 encoded input files. LyX has to take >> care about that. The pandoc manual suggests to go via iconv: >> > > If Pandoc is too buggy, we can revert the support for it.

Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-14 Thread Uwe Stöhr
Am 14.06.2015 um 17:58 schrieb Jürgen Spitzmüller: I investigated: pandoc expects utf8 encoded input files. LyX has to take care about that. The pandoc manual suggests to go via iconv: If Pandoc is too buggy, we can revert the support for it. For me it works, when I remove all appearances of

Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-14 Thread Jürgen Spitzmüller
2015-06-14 17:52 GMT+02:00 Jürgen Spitzmüller: > Hm. When I try to view odt of the Intro manual, pandoc breaks with this > error: > > pandoc: Cannot decode byte '\xfc': Data.Text.Encoding.Fusion.streamUtf8: > Invalid UTF-8 stream > Systemcall.cpp (291): Systemcall: 'pandoc -s -f latex -o "Intro.od

Re: [LyX/master] configure.py: add support for pandoc and docx

2015-06-14 Thread Jürgen Spitzmüller
2015-06-14 17:27 GMT+02:00 Uwe Stöhr: > commit 643f9ad4da72a94cee9edc64555ef1a4e7b4b495 > Author: Uwe Stöhr > Date: Sun Jun 14 17:27:21 2015 +0200 > > configure.py: add support for pandoc and docx > > - make LyX aware of the docx format > - add converters to odt and docx using the p