Re: [dev] why ist the size of user dictionaries limited to 2000 entries

2009-01-23 Thread Németh László
Hi,

2009/1/23 Christoph Lutz :
> Hi Cor, Hi Marcin, Hi André,
>
> thanks for your answers. I'm happy to see that the limit of entries in
> the user dictionary has been increased in OOo 3.0.1 to 3. I also
> agree with Marcin and André that the dictionary extensions supported
> since OOo 3.0.0 would be a better solution for my problem.
> Unfortunately we still have OOo 2.4.x installed on the most of our
> systems, so none of the two solutions could help in this case. As
> there are only a view people complaining about our current solution
> (the 3 user dictionary files), I think there is currently no pressing
> need to search for another workaround and it's worth to wait until OOo
> 3 has reached munich :-).

You can extend the de_DE.dic file of your installations with your word list.
The German dictionary is open source, and you don't need to modify the
first line (approximate word count) of the de_DE.dic, simply copy your
word list to the end of the file (in the same encoding). (Other
methods for OOo 2.4: I believe, you can use multiple definitions in
the old dictionary.lst configuration file to the same locale:
DICT de DE de_DE
DICT de DE  your_wordlist
Copy your_wordlist.dic (your word list) and your_wordlist.aff (an
empty file or the copy of de_DE.aff, if you need Unicode encoding, use
SET UTF-8 instead of the default ISO8859-1) to the folder of the
dictionary.lst of your installation. Maybe you don't need double DICT
in the dictionary.lst, if you want to install your dictionary to the
personal Openoffice.org folders of your installations. If I right
remember, OOo 2.4 can use both of system-wide (full de_DE) and the
personal (your words) dictionaries.

Best regards,
László

>
> 2009/1/22 André Schnabel :
>> regular hunspell dictionaries are not limited to this. Can you dump the Word
>> dictionaries to a simple ascii wordlist? If you like, you can send this to
>> me and I'll wrap it in an extension. The structure should be easy to
>> understand.
>
> thanks for this offer. May be I will ask you later on how to create a
> hunspell dictionary when I try to create such a dictionary extension
> (I guess that a hunspess dictionary is more performant than the plain
> text dict-Files !?).
>
>> Or .. reading your macro code, it should be enough to place a test.aff file
>> beside your test.dic. The test.aff file needs only to define the correct
>> encodingforyour dictionary. Put this in a dicitonary extension and deploy
>> this to all users.
>
> yes, this should work, too. I also noticed, that dict files in other
> dictionary extensions contain more than 2000 words and the structure
> of this file is very simple. So it could be a workaround to create a
> dict file with standard unix tools and drop down the idea of using the
> OOo-API.
>
> best regards,
> Christoph
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
> For additional commands, e-mail: dev-h...@openoffice.org
>
>

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] why ist the size of user dictionaries limited to 2000 entries

2009-01-23 Thread Christoph Lutz
Hi Cor, Hi Marcin, Hi André,

thanks for your answers. I'm happy to see that the limit of entries in
the user dictionary has been increased in OOo 3.0.1 to 3. I also
agree with Marcin and André that the dictionary extensions supported
since OOo 3.0.0 would be a better solution for my problem.
Unfortunately we still have OOo 2.4.x installed on the most of our
systems, so none of the two solutions could help in this case. As
there are only a view people complaining about our current solution
(the 3 user dictionary files), I think there is currently no pressing
need to search for another workaround and it's worth to wait until OOo
3 has reached munich :-).

2009/1/22 André Schnabel :
> regular hunspell dictionaries are not limited to this. Can you dump the Word
> dictionaries to a simple ascii wordlist? If you like, you can send this to
> me and I'll wrap it in an extension. The structure should be easy to
> understand.

thanks for this offer. May be I will ask you later on how to create a
hunspell dictionary when I try to create such a dictionary extension
(I guess that a hunspess dictionary is more performant than the plain
text dict-Files !?).

> Or .. reading your macro code, it should be enough to place a test.aff file
> beside your test.dic. The test.aff file needs only to define the correct
> encodingforyour dictionary. Put this in a dicitonary extension and deploy
> this to all users.

yes, this should work, too. I also noticed, that dict files in other
dictionary extensions contain more than 2000 words and the structure
of this file is very simple. So it could be a workaround to create a
dict file with standard unix tools and drop down the idea of using the
OOo-API.

best regards,
Christoph

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] why ist the size of user dictionaries limited to 2000 entries

2009-01-22 Thread André Schnabel

Hi Christoph,


Christoph Lutz schrieb:

we want to import our word dictionaries into OOo. The test-macro below
shows that user dictionaries in OOo seem to be limited to 2000
entries. 

Yes,



Are other types of dictionaries (e.g. system wide dictionaries) also
restricted to 2000 entries?
  


regular hunspell dictionaries are not limited to this. 
Can you dump the Word dictionaries to a simple ascii wordlist? If you 
like, you can send this to me and I'll wrap it in an extension. The 
structure should be easy to understand.



Or .. reading your macro code, it should be enough to place a test.aff 
file beside your test.dic. The test.aff file needs only to define the 
correct encodingforyour dictionary. Put this in a dicitonary extension 
and deploy this to all users.


André

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] why ist the size of user dictionaries limited to 2000 entries

2009-01-22 Thread Marcin Miłkowski
Hi,

a better idea would be to create a dictionary extension. You can even run munch 
on the text file that contains the words from your word dictionaries to save 
some disk and memory space. Though it may sound as a workaround to you, it's 
actually better also for performance reasons.

Regards
Marcin


Dnia 22 stycznia 2009 16:33 Christoph Lutz  napisał(a):

> Hi,
> 
> we want to import our word dictionaries into OOo. The test-macro below
> shows that user dictionaries in OOo seem to be limited to 2000
> entries. This means we have to create 3 user dictionaries to cover all
> of the current 5000 entries in our word dictionary. And users have to
> import 3 OOo user dictionaries to use them. Some of our user complain
> about the need to have multiple user dictionary active simultanously
> and simply don't understand the restriction of 2000 words. What can I
> tell them?
> 
> Are other types of dictionaries (e.g. system wide dictionaries) also
> restricted to 2000 entries?
> 
> The following macro creates a new user dictionary and adds some values
> until the dictionary is full. In the end the number of possible
> elements (2000 on my system) is printed.
> 
> dim locale as new com.sun.star.lang.Locale
> locale.Language = "de"
> dictList = createUnoService ("com.sun.star.linguistic2.DictionaryList")
> dict = dictList.createDictionary("meinTest",locale,
> com.sun.star.linguistic2.DictionaryType.POSITIVE,
> "file:///tmp/test.dic")
> count=0
> while (NOT(dict.isFull()))
>   dict.add("Hallo" & count, False, "")
>   count=count+1
> wend
> dictList.addDictionary(dict)
> print dict.Count
> 
> best regards,
> Christoph
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
> For additional commands, e-mail: dev-h...@openoffice.org
> 
> 

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



Re: [dev] why ist the size of user dictionaries limited to 2000 entries

2009-01-22 Thread Cor Nouws

Hi Christoph,

Christoph Lutz wrote (22-1-2009 16:33)


we want to import our word dictionaries into OOo. The test-macro below
shows that user dictionaries in OOo seem to be limited to 2000
entries. ...


You'll be pleased to see this issue:
http://qa.openoffice.org/issues/show_bug.cgi?id=48676

Ciao,
Cor

--
Cor Nouws-nl.OpenOffice.org marketing contact
=  "2008: The Year of 3"  =  www.nieuwsteoffice.nl  =

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



[dev] why ist the size of user dictionaries limited to 2000 entries

2009-01-22 Thread Christoph Lutz
Hi,

we want to import our word dictionaries into OOo. The test-macro below
shows that user dictionaries in OOo seem to be limited to 2000
entries. This means we have to create 3 user dictionaries to cover all
of the current 5000 entries in our word dictionary. And users have to
import 3 OOo user dictionaries to use them. Some of our user complain
about the need to have multiple user dictionary active simultanously
and simply don't understand the restriction of 2000 words. What can I
tell them?

Are other types of dictionaries (e.g. system wide dictionaries) also
restricted to 2000 entries?

The following macro creates a new user dictionary and adds some values
until the dictionary is full. In the end the number of possible
elements (2000 on my system) is printed.

dim locale as new com.sun.star.lang.Locale
locale.Language = "de"
dictList = createUnoService ("com.sun.star.linguistic2.DictionaryList")
dict = dictList.createDictionary("meinTest",locale,
com.sun.star.linguistic2.DictionaryType.POSITIVE,
"file:///tmp/test.dic")
count=0
while (NOT(dict.isFull()))
  dict.add("Hallo" & count, False, "")
  count=count+1
wend
dictList.addDictionary(dict)
print dict.Count

best regards,
Christoph

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org