--- rules.fake	2009-01-31 22:27:21.000000000 +0600
+++ rules	2009-01-31 22:49:22.000000000 +0600
@@ -13,10 +13,14 @@
 LANG_COUNTRY=ru_RU
 DICT_LANG=ru
 
+#need for grep and tr to worck with dictionary encoding in koi8-r!!!
+LANG=ru_RU.KOI8R
+LC_ALL=ru_RU.KOI8R
+
 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
+	grep -h '[£³]' $(DICTIONARIES) | tr '£³' 'Åå' > io2ie_dictionary.koi
+	cat $(DICTIONARIES) io2ie_dictionary.koi | ./sortkoi8 | uniq > $(ILANGUAGE).dict
 	sed -e "s/^\#[ye]//;s/^\#koi/wordchars/" $(ILANGUAGE).aff.koi > $(ILANGUAGE).aff
 	buildhash $(ILANGUAGE).dict $(ILANGUAGE).aff $(ILANGUAGE).hash
 	# Generate myspell dictionary
@@ -36,7 +40,7 @@
 
 clean::
 	# Clean ispell files.
-	rm -f *.cnt *.hash *.stat yo_subst.koi
+	rm -f *.cnt *.hash *.stat io2ie_dictionary.koi
 	# Also delete aff and dict, since we build them here.
 	rm -f $(ILANGUAGE).aff $(ILANGUAGE).dict
 	# Clean myspell files.

Reply via email to