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 <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to