Am 04.05.2011 um 23:42 schrieb Pavel Sanda:

> Stephan Witt wrote:
>> Sorry, I think this must be was a side effect of some change - at first the 
>> debug
>> output had path names...
> 
> Stephan i have next problems. i see you coded some checking for the header of 
> thesauru files.
> you followed some specification or just guessed?

There is no specification.

The problem is as follows:
The mythes.cxx code maintains no file format. Nevertheless they changed the 
format radically.
But the code doesn't check for it and simply crashes when feed with the the old 
format.
Since we have it compiled in LyX crashes when opening an old index file as 
thesaurus.
I tried to fix this with http://www.lyx.org/trac/changeset/34742.
But Jürgen told me that we have a license problem here and are not allowed to 
change that code.
So I added the check for it in Thesaurus.cpp with 
http://www.lyx.org/trac/changeset/34750
Unfortunately the name of the index file is not usable to decide the format too.

> while en thesaurus works here, czech one fails with "ignore irregular 
> thesaurus idx file"
> debug message.
> 
> the file th_cs_CZ.idx starts:
> -li,0
> Angličan,4
> Brit,8
> Cařihrad,12
> Holandsko,16
> Indián,20
> Istanbul,24
> 
> while english version starts:
> ISO8859-1
> 145822
> 's gravenhage|10
> 'tween decks|140
> (adj)|4191892
> (adj)|6593731
> (noun)|373131
> (noun)|2198247
> (noun)|2198275
> (noun)|2198355
> (noun)|6591855
> (noun)|6592543
> 
> so there seems to be difference in header.
> is it our bug or bug of my distro delivering wrong thesauri?

I don't know how to get the missing version 2 thesauri.
Your distro has the same problem and provides format 1 instead.
But it is usable only for version 1 read capable thesaurus implementations.
LyX cannot use them.

Stephan

Reply via email to