utf patch it seems work too.
--- rules.fake 2009-01-31 22:27:21.000000000 +0600 +++ rules 2009-02-01 07:17:11.000000000 +0600 @@ -1,5 +1,4 @@ #!/usr/bin/make -f -# coding: koi8-r # # CDBS debian/rules for rus-ispell # Martin-Eric Racine <q-f...@iki.fi> @@ -13,18 +12,25 @@ LANG_COUNTRY=ru_RU DICT_LANG=ru + build-arch: - # Generate ispell dictionary - grep -h '[]' $(DICTIONARIES) | tr '\243\263' '\305\345' > yo_subst.koi - cat $(DICTIONARIES) yo_subst.koi |./sortkoi8 | uniq > $(ILANGUAGE).dict - sed -e "s/^\#[ye]//;s/^\#koi/wordchars/" $(ILANGUAGE).aff.koi > $(ILANGUAGE).aff + # Generate dictionary (UTF8) + cat $(DICTIONARIES)|iconv -f KOI8R -t UTF8 > $(ILANGUAGE).dict.utf8 + cat $(ILANGUAGE).aff.koi|iconv -f KOI8R -t UTF8 > $(ILANGUAGE).aff.utf8 + # Generate IO -> IE dictionary (UTF8) + grep -h '[ёЁ]' $(ILANGUAGE).dict.utf8 | sed "y/ё/е/; y/Ё/Е/" > io2ie_dictionary.dict.utf8 + # Generate general .dict file (KOI8R) + cat *.dict.utf8 | iconv -f UTF8 -t KOI8R > $(ILANGUAGE).dict + # Generate ispell dictionary (KOI8R) + cat $(ILANGUAGE).aff.utf8 | sed -e "s/^\#[ye]//;s/^\#koi/wordchars/" \ + | iconv -f UTF8 -t KOI8R > $(ILANGUAGE).aff buildhash $(ILANGUAGE).dict $(ILANGUAGE).aff $(ILANGUAGE).hash - # Generate myspell dictionary + # Generate myspell dictionary (KOI8R) i2myspell -d ./$(ILANGUAGE).dict > $(LANG_COUNTRY).dic - i2myspell ./$(ILANGUAGE) KOI8-R \ - ţ | \ + i2myspell ./$(ILANGUAGE) KOI8-R АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ \ + абвгдеёжзийклмнопрстуфхцчшщъыьэюя | \ sed 's/ - / 0 /' > $(LANG_COUNTRY).aff - ## Generate aspell dictionary. + # Generate aspell dictionary. # build-depends on aspell because of prezip. cp $(LANG_COUNTRY).aff $(DICT_LANG)_affix.dat cat $(LANG_COUNTRY).dic | sed 1d | LC_COLLATE=C sort -u | prezip > $(DICT_LANG).cwl @@ -36,9 +42,9 @@ clean:: # Clean ispell files. - rm -f *.cnt *.hash *.stat yo_subst.koi + rm -f *.cnt *.hash *.stat io2ie_dictionary.dict.utf8 # Also delete aff and dict, since we build them here. - rm -f $(ILANGUAGE).aff $(ILANGUAGE).dict + rm -f $(ILANGUAGE).aff $(ILANGUAGE).dict $(ILANGUAGE).dict.utf8 $(ILANGUAGE).aff.utf8 # Clean myspell files. rm -f $(LANG_COUNTRY).aff $(LANG_COUNTRY).dic x # Clean aspell files.