Hi Vladimir,
On Fri, Nov 25, 2005 at 09:30:06AM +0100, Vladimir Stefanov wrote:
> How to make OO to use Aspell for spell checking?
OOo uses myspell (and will be using hunspell).
myspell is a modified version of ispell that evolved to aspell.
> We have aspell for
> Macedonian language and AbiWord use it perfectly, but OO use Myspell,
> and we don't have Myspell for Macedonian language.
The dicitonaries should be very similar. (and hunspell will be
backwards-compatible to the myspell dictionaries).
You'll have to convert the aspell-dicitonaries to the myspell-format.
That format is very simple:
First line: Number of entries (for speed-up, if not given then OOo has
to read the file twice), the rest: one word per line (or base with
affix-Indexes)
So to get started, just dump your macedonian aspell-dictionary to a
plain list of words. That is enough to get OOo work with it, although
the file is not optimized yet.
Use the command:
"aspell dump master macedonian | sort > wordlist.dump"
to create the dump
"wc -l wordlist.dump"
will tell you the number of lines (=words) in the
file. Just add that number as first line of the file.
Then copy that file to xx_YY.dic (where xx_YY is the iso-code of the
language_Country)
Create an affix-file (xx_YY.aff). In its basic form, you only need two
lines: First line: specifies the character-encoding. Second line:
Specifies the letters to try when a misspelled word is found. Just count
the letters in the wordlist and put them in the same order in the
TRY-line (more often used letters first)
Put the two files into the dictionary-directory of OOo and add a
corresponding "DIC"-line to dictionary.lst
After that you can start to optimize the wordlist (reducing the entries)
by using the affix-mechanism explained in more detail here:
http://lingucomponent.openoffice.org/affix.readme
ciao
Christian
--
NP: Metallica - The Outlaw Torn
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]