You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It may be not a bug, but rather my mistake/misunderstanding of how hunspell dictionaries work.
I am trying to create a dictionary for latin language with accents. Let's consider a word románus. According to its declension one of its form is romanórum. To represent that I created the following dic and aff files:
1
románus/A
SET UTF-8
SFX A N 1
SFX A us órum
This doesn't work because those rules generate word románórum which is invalid since it has two accents. So what I did is that I added an OCONV entry:
(...)
OCONV 1
OCONV ánó anó
Running hunspell with that dictionary gives an odd result: románórum is accepted, but romanórum is considered a near miss with suggested spelling romanórum (exactly the same).
It may be not a bug, but rather my mistake/misunderstanding of how hunspell dictionaries work.
I am trying to create a dictionary for latin language with accents. Let's consider a word
románus
. According to its declension one of its form isromanórum
. To represent that I created the following dic and aff files:This doesn't work because those rules generate word
románórum
which is invalid since it has two accents. So what I did is that I added anOCONV
entry:Running hunspell with that dictionary gives an odd result:
románórum
is accepted, butromanórum
is considered a near miss with suggested spellingromanórum
(exactly the same).Maybe I simply misunderstood how ICONV and OCONV work - the explanation in
man
isn't very detailed.The text was updated successfully, but these errors were encountered: