Re: lyx-qt + russian locale + math symbols display

2004-10-05 Thread Nikita V. Youshchenko
 Unfortunately, today one of our users reported that lyx-qt (installed
 from debian binary package 1.3.4-2) crashes every other minute for him,
 until restarted with LC_ALL=C.

Ok, we found it. It crashes on each autosave, because of error in ru.po, 
which causes exception from boost. And really, this does not happen if not 
running in russian locale.

In debian version, this should be applied:

--- ru.po.orig  2004-02-19 13:18:47.0 +0300
+++ ru.po   2004-10-05 16:55:47.0 +0400
@@ -11642,7 +11642,7 @@
 #: src/lyx_cb.C:273
 #, c-format
 msgid Auto-saving %1$s
-msgstr   %1$1
+msgstr   %1$s

 #: src/lyx_cb.C:275
 msgid Auto-saving 


In current CVS, this is (probably) needed:

--- ru.po.cvs.orig  2004-10-05 16:57:46.0 +0400
+++ ru.po.cvs   2004-10-05 16:58:20.0 +0400
@@ -13723,7 +13723,7 @@
 #: src/lyx_cb.C:245
 #, fuzzy, c-format
 msgid Auto-saving %1$s
-msgstr 
+msgstr  %1$s

 #: src/lyx_cb.C:284
 msgid Autosave failed!


Re: lyx-qt + russian locale + math symbols display

2004-10-05 Thread Lars Gullik Bjønnes
Nikita V. Youshchenko [EMAIL PROTECTED] writes:

 Unfortunately, today one of our users reported that lyx-qt (installed
 from debian binary package 1.3.4-2) crashes every other minute for him,
 until restarted with LC_ALL=C.

| Ok, we found it. It crashes on each autosave, because of error in ru.po, 
| which causes exception from boost. And really, this does not happen if not 
| running in russian locale.

A validate of the po file should have caught this.

-- 
Lgb



Re: lyx-qt + russian locale + math symbols display

2004-10-05 Thread Jean-Marc Lasgouttes
 Nikita == Nikita V Youshchenko [EMAIL PROTECTED] writes:

 Unfortunately, today one of our users reported that lyx-qt
 (installed from debian binary package 1.3.4-2) crashes every other
 minute for him, until restarted with LC_ALL=C.

Nikita Ok, we found it. It crashes on each autosave, because of error
Nikita in ru.po, which causes exception from boost. And really, this
Nikita does not happen if not running in russian locale.

Thanks a lot. I applied your fix to both 1.3.5cvs and 1.4.0cvs.

JMarc



Re: lyx-qt + russian locale + math symbols display

2004-10-05 Thread Nikita V. Youshchenko
 Unfortunately, today one of our users reported that lyx-qt (installed
 from debian binary package 1.3.4-2) crashes every other minute for him,
 until restarted with LC_ALL=C.

Ok, we found it. It crashes on each autosave, because of error in ru.po, 
which causes exception from boost. And really, this does not happen if not 
running in russian locale.

In debian version, this should be applied:

--- ru.po.orig  2004-02-19 13:18:47.0 +0300
+++ ru.po   2004-10-05 16:55:47.0 +0400
@@ -11642,7 +11642,7 @@
 #: src/lyx_cb.C:273
 #, c-format
 msgid Auto-saving %1$s
-msgstr   %1$1
+msgstr   %1$s

 #: src/lyx_cb.C:275
 msgid Auto-saving 


In current CVS, this is (probably) needed:

--- ru.po.cvs.orig  2004-10-05 16:57:46.0 +0400
+++ ru.po.cvs   2004-10-05 16:58:20.0 +0400
@@ -13723,7 +13723,7 @@
 #: src/lyx_cb.C:245
 #, fuzzy, c-format
 msgid Auto-saving %1$s
-msgstr 
+msgstr  %1$s

 #: src/lyx_cb.C:284
 msgid Autosave failed!


Re: lyx-qt + russian locale + math symbols display

2004-10-05 Thread Lars Gullik Bjønnes
Nikita V. Youshchenko [EMAIL PROTECTED] writes:

 Unfortunately, today one of our users reported that lyx-qt (installed
 from debian binary package 1.3.4-2) crashes every other minute for him,
 until restarted with LC_ALL=C.

| Ok, we found it. It crashes on each autosave, because of error in ru.po, 
| which causes exception from boost. And really, this does not happen if not 
| running in russian locale.

A validate of the po file should have caught this.

-- 
Lgb



Re: lyx-qt + russian locale + math symbols display

2004-10-05 Thread Jean-Marc Lasgouttes
 Nikita == Nikita V Youshchenko [EMAIL PROTECTED] writes:

 Unfortunately, today one of our users reported that lyx-qt
 (installed from debian binary package 1.3.4-2) crashes every other
 minute for him, until restarted with LC_ALL=C.

Nikita Ok, we found it. It crashes on each autosave, because of error
Nikita in ru.po, which causes exception from boost. And really, this
Nikita does not happen if not running in russian locale.

Thanks a lot. I applied your fix to both 1.3.5cvs and 1.4.0cvs.

JMarc



Re: lyx-qt + russian locale + math symbols display

2004-10-05 Thread Nikita V. Youshchenko
> Unfortunately, today one of our users reported that lyx-qt (installed
> from debian binary package 1.3.4-2) crashes every other minute for him,
> until restarted with LC_ALL=C.

Ok, we found it. It crashes on each autosave, because of error in ru.po, 
which causes exception from boost. And really, this does not happen if not 
running in russian locale.

In debian version, this should be applied:

--- ru.po.orig  2004-02-19 13:18:47.0 +0300
+++ ru.po   2004-10-05 16:55:47.0 +0400
@@ -11642,7 +11642,7 @@
 #: src/lyx_cb.C:273
 #, c-format
 msgid "Auto-saving %1$s"
-msgstr "Автоматическое сохранение %1$1"
+msgstr "Автоматическое сохранение %1$s"

 #: src/lyx_cb.C:275
 msgid "Auto-saving "


In current CVS, this is (probably) needed:

--- ru.po.cvs.orig  2004-10-05 16:57:46.0 +0400
+++ ru.po.cvs   2004-10-05 16:58:20.0 +0400
@@ -13723,7 +13723,7 @@
 #: src/lyx_cb.C:245
 #, fuzzy, c-format
 msgid "Auto-saving %1$s"
-msgstr "Автосохранение"
+msgstr "Автосохранение %1$s"

 #: src/lyx_cb.C:284
 msgid "Autosave failed!"


Re: lyx-qt + russian locale + math symbols display

2004-10-05 Thread Lars Gullik Bjønnes
"Nikita V. Youshchenko" <[EMAIL PROTECTED]> writes:

>> Unfortunately, today one of our users reported that lyx-qt (installed
>> from debian binary package 1.3.4-2) crashes every other minute for him,
>> until restarted with LC_ALL=C.
>
| Ok, we found it. It crashes on each autosave, because of error in ru.po, 
| which causes exception from boost. And really, this does not happen if not 
| running in russian locale.

A validate of the po file should have caught this.

-- 
Lgb



Re: lyx-qt + russian locale + math symbols display

2004-10-05 Thread Jean-Marc Lasgouttes
> "Nikita" == Nikita V Youshchenko <[EMAIL PROTECTED]> writes:

>> Unfortunately, today one of our users reported that lyx-qt
>> (installed from debian binary package 1.3.4-2) crashes every other
>> minute for him, until restarted with LC_ALL=C.

Nikita> Ok, we found it. It crashes on each autosave, because of error
Nikita> in ru.po, which causes exception from boost. And really, this
Nikita> does not happen if not running in russian locale.

Thanks a lot. I applied your fix to both 1.3.5cvs and 1.4.0cvs.

JMarc



Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread belahcene abdelkader

--- Nikita V. Youshchenko [EMAIL PROTECTED] wrote:

 Hello.
 
 The known problem with lyx-qt + russian locale +
 math symbols display (that 
 causes no math symbols to be displayed if Qt uses
 fontconfig) may be 
 workarounded by starting lyx-qt as
 
 LC_TIME=C lyx-qt
 
 


=




___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread belahcene abdelkader

--- Nikita V. Youshchenko [EMAIL PROTECTED] wrote:

 Hello.
 
 The known problem with lyx-qt + russian locale +
 math symbols display (that 
 causes no math symbols to be displayed if Qt uses
 fontconfig) may be 
 workarounded by starting lyx-qt as
 
 LC_TIME=C lyx-qt
 
 
 To fix the problem install the latex-xft-fonts ( same
problem for the english version)

best regards
bela


=




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread Nikita V. Youshchenko

 --- Nikita V. Youshchenko [EMAIL PROTECTED] wrote:
  Hello.
 
  The known problem with lyx-qt + russian locale +
  math symbols display (that
  causes no math symbols to be displayed if Qt uses
  fontconfig) may be
  workarounded by starting lyx-qt as
 
  LC_TIME=C lyx-qt

 The problem is not only for the russian, it is for
 english too, to solve the problem install
 latex-xft-fonts

No, the problem is in latex-xft-fonts and Qt. When running in russian 
locale, Qt refuses to load fonts from latex-xft-fonts, due to a strange 
way Qt uses to detect which fornts should be available for application.
As documented in README in latex-xft-fonts, it is a known problem that 
trooltech refuses to fix.


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread Jean-Marc Lasgouttes
 Nikita == Nikita V Youshchenko [EMAIL PROTECTED] writes:

Nikita Hello. The known problem with lyx-qt + russian locale + math
Nikita symbols display (that causes no math symbols to be displayed
Nikita if Qt uses fontconfig) may be workarounded by starting lyx-qt
Nikita as

Nikita LC_TIME=C lyx-qt

I have to admit that I thought at first that LC_TIME was a typo and
that I went to check the sources :) I can see now that
QFont::initialize() in qfont_x11.cpp does use the LC_TIME locale to
determine some locale characteristics.

Do you understand what this code does? Should LyX set LC_TIME to C
unconditionally, or would that disable some interesting feature?

That's very weird.

JMarc


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread Nikita V. Youshchenko
 Nikita LC_TIME=C lyx-qt

 I have to admit that I thought at first that LC_TIME was a typo and
 that I went to check the sources :) I can see now that
 QFont::initialize() in qfont_x11.cpp does use the LC_TIME locale to
 determine some locale characteristics.

 Do you understand what this code does? Should LyX set LC_TIME to C
 unconditionally, or would that disable some interesting feature?

 That's very weird.

One day (several months ago) I was tired with lyx-qt math editor being 
unusable in russian locale, and tried to dig into. I wrote to 
latex-xft-fonts package creators, asking for details. I got the following 
reply:

  Hello.
 
  From README of latex-xft-fonts tarball:
   If you're using a locale such as LANG=ru_RU, and some others,
   these fonts will not load in Qt. This is a Qt bug that Troll
   Tech refuse to fix.
 
  Could you please provide more information on this, or point me to such
  information if it is available?

 Troll Tech assigned it a number of N19481, said they'd fixed it, and
 when they hadn't, stated they would not.

 Basically, the XFT fonts have a particular encoding, and it does not
 match that requested by Qt when it's looking for a font suitable for
 Cyrillic (even though there is no Cyrillic glyph used for the math
 symbols).

 It might be possible to produce a set of math XFT fonts with a matching
 encoding, but my attempts using pfaedit have so far failed.

 regards
 john

Then I looked at qt sources, and found all that things in qfont_x11.cpp
I failed to understand why the do so, and decided to give up (noting in my 
todo that one day I should think more).
Yesterday I found that todo, and realized that I may fool Qt by resetting 
LC_TIME. Not much things actually use LC_TIME, so I hope it should not 
break anything. I tried it, and it worked.
So I wrote to several lists about it, and enabled workaround on systems 
that I administer (our users use lyx sometimes; until now they had to use 
either xforms version or qt version without russian locale).
Unfortunately, today one of our users reported that lyx-qt (installed from 
debian binary package 1.3.4-2) crashes every other minute for him, until 
restarted with LC_ALL=C.
I was not able to reproduce crashes (however, I can't say I tried very 
hard). I don't know if it related to running lyx-qt in a mixed locale, 
or just to running it in russian locale, or completely unrelated (e.g. it 
crashes on user's particular document).
Currently I'm rebuilding the package with debugging symbols enabled; I'll 
ask the user to try this version and try to get a coredump of the crash.
I'll report the results.


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread belahcene abdelkader

--- Nikita V. Youshchenko [EMAIL PROTECTED] wrote:

 Hello.
 
 The known problem with lyx-qt + russian locale +
 math symbols display (that 
 causes no math symbols to be displayed if Qt uses
 fontconfig) may be 
 workarounded by starting lyx-qt as
 
 LC_TIME=C lyx-qt
 
 


=




___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread belahcene abdelkader

--- Nikita V. Youshchenko [EMAIL PROTECTED] wrote:

 Hello.
 
 The known problem with lyx-qt + russian locale +
 math symbols display (that 
 causes no math symbols to be displayed if Qt uses
 fontconfig) may be 
 workarounded by starting lyx-qt as
 
 LC_TIME=C lyx-qt
 
 
 To fix the problem install the latex-xft-fonts ( same
problem for the english version)

best regards
bela


=




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread Nikita V. Youshchenko

 --- Nikita V. Youshchenko [EMAIL PROTECTED] wrote:
  Hello.
 
  The known problem with lyx-qt + russian locale +
  math symbols display (that
  causes no math symbols to be displayed if Qt uses
  fontconfig) may be
  workarounded by starting lyx-qt as
 
  LC_TIME=C lyx-qt

 The problem is not only for the russian, it is for
 english too, to solve the problem install
 latex-xft-fonts

No, the problem is in latex-xft-fonts and Qt. When running in russian 
locale, Qt refuses to load fonts from latex-xft-fonts, due to a strange 
way Qt uses to detect which fornts should be available for application.
As documented in README in latex-xft-fonts, it is a known problem that 
trooltech refuses to fix.


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread Jean-Marc Lasgouttes
 Nikita == Nikita V Youshchenko [EMAIL PROTECTED] writes:

Nikita Hello. The known problem with lyx-qt + russian locale + math
Nikita symbols display (that causes no math symbols to be displayed
Nikita if Qt uses fontconfig) may be workarounded by starting lyx-qt
Nikita as

Nikita LC_TIME=C lyx-qt

I have to admit that I thought at first that LC_TIME was a typo and
that I went to check the sources :) I can see now that
QFont::initialize() in qfont_x11.cpp does use the LC_TIME locale to
determine some locale characteristics.

Do you understand what this code does? Should LyX set LC_TIME to C
unconditionally, or would that disable some interesting feature?

That's very weird.

JMarc


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread Nikita V. Youshchenko
 Nikita LC_TIME=C lyx-qt

 I have to admit that I thought at first that LC_TIME was a typo and
 that I went to check the sources :) I can see now that
 QFont::initialize() in qfont_x11.cpp does use the LC_TIME locale to
 determine some locale characteristics.

 Do you understand what this code does? Should LyX set LC_TIME to C
 unconditionally, or would that disable some interesting feature?

 That's very weird.

One day (several months ago) I was tired with lyx-qt math editor being 
unusable in russian locale, and tried to dig into. I wrote to 
latex-xft-fonts package creators, asking for details. I got the following 
reply:

  Hello.
 
  From README of latex-xft-fonts tarball:
   If you're using a locale such as LANG=ru_RU, and some others,
   these fonts will not load in Qt. This is a Qt bug that Troll
   Tech refuse to fix.
 
  Could you please provide more information on this, or point me to such
  information if it is available?

 Troll Tech assigned it a number of N19481, said they'd fixed it, and
 when they hadn't, stated they would not.

 Basically, the XFT fonts have a particular encoding, and it does not
 match that requested by Qt when it's looking for a font suitable for
 Cyrillic (even though there is no Cyrillic glyph used for the math
 symbols).

 It might be possible to produce a set of math XFT fonts with a matching
 encoding, but my attempts using pfaedit have so far failed.

 regards
 john

Then I looked at qt sources, and found all that things in qfont_x11.cpp
I failed to understand why the do so, and decided to give up (noting in my 
todo that one day I should think more).
Yesterday I found that todo, and realized that I may fool Qt by resetting 
LC_TIME. Not much things actually use LC_TIME, so I hope it should not 
break anything. I tried it, and it worked.
So I wrote to several lists about it, and enabled workaround on systems 
that I administer (our users use lyx sometimes; until now they had to use 
either xforms version or qt version without russian locale).
Unfortunately, today one of our users reported that lyx-qt (installed from 
debian binary package 1.3.4-2) crashes every other minute for him, until 
restarted with LC_ALL=C.
I was not able to reproduce crashes (however, I can't say I tried very 
hard). I don't know if it related to running lyx-qt in a mixed locale, 
or just to running it in russian locale, or completely unrelated (e.g. it 
crashes on user's particular document).
Currently I'm rebuilding the package with debugging symbols enabled; I'll 
ask the user to try this version and try to get a coredump of the crash.
I'll report the results.


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread belahcene abdelkader

--- "Nikita V. Youshchenko" <[EMAIL PROTECTED]> wrote:

> Hello.
> 
> The known problem with lyx-qt + russian locale +
> math symbols display (that 
> causes no math symbols to be displayed if Qt uses
> fontconfig) may be 
> workarounded by starting lyx-qt as
> 
> LC_TIME=C lyx-qt
> 
> 


=




___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread belahcene abdelkader

--- "Nikita V. Youshchenko" <[EMAIL PROTECTED]> wrote:

> Hello.
> 
> The known problem with lyx-qt + russian locale +
> math symbols display (that 
> causes no math symbols to be displayed if Qt uses
> fontconfig) may be 
> workarounded by starting lyx-qt as
> 
> LC_TIME=C lyx-qt
> 
> 
 To fix the problem install the latex-xft-fonts ( same
problem for the english version)

best regards
bela


=




__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread Nikita V. Youshchenko

> --- "Nikita V. Youshchenko" <[EMAIL PROTECTED]> wrote:
> > Hello.
> >
> > The known problem with lyx-qt + russian locale +
> > math symbols display (that
> > causes no math symbols to be displayed if Qt uses
> > fontconfig) may be
> > workarounded by starting lyx-qt as
> >
> > LC_TIME=C lyx-qt
>
> The problem is not only for the russian, it is for
> english too, to solve the problem install
> latex-xft-fonts

No, the problem is in latex-xft-fonts and Qt. When running in russian 
locale, Qt refuses to load fonts from latex-xft-fonts, due to a strange 
way Qt uses to detect which fornts should be available for application.
As documented in README in latex-xft-fonts, it is a known problem that 
trooltech refuses to fix.


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread Jean-Marc Lasgouttes
> "Nikita" == Nikita V Youshchenko <[EMAIL PROTECTED]> writes:

Nikita> Hello. The known problem with lyx-qt + russian locale + math
Nikita> symbols display (that causes no math symbols to be displayed
Nikita> if Qt uses fontconfig) may be workarounded by starting lyx-qt
Nikita> as

Nikita> LC_TIME=C lyx-qt

I have to admit that I thought at first that LC_TIME was a typo and
that I went to check the sources :) I can see now that
QFont::initialize() in qfont_x11.cpp does use the LC_TIME locale to
determine some locale characteristics.

Do you understand what this code does? Should LyX set LC_TIME to C
unconditionally, or would that disable some interesting feature?

That's very weird.

JMarc


Re: lyx-qt + russian locale + math symbols display

2004-09-30 Thread Nikita V. Youshchenko
> Nikita> LC_TIME=C lyx-qt
>
> I have to admit that I thought at first that LC_TIME was a typo and
> that I went to check the sources :) I can see now that
> QFont::initialize() in qfont_x11.cpp does use the LC_TIME locale to
> determine some locale characteristics.
>
> Do you understand what this code does? Should LyX set LC_TIME to C
> unconditionally, or would that disable some interesting feature?
>
> That's very weird.

One day (several months ago) I was tired with lyx-qt math editor being 
unusable in russian locale, and tried to dig into. I wrote to 
latex-xft-fonts package creators, asking for details. I got the following 
reply:

> > Hello.
> >
> > From README of latex-xft-fonts tarball:
> > > If you're using a locale such as LANG=ru_RU, and some others,
> > > these fonts will not load in Qt. This is a Qt bug that Troll
> > > Tech refuse to fix.
> >
> > Could you please provide more information on this, or point me to such
> > information if it is available?
>
> Troll Tech assigned it a number of N19481, said they'd fixed it, and
> when they hadn't, stated they would not.
>
> Basically, the XFT fonts have a particular encoding, and it does not
> match that requested by Qt when it's looking for a font suitable for
> Cyrillic (even though there is no Cyrillic glyph used for the math
> symbols).
>
> It might be possible to produce a set of math XFT fonts with a matching
> encoding, but my attempts using pfaedit have so far failed.
>
> regards
> john

Then I looked at qt sources, and found all that things in qfont_x11.cpp
I failed to understand why the do so, and decided to give up (noting in my 
todo that one day I should think more).
Yesterday I found that todo, and realized that I may fool Qt by resetting 
LC_TIME. Not much things actually use LC_TIME, so I hope it should not 
break anything. I tried it, and it worked.
So I wrote to several lists about it, and enabled workaround on systems 
that I administer (our users use lyx sometimes; until now they had to use 
either xforms version or qt version without russian locale).
Unfortunately, today one of our users reported that lyx-qt (installed from 
debian binary package 1.3.4-2) crashes every other minute for him, until 
restarted with LC_ALL=C.
I was not able to reproduce crashes (however, I can't say I tried very 
hard). I don't know if it related to running lyx-qt in a "mixed" locale, 
or just to running it in russian locale, or completely unrelated (e.g. it 
crashes on user's particular document).
Currently I'm rebuilding the package with debugging symbols enabled; I'll 
ask the user to try this version and try to get a coredump of the crash.
I'll report the results.


lyx-qt + russian locale + math symbols display

2004-09-29 Thread Nikita V. Youshchenko
Hello.

The known problem with lyx-qt + russian locale + math symbols display (that 
causes no math symbols to be displayed if Qt uses fontconfig) may be 
workarounded by starting lyx-qt as

LC_TIME=C lyx-qt



lyx-qt + russian locale + math symbols display

2004-09-29 Thread Nikita V. Youshchenko
Hello.

The known problem with lyx-qt + russian locale + math symbols display (that 
causes no math symbols to be displayed if Qt uses fontconfig) may be 
workarounded by starting lyx-qt as

LC_TIME=C lyx-qt



lyx-qt + russian locale + math symbols display

2004-09-29 Thread Nikita V. Youshchenko
Hello.

The known problem with lyx-qt + russian locale + math symbols display (that 
causes no math symbols to be displayed if Qt uses fontconfig) may be 
workarounded by starting lyx-qt as

LC_TIME=C lyx-qt