Dear Erdal,

There is a short description in MySpell's source:

--- MySpell-3.0/README.replacetable ------
We can define language-dependent phonetic information
in the affix file (.aff)  by a replacement table. With this 
table, MySpell can suggest the right forms for the typical 
faults of spelling when the incorrect form differs by more, 
than 1 letter from the right form.

Replacement table syntax:

REP [number_of_replacement_definitions]
REP [what] [replacement]
REP [what] [replacement]
...

For example a possible English replacement table definition
to handle misspelt consonants:

REP 8
REP f ph
REP ph f
REP f gh
REP gh f
REP j dg
REP dg j
REP k ch
REP ch k
-------------------------

> Is the REP flag responsible for the sort order of the suggested spellings?

Yes, with REP you can modify the sort order, too.
An example from the Hungarian affix file:

REP 91
REP � i
REP i �
REP � o
REP o �
etc.

These are the most frequent Hungarian misspellings. Suggested word with
these misspellings will be the first elements of the suggestion.

But! The recent version of MySpell has a new suggestion mechanism.
This MAP suggestion is more preferred in the sort order of suggestions.
You need MAP definitions for right suggestion order in case of
single letter misspellings. With previous example:

MAP 2
MAP i�
MAP o�

(README.charmaps from MySpell's source:
----------------------
We can define language-dependent information on characters that
should be considered related (ie. nearer than other chars not in the set)
in the affix file (.aff)  by a character map table. With this 
table, MySpell can suggest the right forms for words which
incorrectly choose the wrong letter from a related set more than once
in a word.

map table syntax:

MAP [number_of_related_character_set_definitions]
MAP [string_of_related_chars]
MAP [string_of_related_chars]
...

For example a possible mapping could be for the German
umlauted u versus the regular u. 
For example Fruhstuck really should be written with umlauted u's and not regular
ones 

MAP 1
MAP u�
-------------------------

Best regards,

Laci



Quoting Erdal Ronahi <[EMAIL PROTECTED]>:

> Hi!
> 
> I am working on the Kurdish MySpell dictionary and have some questions.
> 
> 1. Is there a manual anywhere? I would like to know how exactly the REP 
> flags work. I have checked the German .aff file and saw that there are 
> equivalent or similar letter combinations. Is the REP flag responsible 
> for the sort order of the suggested spellings?
> 
> 2. Is there a way to set up a homepage for the Kurdish spelling 
> directory at the openoffice.org domain? Or is sourceforge the better 
> address? Currently I have a page at http://www.linux-ku.com/myspell
> 
> Thanks for hints,
> Erdal
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to