Uwe Stöhr wrote:
> There's one issue why I don't think this can be committed right now:
>
> babel is called every time because it is hardcoded in lyxrc.cpp. But babel
> shouldn't or even mustn't be called for some languages.

Can you list some examples (and what is to be output for those instead of 
babel)?

> Can we get rid of the herdcoding in lyxrc?
> (I unfortunately don't know how the lyxrc stuff works.)

I don't think you should touch lyxrc. This is a possibility to customize babel 
(or an alternative package, for that matter); so you can delete the babel 
call globally in the preferences dialog (language settings->language package) 
for now.

What you need to do is to suppress the output of that string in 
BufferParams::babelCall() for the specific languages. You could mark those 
languages by giving them an empty babel name in the languages file and check 
for that. However, it might be better to add a new argument "package" (as 
Georg did for encodings), where you can define "babel", "none" and something 
completely different.

Probably the prefs ui should also be changed. Additionally to the "language 
package" line edit, there should probably be a checkbox "use default language 
package", which is babel or something else for other languages. This should 
disable the line edit and default to true.

Anyway, this all could be done later, I think. Or does the situation get worse 
than before wrt calling babel with Georg's patch?

Jürgen

Reply via email to