Menu

#192 error in affix into affix rules

open
nobody
None
5
2011-04-25
2011-04-25
No

I think I have found an error in the affix management.
I show you with two examples.

a.aff file:
---8<----8<----8<----8<----8<----8<----8<----8<-
SET UTF-8
FLAG UTF-8
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
FULLSTRIP

SFX 0 Y 3
SFX 0 o i o
SFX 0 o a/1 o
SFX 0 o e o

PFX 1 N 2
PFX 1 a b a
PFX 1 a c a
---8<----8<----8<----8<----8<----8<----8<----8<-

a.dic file:
---8<----8<----8<----8<----8<----8<----8<----8<-
1
ao/01
---8<----8<----8<----8<----8<----8<----8<----8<-

$ hunspell -m -d a
ao
ao st:ao

bo
bo b st:ao fl:1

ba
ba

Note that the ba is not generated so the "SFX 0 o a/1 o" is not working

Also the same problem for the following example:

a.aff file:
---8<----8<----8<----8<----8<----8<----8<----8<-
SET UTF-8
FLAG UTF-8
TRY esianrtolcdugmphbyfvkwzESIANRTOLCDUGMPHBYFVKWZ'
FULLSTRIP

SFX 0 N 3
SFX 0 o i o
SFX 0 o a/1 o
SFX 0 o e o

PFX 1 Y 2
PFX 1 a b a
PFX 1 a c a
---8<----8<----8<----8<----8<----8<----8<----8<-

a.dic file:
---8<----8<----8<----8<----8<----8<----8<----8<-
1
ao/01
---8<----8<----8<----8<----8<----8<----8<----8<-

$ hunspell -m -d a
ao
ao st:ao

bo
bo b st:ao fl:1

ba
ba

I think that two rules in above affix files must generate the "ba" string.

Ciao
Davide

Discussion