Kevin,
Yes, you are right. After having corrected the affix
file the error went away. I closed the issue.
Thanks, Eleonora
Attached an affix checking script.
-------------------------------------------------------------------------------------------
#
# check_affix.awk
# check affix file for Oo myspell
#
function is_fx(s)
{
if(s == "PFX")
return 1;
if(s == "SFX")
return 2;
if(s == "REP")
return 3;
return 0;
}
BEGIN {linenr = 0; nr = 0;}
{ ++linenr;
if(nr){
if(sorszam++ == nr){
sorszam = 0;
nr = 0;
if(NF > 1 && substr($0,1,1) != "#" && ((is_fx($1) <
3) && (is_fx($1) > 0)
&& ($4 + 0) == 0)){
print "2. error in line " linenr " line:" $0;
# next;
}
}
else if($1 != veg || ((fxtyp < 3) && (($2 != typ) || (NF <
5)) )){
print "1. error in line " linenr" line:" $0;
sorszam = 0;
nr = 0;
next;
}
else
next;
}
while(!(ret = is_fx($1)))next;
veg = $1;
typ = $2;
fxtyp = ret;
if(ret < 3) nr = $4 + 0;
else nr = $2 + 0;
sorszam = 0;
# print "---1 " $0" nr:"nr;
}
----------------------------------------------------------------------------------------------
Am Sonntag, 6. M�rz 2005 23:30 schrieb Kevin B. Hendricks:
> Hi,
>
> I checked you .aff file. It is incorrect. PFX a has more than 45
> entries. So this is probably messing up the parsing of PFX b.
>
> Please correct PFX a and make sure all root words are unique and that
> should solve your problem.
>
> Kevin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]