Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-15 Thread Joost Verburg
On 7/15/2010 12:39 PM, Pavel Sanda wrote: separating them is probably better idea. btw Joost are you able to reproduce http://www.lyx.org/trac/ticket/6818 on your system? Yes, I can reproduce. I'm compiling a debug version. Joost

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-15 Thread Pavel Sanda
Joost Verburg wrote: > On 7/9/2010 1:33 PM, Pavel Sanda wrote: >> it seem quite unprobable but why not, trunk dir above does not cost >> anything. > > How should we proceed with the new dictionaries module? Are all the > dictionaries and thesaurus lists going into dictionaries/trunk or should >

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-15 Thread Stephan Witt
Am 15.07.2010 um 18:30 schrieb Joost Verburg: > On 7/9/2010 1:33 PM, Pavel Sanda wrote: >> it seem quite unprobable but why not, trunk dir above does not cost anything. > > How should we proceed with the new dictionaries module? Are all the > dictionaries and thesaurus lists going into dictionar

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-15 Thread Joost Verburg
On 7/9/2010 1:33 PM, Pavel Sanda wrote: it seem quite unprobable but why not, trunk dir above does not cost anything. How should we proceed with the new dictionaries module? Are all the dictionaries and thesaurus lists going into dictionaries/trunk or should there be two subdirectories like d

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-12 Thread Pavel Sanda
Joost Verburg wrote: > I was talking about the packaging. The source would be the SVN repository. > Automatic zipping is a good idea! i've created standardsvn structure there, so put all the stuff you had in mind into svn://svn.lyx.org/lyx/dictionaries/trunk pavel

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Joost Verburg
On 7/9/2010 1:31 PM, Pavel Sanda wrote: thats up to you. but bundling is pretty orthogonal to the current svn activity. my plan was write trivial makefile which will just zip all files into one archive which we put on ftp. that would be the reference point for partricular lyx versions... i have

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Pavel Sanda
Stephan Witt wrote: > Am 09.07.2010 um 17:12 schrieb Joost Verburg: > > > On 7/9/2010 8:25 AM, Jean-Marc LASGOUTTES wrote: > >> The repository is created. I guess you should create a trunk/ branches/ > >> structure in it. > > > > I don't think we need different branches for dictionaries. > > Perh

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Pavel Sanda
Joost Verburg wrote: > On 7/9/2010 11:27 AM, Jean-Marc LASGOUTTES wrote: >> Are we sure that file formats are not going to evolve? Do we plan >> eventually to allow users to download these dictionaries on the fly? > > Maybe thes/mythes2/ and dicts/hunspell1/ ? looks fine. > I'm thinking about jus

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Stephan Witt
Am 09.07.2010 um 17:12 schrieb Joost Verburg: > On 7/9/2010 8:25 AM, Jean-Marc LASGOUTTES wrote: >> The repository is created. I guess you should create a trunk/ branches/ >> structure in it. > > I don't think we need different branches for dictionaries. > Perhaps the structure could be dicts/ th

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Joost Verburg
On 7/9/2010 11:27 AM, Jean-Marc LASGOUTTES wrote: Are we sure that file formats are not going to evolve? Do we plan eventually to allow users to download these dictionaries on the fly? Maybe thes/mythes2/ and dicts/hunspell1/ ? I'm thinking about just bundling all of them. There have been many

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Jean-Marc LASGOUTTES
Joost Verburg writes: > On 7/9/2010 8:25 AM, Jean-Marc LASGOUTTES wrote: >> The repository is created. I guess you should create a trunk/ branches/ >> structure in it. > > I don't think we need different branches for dictionaries. > Perhaps the structure could be dicts/ thes/ ? Are we sure that

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Joost Verburg
On 7/9/2010 8:25 AM, Jean-Marc LASGOUTTES wrote: The repository is created. I guess you should create a trunk/ branches/ structure in it. I don't think we need different branches for dictionaries. Perhaps the structure could be dicts/ thes/ ? Joost

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Jean-Marc LASGOUTTES
Pavel Sanda writes: > svn mkdir accepts url... > but when i tried svn mkdir svn://svn.lyx.org/lyx/dictionaries > i got > svn: Access denied > svn: Your commit message was left in a temporary file: > svn:'svn-commit.tmp' > > maybe you have more privileges? No, but I have enough sudo privilege

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Pavel Sanda
Jean-Marc LASGOUTTES wrote: > Pavel Sanda writes: > > Joost Verburg wrote: > >> On 7/8/2010 6:52 PM, Pavel Sanda wrote: > >>> yes, fine. will you do it? > >>> pavel > >> > >> You want to create a new SVN module, right? > >> It's probably better if you do this. > > > > yes. thinking more about it m

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Stephan Witt
Am 09.07.2010 um 10:13 schrieb Jean-Marc LASGOUTTES: > Pavel Sanda writes: >> Joost Verburg wrote: >>> On 7/8/2010 6:52 PM, Pavel Sanda wrote: yes, fine. will you do it? pavel >>> >>> You want to create a new SVN module, right? >>> It's probably better if you do this. >> >> yes. thin

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-09 Thread Jean-Marc LASGOUTTES
Pavel Sanda writes: > Joost Verburg wrote: >> On 7/8/2010 6:52 PM, Pavel Sanda wrote: >>> yes, fine. will you do it? >>> pavel >> >> You want to create a new SVN module, right? >> It's probably better if you do this. > > yes. thinking more about it maybe only JMarc who > has the privileges to do i

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-08 Thread Pavel Sanda
Joost Verburg wrote: > On 7/8/2010 6:52 PM, Pavel Sanda wrote: >> yes, fine. will you do it? >> pavel > > You want to create a new SVN module, right? > It's probably better if you do this. yes. thinking more about it maybe only JMarc who has the privileges to do it? pavel

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-08 Thread Joost Verburg
On 7/8/2010 6:52 PM, Pavel Sanda wrote: yes, fine. will you do it? pavel You want to create a new SVN module, right? It's probably better if you do this. Joost

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-08 Thread Pavel Sanda
Joost Verburg wrote: > On 7/8/2010 6:20 AM, Pavel Sanda wrote: >> ok lets do this. i would crete new svn module dictionaries and put >> them into "dictionaries/openoffice/thesaurus". opinions? > > I'm not sure we will get all dictionaries/thesauri from OpenOffice > extensions. Sometimes there are

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-08 Thread Joost Verburg
On 7/8/2010 6:20 AM, Pavel Sanda wrote: ok lets do this. i would crete new svn module dictionaries and put them into "dictionaries/openoffice/thesaurus". opinions? I'm not sure we will get all dictionaries/thesauri from OpenOffice extensions. Sometimes there are more recent version available e

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-08 Thread Pavel Sanda
Stephan Witt wrote: > So currently I would package the openoffice thesauri and be done with it. ok lets do this. i would crete new svn module dictionaries and put them into "dictionaries/openoffice/thesaurus". opinions? pavel

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-08 Thread Jean-Marc Lasgouttes
For Aspell it's another story - on Mac OS you can get them from macports and 2.0 LyX will find and use them. So we don't have to distribute them. Of course for the natively supported languages Aspell or hunspell isn't needed at all. Additionally the user has the option to extend the native s

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-07 Thread Joost Verburg
On 7/7/2010 1:36 PM, Stephan Witt wrote: The dictionaries for hunspell and the thesauri are openoffice work. AFAIK there many different open source projects that maintain dictionaries for a certain language and they are usually the ones who create the OpenOffice extensions and submit them for

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-07 Thread Stephan Witt
Am 07.07.2010 um 14:43 schrieb Pavel Sanda: > Stephan Witt wrote: >>> i hope i understand correctly that dictionary files themselves are identical >>> to all platforms (while the code around is not). so i would put all the code >>> into our tarball, while the dictionaries could be packed separatel

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-07 Thread Pavel Sanda
Stephan Witt wrote: > > i hope i understand correctly that dictionary files themselves are identical > > to all platforms (while the code around is not). so i would put all the code > > into our tarball, while the dictionaries could be packed separately - we can > > even create new svn directory on

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-07 Thread Stephan Witt
Am 07.07.2010 um 10:35 schrieb Pavel Sanda: > Stephan Witt wrote: >> Am 06.07.2010 um 23:51 schrieb Pavel Sanda: >> >>> Stephan Witt wrote: Yes. But I don't know if this is enough and legal. Is anybody able to tell this for sure? E. g. the spanish language pack contains a README w

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-07 Thread Pavel Sanda
Stephan Witt wrote: > Am 06.07.2010 um 23:51 schrieb Pavel Sanda: > > > Stephan Witt wrote: > >> Yes. But I don't know if this is enough and legal. Is anybody able to tell > >> this for sure? > >> E. g. the spanish language pack contains a README with a reference to > >> http://www.gnu.org/licen

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-06 Thread Stephan Witt
Am 06.07.2010 um 23:51 schrieb Pavel Sanda: > Stephan Witt wrote: >> Yes. But I don't know if this is enough and legal. Is anybody able to tell >> this for sure? >> E. g. the spanish language pack contains a README with a reference to >> http://www.gnu.org/licenses/lgpl.txt. >> As I understand i

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-06 Thread Pavel Sanda
Stephan Witt wrote: > Yes. But I don't know if this is enough and legal. Is anybody able to tell > this for sure? > E. g. the spanish language pack contains a README with a reference to > http://www.gnu.org/licenses/lgpl.txt. > As I understand it we are allowed to use it but we have to ... > "giv

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-04 Thread Joost Verburg
On 7/4/2010 1:04 PM, Stephan Witt wrote: So I'm really baffled that the mythes code in LyX can deal with the old file format. The parser starts unconditionally with reading first line as encoding, second line as no. of lines and allocates 0 index entries (because of converting "Alá,24" results

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-04 Thread Stephan Witt
Am 04.07.2010 um 17:15 schrieb Joost Verburg: > On 7/4/2010 9:16 AM, Stephan Witt wrote: >> Hmm... then I have to check again why it crashed here. >> While studying the code I was not surprised about the crash. >> OTOH the version 2 files are available. Perhaps one can decide to use them >> anywa

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-04 Thread Joost Verburg
On 7/4/2010 9:16 AM, Stephan Witt wrote: Hmm... then I have to check again why it crashed here. While studying the code I was not surprised about the crash. OTOH the version 2 files are available. Perhaps one can decide to use them anyway. Where did you find the v2 files? It could be that the

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-04 Thread Stephan Witt
Am 03.07.2010 um 23:32 schrieb Joost Verburg: > On 7/3/2010 5:18 AM, Stephan Witt wrote: >> Do you made the collection manually? I noticed some outdated files in it. >> Mythes needs the version 2 thesaurus files. They are named like "th*_v2.idx" >> etc. >> E. g. the spanish and french thesaurus i

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-03 Thread Joost Verburg
On 7/3/2010 5:18 AM, Stephan Witt wrote: Do you made the collection manually? I noticed some outdated files in it. Mythes needs the version 2 thesaurus files. They are named like "th*_v2.idx" etc. E. g. the spanish and french thesaurus in your zip file is not usable therefore. I think we have t

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-03 Thread Jürgen Spitzmüller
Stephan Witt wrote: > No, I haven't. So we can move the check one level up - to Thesaurus.cpp? > Would this be ok with you? (patch attached) Yes. Jürgen

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-03 Thread Stephan Witt
Am 03.07.2010 um 14:44 schrieb Jürgen Spitzmüller: > Stephan Witt wrote: >> I tried to incorporate some thesaurus files from OpenOffice. It seems like >> the file format has changed and is incompatible now. So the old thesaurus >> .idx and .dat files are found but not valid and then LyX crashes. T

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-03 Thread Jürgen Spitzmüller
Stephan Witt wrote: > I tried to incorporate some thesaurus files from OpenOffice. It seems like > the file format has changed and is incompatible now. So the old thesaurus > .idx and .dat files are found but not valid and then LyX crashes. To avoid > this I added the checks above. I suppose you h

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-03 Thread Stephan Witt
Am 03.07.2010 um 00:45 schrieb Joost Verburg: > On 7/2/2010 3:37 AM, Stephan Witt wrote: >> I tried to incorporate some thesaurus files from OpenOffice. It seems like >> the file format has changed and is incompatible now. So the old thesaurus >> .idx and .dat files are found but not valid and t

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-02 Thread Joost Verburg
On 7/2/2010 3:37 AM, Stephan Witt wrote: I tried to incorporate some thesaurus files from OpenOffice. It seems like the file format has changed and is incompatible now. So the old thesaurus .idx and .dat files are found but not valid and then LyX crashes. To avoid this I added the checks above

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-02 Thread Stephan Witt
Am 02.07.2010 um 10:16 schrieb Pavel Sanda: > Stephan Witt wrote: >> I tried to incorporate some thesaurus files from OpenOffice. It seems like >> the file format has changed and is incompatible now. So the old thesaurus >> .idx and .dat files are found but not valid and then LyX crashes. To avo

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-02 Thread Pavel Sanda
Stephan Witt wrote: > I tried to incorporate some thesaurus files from OpenOffice. It seems like > the file format has changed and is incompatible now. So the old thesaurus > .idx and .dat files are found but not valid and then LyX crashes. To avoid > this I added the checks above. > But the que

Re: r34742 - lyx-devel/trunk/src/support/mythes

2010-07-02 Thread Stephan Witt
Am 02.07.2010 um 09:03 schrieb sw...@lyx.org: > Author: switt > Date: Fri Jul 2 09:03:15 2010 > New Revision: 34742 > URL: http://www.lyx.org/trac/changeset/34742 > > Log: > add checks for empty word list to avoid crashes later in MyThes::binsearch() > > Modified: > lyx-devel/trunk/src/suppor