Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-06 Thread rgheck
Philippe Charpentier wrote: I just test rev. 27282: - for the question of excluding modules, it works now if the class contain the tag ExcludesModule, that is: if I create a new document with the class "article (AMS)" then the module "theorems-ams" is loaded; if I change to the class "article (A

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-05 Thread Philippe Charpentier
Richard Heck a écrit : > rgheck wrote: >> Charpentier Philippe wrote: >>> For the first question: >>> if I put >>> ExcludesModule theorems-ams >>> in my class then changing from "article (AMS)" to "article (AMS) >>> Francais" >>> has the consequence that no module is loaded which is not very nice >

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-05 Thread Richard Heck
rgheck wrote: Charpentier Philippe wrote: For the first question: if I put ExcludesModule theorems-ams in my class then changing from "article (AMS)" to "article (AMS) Francais" has the consequence that no module is loaded which is not very nice I think... OK. I'll look at this. The algorith

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread rgheck
Charpentier Philippe wrote: rgheck a écrit : rgheck wrote: Charpentier Philippe wrote: Similarly, if I create a document in the class "article (AMS) en Français" the module "theorems-ams-fr" is automatically loaded but the modules "theorems-ams", "theorems-starred" and "theorems-std" can stil

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread Charpentier Philippe
rgheck a écrit : rgheck wrote: Charpentier Philippe wrote: Similarly, if I create a document in the class "article (AMS) en Français" the module "theorems-ams-fr" is automatically loaded but the modules "theorems-ams", "theorems-starred" and "theorems-std" can still be loaded (although they ar

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > > Jurgen will know what to do, I hope: The change is needed in > > GuiDocument::loadModuleInfo(). > > Yes, I have a fix in the pipe. Should be fixed now (rev. 27248). Jürgen

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread Jürgen Spitzmüller
rgheck wrote: > Jurgen will know what to do, I hope: The change is needed in > GuiDocument::loadModuleInfo(). Yes, I have a fix in the pipe. Jürgen

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread rgheck
rgheck wrote: Charpentier Philippe wrote: Similarly, if I create a document in the class "article (AMS) en Français" the module "theorems-ams-fr" is automatically loaded but the modules "theorems-ams", "theorems-starred" and "theorems-std" can still be loaded (although they are excluded in "the

Re: UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread rgheck
Charpentier Philippe wrote: Hi, if you define a new module whose name contains non ASCII characters, like #\DeclareLyXModule{Théoremes (AMS) Francais} then lyx-1.6 crashes with the following output: lassert.cpp(21): ASSERTION static_cast(ascii[i]) < 0x80 VIOLATED IN docstring.cpp:50 Assertion

UTF-8 Bug in modules of lyx-1.6 and a question

2008-11-04 Thread Charpentier Philippe
Hi, if you define a new module whose name contains non ASCII characters, like #\DeclareLyXModule{Théoremes (AMS) Francais} then lyx-1.6 crashes with the following output: lassert.cpp(21): ASSERTION static_cast(ascii[i]) < 0x80 VIOLATED IN docstring.cpp:50 Assertion triggered in void lyx::doAss