Dov Feldstern wrote:
Hi!
I committed a fix to a bug due to the Font/Language separation, which
was causing LFUN_LANGUAGE to not work
(http://www.lyx.org/trac/changeset/21305).
Thanks.
This solution may be a bit of a hack --- I'm not familiar enough with
the bigger picture.
It is not a hack. Your change makes the code more explicit and that is
good. It also reveals the inherent problem that the Font/Language mix
brings.
Perhaps a better solution would be to further
separate between Font and Language, by changing toggleFree to deal with
them in a totally separate manner, or even to have separate functions
for the language and font.
Right, separate functions is what we should aim at.
If anyone feels like looking into this, feel
free.
This should be a mid-term goal. You, as a proponent of char attributes
(for spelling, styles, etc) should be interested in doing that ;-)
Abdel.