To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=19563





------- Additional comments from nem...@openoffice.org Fri Dec 12 02:48:25 
+0000 2008 -------
Attached en_US, en_CA spelling and morphological dictionaries

They are extended equivalents of the last Wordlist Hunspell dictionaries
(version 2008-12-05).

Tested with Hunspell 1.1.12 (OOo 3.0), too. Only ordinal number checking doesn't
work with Hunspell 1.1.12. (COMPOUNDRULE didn't handle numerical flags in older
Hunspell versions.)

Attached screenshot: morphological dictionary test in the test build
(ftp://ftp.fsf.hu/OpenOffice.org_hu/devel/)

(tests for dictionary equivalence:
$ unmunch <(sed -n '24,$p' en_US.dic) en_US.aff | sort | uniq 
>/tmp/en_US.wordlist
$ cat <(echo badword) /tmp/en_US.wordlist | hunspell -d
hunspell-en-morph-20081212/en_US -l badword
badword
$ unmunch <(sed -n '24,$p' en_CA.dic) en_CA.aff | sort | uniq 
>/tmp/en_CA.wordlist
$ cat <(echo badword) /tmp/en_CA.wordlist | hunspell -d
hunspell-en-morph-20081212/en_CA -l 
badword

Reverse:

$ awk 'FILENAME~/en_CA_notaliascomp[.]aff$/{if (NF==4){n[$2]=$4; i=0;
next};i++;s[$2,i,1]=($3=="0"?0:length($3));s[$2,i,2]=($4=="0"?"":$4);s[$2,i,3]=$5"$";
next}!/\//{print $1;next}{split($1,a,"/");print
a[1];l=split(a[2],b,",");for(i=1;i<=l;i++){ m=n[b[i]]; for(j=1;j<=m;j++){if(a[1]
~ s[b[i], j, 3])print substr(a[1], 1, length(a[1])-s[b[i], j, 1]) s[b[i], j,
2]}}}' en_CA_notaliascomp.{aff,dic} | sort | uniq | sed -n '3,$p' 
>/tmp/en_morf.wl0
f> diff /tmp/en_CA.wordlist /tmp/en_morf.wl0 
0a1,22
> 1
> 1st
> 1th
> 2
> 2nd
> 2th
> 3
> 3rd
> 3th
> 4
> 4th
> 5
> 53000
> 5th
> 6
> 6th
> 7
> 7th
> 8
> 8th
> 9
> 9th

(only extra words)


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lingucomponent.openoffice.org
For additional commands, e-mail: issues-h...@lingucomponent.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to