On Mon, Mar 27, 2006 at 12:14:21AM +0200, Agustin Martin wrote: > On Sat, Mar 25, 2006 at 05:17:38PM +0100, Jordi Mallach wrote: > > The "100% correct" aspell dictionary is nearly 200 megabytes, as it > > includes a lot of variations for hyphenated and apostrophed words, which > > is mainly what was getting removed in the past. > > Hi, Jordi > ... > I am attaching a patch with what I think should work for using affix > compression, once myspell affix file is fixed (another couple of problems > are also fixed in the patch). Note that it will not work for aspell > with current affix file.
It had a typo, resending it. I have also been testing ca_affix.dat from aspell site, to replace catalan-m.aff. Did not yet test it with myspell, but seems the same one you have in the package, but with the right fixes for aspell to not complain, so I expect it to work well. I will test tomorrow with hunspell and will let you know in case of problems. If you diff both files to see the differences, please first run unix2dos on the old file, seems that both catalan-m.aff and catalan-m.dic were saved with DOS EOL. I also suggest you to send that affix file upstream for consideration. Saludos, -- Agustin
diff -u ispellcat-0.4/debian/ca.dat ispellcat-0.4/debian/ca.dat --- ispellcat-0.4/debian/ca.dat +++ ispellcat-0.4/debian/ca.dat @@ -4,2 +4,5 @@ -special ' -*- · -*- - -*- +special ' -*- · -*- - -*- . --* soundslike generic +affix ca +affix-compress true +repl-table ca_affix.dat diff -u ispellcat-0.4/debian/changelog ispellcat-0.4/debian/changelog --- ispellcat-0.4/debian/changelog +++ ispellcat-0.4/debian/changelog @@ -1,3 +1,11 @@ +ispellcat (0.4-6.1) unstable; urgency=low + + * debian/ca.dat, debian/rules: Use affix compression + * debian/ca.dat: Allow . at end of words + * debian/rules: Make sure no cruft is left on purge + + -- Agustin Martin Domingo <[EMAIL PROTECTED]> Sun, 26 Mar 2006 23:53:04 +0200 + ispellcat (0.4-6) unstable; urgency=low * debian/control: diff -u ispellcat-0.4/debian/rules ispellcat-0.4/debian/rules --- ispellcat-0.4/debian/rules +++ ispellcat-0.4/debian/rules @@ -32,9 +32,7 @@ # cat catala.words.debian | \ # aspell --local-data-dir=$(CURDIR) --lang=ca \ # create master ./ca.rws - cp catala.words.debian ca.wl - prezip ca.wl - gzip ca.cwl + cat catalan-m.dic | fromdos | sed '1d' | prezip | gzip -c > ca.cwl.gz echo "add ca.rws" > ca.multi echo "add ca.multi" > catalan.alias @@ -71,14 +69,14 @@ # aspell-ca stuff install -m 644 ca.cwl.gz $(ADICT_DIR)/usr/share/aspell install -m 644 debian/ca.dat $(ADICT_DIR)/usr/lib/aspell/ca.dat - touch $(ADICT_DIR)/usr/lib/aspell/ca.rws - touch $(ADICT_DIR)/usr/lib/aspell/ca.compat + install -m 644 catalan-m.aff $(ADICT_DIR)/usr/lib/aspell/ca_affix.dat install -m 644 ca.multi $(ADICT_DIR)/usr/lib/aspell/ca.multi install -m 644 catalan.alias $(ADICT_DIR)/usr/lib/aspell/catalan.alias install -m 644 catala.alias $(ADICT_DIR)/usr/lib/aspell/catala.alias install -m 644 català .alias $(ADICT_DIR)/usr/lib/aspell/català .alias + touch $(ADICT_DIR)/var/lib/aspell/ca.rws touch $(ADICT_DIR)/var/lib/aspell/ca.compat - + # install -m 644 ca_phonet.dat $(ADICT_DIR)/usr/lib/aspell/ca_phonet.dat # myspell-ca stuff