Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-10 Thread Uwe Stöhr
Am 08.06.2012 08:34, schrieb Jürgen Spitzmüller: Hardcoding those languages is bad. Can't you just check if the language has no babel name but a polyglossia name? You are right. The list of languages only supported by polyglissia will grow. I'll have a look when I'm back or you can

Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-10 Thread Uwe Stöhr
Am 08.06.2012 08:34, schrieb Jürgen Spitzmüller: Hardcoding those languages is bad. Can't you just check if the language has no babel name but a polyglossia name? You are right. The list of languages only supported by polyglissia will grow. I'll have a look when I'm back or you can

Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-08 Thread Jürgen Spitzmüller
2012/6/8 Uwe Stöhr: +void GuiDocument::languageChanged(int i) +{ +       // some languages only work with polyglossia/XeTeX +       string current_language = lyx::languages.getLanguage( +               fromqstr(langModule-languageCO-itemData(i).toString()))-lang(); +       if

Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-08 Thread Jean-Marc Lasgouttes
Le 08/06/2012 08:34, Jürgen Spitzmüller a écrit : 2012/6/8 Uwe Stöhr: +void GuiDocument::languageChanged(int i) +{ + // some languages only work with polyglossia/XeTeX + string current_language = lyx::languages.getLanguage( +

Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-08 Thread Jürgen Spitzmüller
2012/6/8 Jean-Marc Lasgouttes lasgout...@lyx.org: Same remark for the BufferParams change in 7eca5d and probably for the hardcoded names in tex2lyx/preamble.cpp. True. Also, I think the logic is wrong in BufferParams. Polyglossia only works _with_ XeTeX, so it should read diff --git

Fwd: Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-08 Thread Jean-Marc Lasgouttes
Message original Sujet: Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language Date : Fri, 8 Jun 2012 12:58:39 +0200 De : Jürgen Spitzmüller sp...@lyx.org Pour : Jean-Marc

Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-08 Thread Jürgen Spitzmüller
2012/6/8 Uwe Stöhr: > +void GuiDocument::languageChanged(int i) > +{ > +       // some languages only work with polyglossia/XeTeX > +       string current_language = lyx::languages.getLanguage( > +               > fromqstr(langModule->languageCO->itemData(i).toString()))->lang(); > +       if

Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-08 Thread Jean-Marc Lasgouttes
Le 08/06/2012 08:34, Jürgen Spitzmüller a écrit : 2012/6/8 Uwe Stöhr: +void GuiDocument::languageChanged(int i) +{ + // some languages only work with polyglossia/XeTeX + string current_language = lyx::languages.getLanguage( +

Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-08 Thread Jürgen Spitzmüller
2012/6/8 Jean-Marc Lasgouttes : > Same remark for the BufferParams change in 7eca5d and probably for the > hardcoded names in tex2lyx/preamble.cpp. True. Also, I think the logic is wrong in BufferParams. Polyglossia only works _with_ XeTeX, so it should read diff --git

Fwd: Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language

2012-06-08 Thread Jean-Marc Lasgouttes
Message original Sujet: Re: [LyX master] GuiDocument.cpp: some languages only work with polyglossia, therefore enable non-TeX fonts when one of them is used as document language Date : Fri, 8 Jun 2012 12:58:39 +0200 De : Jürgen Spitzmüller Pour : Jean-Marc