Re: Mac-specific: tex2lyx won't run

2012-02-19 Thread Eric Weir
On Feb 18, 2012, at 8:16 AM, Eric Weir wrote: After both types of imports I get the following message: Could not find LaTeX command for character''(code point 0x2028) Some characters of your document are probably not representable in the chosen encoding. Changing the document encoding to

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-19 Thread Georg Baum
Guenter Milde wrote: On 2012-02-15, Georg Baum wrote: Jean-Marc Lasgouttes wrote: Georg, Juergen, I'd like some feedback on the soundness of the patch. I know next to nil about xetex, and I do not know what is the current state of the art wrt tex2lyx. Unfortunately I know next

Re: Mac-specific: tex2lyx won't run

2012-02-19 Thread stefano franchi
On Sun, Feb 19, 2012 at 11:00 AM, Eric Weir eew...@bellsouth.net wrote: On Feb 19, 2012, at 9:54 AM, stefano franchi wrote: On Sun, Feb 19, 2012 at 5:13 AM, Eric Weir eew...@bellsouth.net wrote: On Feb 18, 2012, at 8:16 AM, Eric Weir wrote: After both types of imports I get the following

Re: Mac-specific: tex2lyx won't run

2012-02-19 Thread Eric Weir
On Feb 19, 2012, at 1:36 PM, stefano franchi wrote: I am forwarding to the users' list. This problem starts to exceed my lyx/Latex skills. What I can say is this: If I: 1. Import your file with the modified latex converter 2. Change fonts to non-latex 3. Select full-coverage

Re: Mac-specific: tex2lyx won't run

2012-02-19 Thread Eric Weir
On Feb 18, 2012, at 8:16 AM, Eric Weir wrote: > After both types of imports I get the following message: "Could not find > LaTeX command for character''(code point 0x2028) > Some characters of your document are probably not representable in the chosen > encoding. Changing the document encoding

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-19 Thread Georg Baum
Guenter Milde wrote: > On 2012-02-15, Georg Baum wrote: >> Jean-Marc Lasgouttes wrote: > >>> Georg, Juergen, I'd like some feedback on the soundness of the patch. I >>> know next to nil about xetex, and I do not know what is the current >>> state of the

Re: Mac-specific: tex2lyx won't run

2012-02-19 Thread stefano franchi
On Sun, Feb 19, 2012 at 11:00 AM, Eric Weir wrote: > > On Feb 19, 2012, at 9:54 AM, stefano franchi wrote: > > On Sun, Feb 19, 2012 at 5:13 AM, Eric Weir wrote: > > > On Feb 18, 2012, at 8:16 AM, Eric Weir wrote: > > > After both types of imports I get

Re: Mac-specific: tex2lyx won't run

2012-02-19 Thread Eric Weir
On Feb 19, 2012, at 1:36 PM, stefano franchi wrote: > I am forwarding to the users' list. This problem starts to exceed my > lyx/Latex skills. What I can say is this: > > If I: > > 1. Import your file with the modified latex converter > > 2. Change fonts to non-latex > > 3. Select

Re: Mac-specific: tex2lyx won't run

2012-02-18 Thread Eric Weir
On Feb 17, 2012, at 9:36 AM, Eric Weir wrote: On Feb 16, 2012, at 7:47 PM, stefano franchi wrote: try this workaround to the workaround. Instead of creating a new converter, simply go to the existing LAtex(plain--lyx converter, look at the command string (the tex2lyx etc.) and stick a -e

Re: Mac-specific: tex2lyx won't run

2012-02-18 Thread Eric Weir
On Feb 17, 2012, at 9:36 AM, Eric Weir wrote: On Feb 16, 2012, at 7:47 PM, stefano franchi wrote: try this workaround to the workaround. Instead of creating a new converter, simply go to the existing LAtex(plain--lyx converter, look at the command string (the tex2lyx etc.) and stick a -e

Re: Mac-specific: tex2lyx won't run

2012-02-18 Thread Eric Weir
On Feb 17, 2012, at 9:36 AM, Eric Weir wrote: > On Feb 16, 2012, at 7:47 PM, stefano franchi wrote: > >> try this workaround to the workaround. Instead of creating a new >> converter, simply go to the existing LAtex(plain-->lyx converter, look >> at the comm

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
is set to auto, if I remember right). The fontspec package can be used with the XeTeX and LuaTeX engines but not with TeX and eTeX. This means that tex2lyx should look for \usepackage{fontspec} and set use_non_tex_fonts accordingly. (IMV, the name for this setting should also be changed

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
On 2012-02-15, Georg Baum wrote: Jean-Marc Lasgouttes wrote: Georg, Juergen, I'd like some feedback on the soundness of the patch. I know next to nil about xetex, and I do not know what is the current state of the art wrt tex2lyx. Unfortunately I know next to nothing about use_non_tex_fonts

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Eric Weir
On Feb 16, 2012, at 4:35 AM, Guenter Milde wrote: (IMV, the name for this setting should also be changed: - use_non_tex_fonts + use_fontspec this would prevent much confusion.) While I now know what it refers to, as a new user I would otherwise have found the new description mystifying.

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir
On Feb 15, 2012, at 1:57 PM, stefano franchi wrote: On Feb 15, 2012, at 10:55 AM, stefano franchi wrote: 3. In ToolsPreferencesFIle Converters, create a new converter from Scrivener to Lyx: select Scrivener in the From dropdown list, and Lyx in the to list. Enter the call to tex2lyx

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Jürgen Spitzmüller
Eric Weir wrote: (IMV, the name for this setting should also be changed: - use_non_tex_fonts + use_fontspec this would prevent much confusion.) While I now know what it refers to, as a new user I would otherwise have found the new description mystifying. I would seem that it's

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
dropdown list, and Lyx in the to list. Enter the call to tex2lyx with the UTF8 switch in the Converter field: tex2lyx -e UTF8  -f $$i $$o And, you need to create the new format before you can create the converter. Thanks, Stefano. Don't see how to do that, either. Scrivener does

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir
On Feb 16, 2012, at 9:37 AM, stefano franchi wrote: On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote: Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear on the dropdown list. Perhaps there is something on the list that would stand in for the

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir eew...@bellsouth.net wrote: On Feb 16, 2012, at 9:37 AM, stefano franchi wrote: On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote: Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear on the dropdown

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir
On Feb 16, 2012, at 10:45 AM, stefano franchi wrote: On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir eew...@bellsouth.net wrote: On Feb 16, 2012, at 9:37 AM, stefano franchi wrote: On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote: Thanks, Stefano. Don't see how to do

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
is set to auto, if I remember right). The fontspec package can be used with the XeTeX and LuaTeX engines but not with TeX and eTeX. This means that tex2lyx should look for \usepackage{fontspec} and set use_non_tex_fonts accordingly. (IMV, the name for this setting should also be changed

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
On 2012-02-15, Georg Baum wrote: Jean-Marc Lasgouttes wrote: Georg, Juergen, I'd like some feedback on the soundness of the patch. I know next to nil about xetex, and I do not know what is the current state of the art wrt tex2lyx. Unfortunately I know next to nothing about use_non_tex_fonts

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Eric Weir
On Feb 16, 2012, at 4:35 AM, Guenter Milde wrote: (IMV, the name for this setting should also be changed: - use_non_tex_fonts + use_fontspec this would prevent much confusion.) While I now know what it refers to, as a new user I would otherwise have found the new description mystifying.

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir
On Feb 15, 2012, at 1:57 PM, stefano franchi wrote: On Feb 15, 2012, at 10:55 AM, stefano franchi wrote: 3. In ToolsPreferencesFIle Converters, create a new converter from Scrivener to Lyx: select Scrivener in the From dropdown list, and Lyx in the to list. Enter the call to tex2lyx

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Jürgen Spitzmüller
Eric Weir wrote: (IMV, the name for this setting should also be changed: - use_non_tex_fonts + use_fontspec this would prevent much confusion.) While I now know what it refers to, as a new user I would otherwise have found the new description mystifying. I would seem that it's

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
dropdown list, and Lyx in the to list. Enter the call to tex2lyx with the UTF8 switch in the Converter field: tex2lyx -e UTF8  -f $$i $$o And, you need to create the new format before you can create the converter. Thanks, Stefano. Don't see how to do that, either. Scrivener does

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir
On Feb 16, 2012, at 9:37 AM, stefano franchi wrote: On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote: Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear on the dropdown list. Perhaps there is something on the list that would stand in for the

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir eew...@bellsouth.net wrote: On Feb 16, 2012, at 9:37 AM, stefano franchi wrote: On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote: Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear on the dropdown

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir
On Feb 16, 2012, at 10:45 AM, stefano franchi wrote: On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir eew...@bellsouth.net wrote: On Feb 16, 2012, at 9:37 AM, stefano franchi wrote: On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir eew...@bellsouth.net wrote: Thanks, Stefano. Don't see how to do

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
c" package (coupled with the use of polyglossia if the language-package setting is set to auto, if I remember right). The "fontspec" package can be used with the XeTeX and LuaTeX engines but not with TeX and eTeX. This means that tex2lyx should look for \usepackage{fontspec} and se

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Guenter Milde
On 2012-02-15, Georg Baum wrote: > Jean-Marc Lasgouttes wrote: >> Georg, Juergen, I'd like some feedback on the soundness of the patch. I >> know next to nil about xetex, and I do not know what is the current >> state of the art wrt tex2lyx. > Unfortunately I kn

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Eric Weir
On Feb 16, 2012, at 4:35 AM, Guenter Milde wrote: > (IMV, the name for this setting should also be changed: > - use_non_tex_fonts > + use_fontspec > this would prevent much confusion.) While I now know what it refers to, as a new user I would otherwise have found the new description

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir
dropdown list, and >>> "Lyx" in the "to list. Enter the call to tex2lyx with the UTF8 switch >>> in the "Converter field": >>> tex2lyx -e UTF8 -f $$i $$o > > > > And, you need to create the new format before you can create the con

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-16 Thread Jürgen Spitzmüller
Eric Weir wrote: > > (IMV, the name for this setting should also be changed: > > - use_non_tex_fonts > > + use_fontspec > > > > this would prevent much confusion.) > > While I now know what it refers to, as a new user I would otherwise have > found the new description mystifying. I would seem

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
create a new converter from >>>> Scrivener to Lyx: select "Scrivener" in the From dropdown list, and >>>> "Lyx" in the "to list. Enter the call to tex2lyx with the UTF8 switch >>>> in the "Converter field": >>>>

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir
On Feb 16, 2012, at 9:37 AM, stefano franchi wrote: > On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir wrote: > >> Thanks, Stefano. Don't see how to do that, either. Scrivener does not appear >> on the dropdown list. Perhaps there is something on the list that would >> stand

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread stefano franchi
On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir wrote: > > On Feb 16, 2012, at 9:37 AM, stefano franchi wrote: > >> On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir wrote: >> >>> Thanks, Stefano. Don't see how to do that, either. Scrivener does not >>> appear on

Re: Mac-specific: tex2lyx won't run

2012-02-16 Thread Eric Weir
On Feb 16, 2012, at 10:45 AM, stefano franchi wrote: > On Thu, Feb 16, 2012 at 9:40 AM, Eric Weir wrote: >> >> On Feb 16, 2012, at 9:37 AM, stefano franchi wrote: >> >>> On Thu, Feb 16, 2012 at 6:35 AM, Eric Weir wrote: >>> Thanks, Stefano.

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Guenter Milde
On 2012-02-14, stefano franchi wrote: On Tue, Feb 14, 2012 at 8:05 AM, Jean-Marc Lasgouttes tex2lyx is not really the culprit. The file you attach is broken : it does not use xetex/luatex, but it does use Unicode (XeTeX) (utf8) as encoding. As a result, the latex export of the file does

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jean-Marc Lasgouttes
Le 15/02/2012 10:51, Guenter Milde a écrit : IMV, it should try utf8 first in case this does not give a result. * if the file is pure ASCII, everything is fine * if the file is utf8 encoded, fine too * if another encoding is used, an error occures: try again with the second guess. That is

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: I have a patch that seems to work with XeTeX, I do not know anything about luatex (what shall we do with it?) I think your patch will work for LuaTeX as well. Jürgen

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jean-Marc Lasgouttes
Le 15/02/2012 11:38, Jürgen Spitzmüller a écrit : Jean-Marc Lasgouttes wrote: I have a patch that seems to work with XeTeX, I do not know anything about luatex (what shall we do with it?) I think your patch will work for LuaTeX as well. I thought LuaTeX could use encdings other than

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: I thought LuaTeX could use encdings other than utf8. Is utf8 the default? And does it use the same packages as XeTeX? LuaTeX can use other encodings, but not with non-tex fonts. So if \use_non_tex_fonts is true (this is what you want to check for, right?), the

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Eric Weir
On Feb 14, 2012, at 4:47 PM, Enrico Forestieri wrote: Eric Weir writes: I'm attempting to use the workaround suggested by Stefano to get LyX to recognize a Unicoded document as Unicoded. The workaround involves use of the tex2lyx command. I'm on a Mac. When I run the command I get

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread stefano franchi
of the tex2lyx command. I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx, however, the file  shows up in two locations:  /Applications/LyX.app/Contents/MacOS and  /Applications/TeX/LyX.app/Contents/MacOS How do I get the command to run? Why don't

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Eric Weir
the call to tex2lyx with the UTF8 switch in the Converter field: tex2lyx -e UTF8 -f $$i $$o 4. Click Add and click Save. Now you should have the Scrivener (or whatever you called the format) option in FileImport, without needing to go to the command line. In fact Lyx does internally

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Guenter Milde
this is about tex2lyx, so we would check for \usepackage{fontenc} or \usepackage{xunicode}. I propose to also check for \usepackage[enc]{luainputenc} Günter

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Eric Weir
On Feb 15, 2012, at 10:55 AM, stefano franchi wrote: 3. In ToolsPreferencesFIle Converters, create a new converter from Scrivener to Lyx: select Scrivener in the From dropdown list, and Lyx in the to list. Enter the call to tex2lyx with the UTF8 switch in the Converter field: tex2lyx -e

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Stephan Witt
Am 15.02.2012 um 17:59 schrieb Eric Weir: On Feb 15, 2012, at 10:55 AM, stefano franchi wrote: 3. In ToolsPreferencesFIle Converters, create a new converter from Scrivener to Lyx: select Scrivener in the From dropdown list, and Lyx in the to list. Enter the call to tex2lyx with the UTF8

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread stefano franchi
to tex2lyx with the UTF8 switch in the Converter field: tex2lyx -e UTF8  -f $$i $$o In Tools I do not have the Preferences option. If I go to Preferences File Handling Converters the add button is greyed out. I don't see how to add a new converter. Sorry, that was Linux--As Stephan

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Georg Baum
Jean-Marc Lasgouttes wrote: Georg, Juergen, I'd like some feedback on the soundness of the patch. I know next to nil about xetex, and I do not know what is the current state of the art wrt tex2lyx. Unfortunately I know next to nothing about use_non_tex_fonts. After reading the code and user

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Georg Baum
Jürgen Spitzmüller wrote: LuaTeX can use other encodings, but not with non-tex fonts. So if \use_non_tex_fonts is true (this is what you want to check for, right?), the encoding of the file must be utf8. No, it is the other way round: If a xetex package is detected, use_non_tex_fonts is set

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Guenter Milde
On 2012-02-14, stefano franchi wrote: On Tue, Feb 14, 2012 at 8:05 AM, Jean-Marc Lasgouttes tex2lyx is not really the culprit. The file you attach is broken : it does not use xetex/luatex, but it does use Unicode (XeTeX) (utf8) as encoding. As a result, the latex export of the file does

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jean-Marc Lasgouttes
Le 15/02/2012 10:51, Guenter Milde a écrit : IMV, it should try utf8 first in case this does not give a result. * if the file is pure ASCII, everything is fine * if the file is utf8 encoded, fine too * if another encoding is used, an error occures: try again with the second guess. That is

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: I have a patch that seems to work with XeTeX, I do not know anything about luatex (what shall we do with it?) I think your patch will work for LuaTeX as well. Jürgen

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jean-Marc Lasgouttes
Le 15/02/2012 11:38, Jürgen Spitzmüller a écrit : Jean-Marc Lasgouttes wrote: I have a patch that seems to work with XeTeX, I do not know anything about luatex (what shall we do with it?) I think your patch will work for LuaTeX as well. I thought LuaTeX could use encdings other than

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: I thought LuaTeX could use encdings other than utf8. Is utf8 the default? And does it use the same packages as XeTeX? LuaTeX can use other encodings, but not with non-tex fonts. So if \use_non_tex_fonts is true (this is what you want to check for, right?), the

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Eric Weir
On Feb 14, 2012, at 4:47 PM, Enrico Forestieri wrote: Eric Weir writes: I'm attempting to use the workaround suggested by Stefano to get LyX to recognize a Unicoded document as Unicoded. The workaround involves use of the tex2lyx command. I'm on a Mac. When I run the command I get

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread stefano franchi
of the tex2lyx command. I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx, however, the file  shows up in two locations:  /Applications/LyX.app/Contents/MacOS and  /Applications/TeX/LyX.app/Contents/MacOS How do I get the command to run? Why don't

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Eric Weir
the call to tex2lyx with the UTF8 switch in the Converter field: tex2lyx -e UTF8 -f $$i $$o 4. Click Add and click Save. Now you should have the Scrivener (or whatever you called the format) option in FileImport, without needing to go to the command line. In fact Lyx does internally

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Guenter Milde
this is about tex2lyx, so we would check for \usepackage{fontenc} or \usepackage{xunicode}. I propose to also check for \usepackage[enc]{luainputenc} Günter

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Eric Weir
On Feb 15, 2012, at 10:55 AM, stefano franchi wrote: 3. In ToolsPreferencesFIle Converters, create a new converter from Scrivener to Lyx: select Scrivener in the From dropdown list, and Lyx in the to list. Enter the call to tex2lyx with the UTF8 switch in the Converter field: tex2lyx -e

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Stephan Witt
Am 15.02.2012 um 17:59 schrieb Eric Weir: On Feb 15, 2012, at 10:55 AM, stefano franchi wrote: 3. In ToolsPreferencesFIle Converters, create a new converter from Scrivener to Lyx: select Scrivener in the From dropdown list, and Lyx in the to list. Enter the call to tex2lyx with the UTF8

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread stefano franchi
to tex2lyx with the UTF8 switch in the Converter field: tex2lyx -e UTF8  -f $$i $$o In Tools I do not have the Preferences option. If I go to Preferences File Handling Converters the add button is greyed out. I don't see how to add a new converter. Sorry, that was Linux--As Stephan

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Georg Baum
Jean-Marc Lasgouttes wrote: Georg, Juergen, I'd like some feedback on the soundness of the patch. I know next to nil about xetex, and I do not know what is the current state of the art wrt tex2lyx. Unfortunately I know next to nothing about use_non_tex_fonts. After reading the code and user

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Georg Baum
Jürgen Spitzmüller wrote: LuaTeX can use other encodings, but not with non-tex fonts. So if \use_non_tex_fonts is true (this is what you want to check for, right?), the encoding of the file must be utf8. No, it is the other way round: If a xetex package is detected, use_non_tex_fonts is set

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Guenter Milde
On 2012-02-14, stefano franchi wrote: > On Tue, Feb 14, 2012 at 8:05 AM, Jean-Marc Lasgouttes >> tex2lyx is not really the culprit. The file you attach is broken : it >> does not use xetex/luatex, but it does use "Unicode (XeTeX) (utf8)" as >> encoding. As a resul

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jean-Marc Lasgouttes
Le 15/02/2012 10:51, Guenter Milde a écrit : IMV, it should try utf8 first in case this does not give a result. * if the file is pure ASCII, everything is fine * if the file is utf8 encoded, fine too * if another encoding is used, an error occures: try again with the second guess. That is

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > I have a patch that seems to work with XeTeX, I do not know anything > about luatex (what shall we do with it?) I think your patch will work for LuaTeX as well. Jürgen

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jean-Marc Lasgouttes
Le 15/02/2012 11:38, Jürgen Spitzmüller a écrit : Jean-Marc Lasgouttes wrote: > I have a patch that seems to work with XeTeX, I do not know anything > about luatex (what shall we do with it?) I think your patch will work for LuaTeX as well. I thought LuaTeX could use encdings other than

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > I thought LuaTeX could use encdings other than utf8. Is utf8 the > default? And does it use the same packages as XeTeX? LuaTeX can use other encodings, but not with non-tex fonts. So if \use_non_tex_fonts is true (this is what you want to check for, right?), the

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Eric Weir
On Feb 14, 2012, at 4:47 PM, Enrico Forestieri wrote: > Eric Weir writes: >> I'm attempting to use the workaround suggested by Stefano to get LyX to >> recognize a Unicoded document as Unicoded. The workaround involves use >> of the tex2lyx command. >> >> I'm

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread stefano franchi
ed document as Unicoded. The workaround  involves use >>> of the tex2lyx command. >>> >>> I'm on a Mac. When I run the command I get a command not found message. >>> When I do locate tex2lyx, however, the file  shows up in two locations: >>>  /Applications/LyX.a

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Eric Weir
om > Scrivener to Lyx: select "Scrivener" in the From dropdown list, and > "Lyx" in the "to list. Enter the call to tex2lyx with the UTF8 switch > in the "Converter field": > tex2lyx -e UTF8 -f $$i $$o > > 4. Click "Add" and click &q

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Guenter Milde
is might be a LyX limitation. However this is about tex2lyx, so we would check for \usepackage{fontenc} or \usepackage{xunicode}. I propose to also check for > \usepackage[]{luainputenc} Günter

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Eric Weir
On Feb 15, 2012, at 10:55 AM, stefano franchi wrote: > 3. In Tools>>Preferences>>FIle Converters, create a new converter from > Scrivener to Lyx: select "Scrivener" in the From dropdown list, and > "Lyx" in the "to list. Enter the call to tex2lyx

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread Stephan Witt
nd >> "Lyx" in the "to list. Enter the call to tex2lyx with the UTF8 switch >> in the "Converter field": >> tex2lyx -e UTF8 -f $$i $$o > > In Tools I do not have the Preferences option. If I go to Preferences > File > Handling > Conve

Re: Mac-specific: tex2lyx won't run

2012-02-15 Thread stefano franchi
ener" in the From dropdown list, and >> "Lyx" in the "to list. Enter the call to tex2lyx with the UTF8 switch >> in the "Converter field": >> tex2lyx -e UTF8  -f $$i $$o > > In Tools I do not have the Preferences option. If I go to Preferences > File >

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > Georg, Juergen, I'd like some feedback on the soundness of the patch. I > know next to nil about xetex, and I do not know what is the current > state of the art wrt tex2lyx. Unfortunately I know next to nothing about use_non_tex_fonts. After reading

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-15 Thread Georg Baum
Jürgen Spitzmüller wrote: > LuaTeX can use other encodings, but not with non-tex fonts. So if > \use_non_tex_fonts is true (this is what you want to check for, right?), > the encoding of the file must be utf8. No, it is the other way round: If a xetex package is detected, use_non_tex_fonts is

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-14 Thread Jean-Marc Lasgouttes
, it's surprising we fail in this particular case, so I'd guess it is indeed a bug. I'll cross-post to devel. tex2lyx is not really the culprit. The file you attach is broken : it does not use xetex/luatex, but it does use Unicode (XeTeX) (utf8) as encoding. As a result, the latex export

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-14 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: Georg, Juergen, I'd like some feedback on the soundness of the patch. I know next to nil about xetex, and I do not know what is the current state of the art wrt tex2lyx. The latter I don't know either, but the patch looks sane. We set the encoding to utf8

Ma-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir
I'm attempting to use the workaround suggested by Stefano to get LyX to recognize a Unicoded document as Unicoded. The workaround involves use of the tex2lyx command. I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx, however, the file shows

Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir
of the tex2lyx command. I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx, however, the file shows up in two locations: /Applications/LyX.app/Contents/MacOS and /Applications/TeX/LyX.app/Contents/MacOS How do I get the command to run? Thanks

Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
a Unicoded document as Unicoded. The workaround  involves use of the tex2lyx command. I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx, however, the file  shows up in two locations: /Applications/LyX.app/Contents/MacOS and /Applications/TeX

Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir
On Feb 14, 2012, at 11:07 AM, BH wrote: I'm guessing the problem is that tex2lyx isn't in your PATH, which means you must provide it yourself. So from the Terminal, you should type, for example, /Applications/LyX.app/Contents/MacOS/tex2lyx Thanks, Will do. But while I'm

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-14 Thread stefano franchi
. However, callingtex2lyx -e UTF8 from the command line produces the correct file. Still, it's surprising we fail in this particular case, so I'd guess it is indeed a bug. I'll cross-post to devel. tex2lyx is not really the culprit. The file you attach is broken : it does not use xetex/luatex

Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
On Tue, Feb 14, 2012 at 11:18 AM, Eric Weir eew...@bellsouth.net wrote: On Feb 14, 2012, at 11:07 AM, BH wrote: I'm guessing the problem is that tex2lyx isn't in your PATH, which means you must provide it yourself. So from the Terminal, you should type, for example, /Applications/LyX.app

Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Enrico Forestieri
Eric Weir writes: I'm attempting to use the workaround suggested by Stefano to get LyX to recognize a Unicoded document as Unicoded. The workaround  involves use of the tex2lyx command.  I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-14 Thread Jean-Marc Lasgouttes
, it's surprising we fail in this particular case, so I'd guess it is indeed a bug. I'll cross-post to devel. tex2lyx is not really the culprit. The file you attach is broken : it does not use xetex/luatex, but it does use Unicode (XeTeX) (utf8) as encoding. As a result, the latex export

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-14 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: Georg, Juergen, I'd like some feedback on the soundness of the patch. I know next to nil about xetex, and I do not know what is the current state of the art wrt tex2lyx. The latter I don't know either, but the patch looks sane. We set the encoding to utf8

Ma-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir
I'm attempting to use the workaround suggested by Stefano to get LyX to recognize a Unicoded document as Unicoded. The workaround involves use of the tex2lyx command. I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx, however, the file shows

Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir
of the tex2lyx command. I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx, however, the file shows up in two locations: /Applications/LyX.app/Contents/MacOS and /Applications/TeX/LyX.app/Contents/MacOS How do I get the command to run? Thanks

Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
a Unicoded document as Unicoded. The workaround  involves use of the tex2lyx command. I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx, however, the file  shows up in two locations: /Applications/LyX.app/Contents/MacOS and /Applications/TeX

Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Eric Weir
On Feb 14, 2012, at 11:07 AM, BH wrote: I'm guessing the problem is that tex2lyx isn't in your PATH, which means you must provide it yourself. So from the Terminal, you should type, for example, /Applications/LyX.app/Contents/MacOS/tex2lyx Thanks, Will do. But while I'm

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-14 Thread stefano franchi
. However, callingtex2lyx -e UTF8 from the command line produces the correct file. Still, it's surprising we fail in this particular case, so I'd guess it is indeed a bug. I'll cross-post to devel. tex2lyx is not really the culprit. The file you attach is broken : it does not use xetex/luatex

Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread BH
On Tue, Feb 14, 2012 at 11:18 AM, Eric Weir eew...@bellsouth.net wrote: On Feb 14, 2012, at 11:07 AM, BH wrote: I'm guessing the problem is that tex2lyx isn't in your PATH, which means you must provide it yourself. So from the Terminal, you should type, for example, /Applications/LyX.app

Re: Mac-specific: tex2lyx won't run

2012-02-14 Thread Enrico Forestieri
Eric Weir writes: I'm attempting to use the workaround suggested by Stefano to get LyX to recognize a Unicoded document as Unicoded. The workaround  involves use of the tex2lyx command.  I'm on a Mac. When I run the command I get a command not found message. When I do locate tex2lyx

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-14 Thread Jean-Marc Lasgouttes
Le 14/02/2012 00:47, Richard Heck a écrit : Try out the enclosed minimal lyx file. 1. exporting to latex and reimporting into lyx from FIle>>Import>>Latex(plain) produces garbage characters for the dashes 2. However, calling>tex2lyx -e UTF8 from the command line produces t

Re: How to force tex2lyx to read unicode (from within Lyx)?

2012-02-14 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > Georg, Juergen, I'd like some feedback on the soundness of the patch. I > know next to nil about xetex, and I do not know what is the current > state of the art wrt tex2lyx. The latter I don't know either, but the patch looks sane. We set the encoding

<    1   2   3   4   5   6   7   >