aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-04-29 09:55:28 +0800
committerache <ache@FreeBSD.org>2001-04-29 09:55:28 +0800
commitf07c3b4d92b345e07c3cbc2feeac1b3a719ccbf7 (patch)
treeed4ef0c62b1e302db7ba2e7169776cb7b5a7448c
parent67dade586aa3607d4ed5686c2013799177241007 (diff)
downloadfreebsd-ports-graphics-f07c3b4d92b345e07c3cbc2feeac1b3a719ccbf7.tar.gz
freebsd-ports-graphics-f07c3b4d92b345e07c3cbc2feeac1b3a719ccbf7.tar.zst
freebsd-ports-graphics-f07c3b4d92b345e07c3cbc2feeac1b3a719ccbf7.zip
Give words from local dict priority over the same dist words, replace them
-rw-r--r--russian/rus-ispell/files/patch-ab28
1 files changed, 19 insertions, 9 deletions
diff --git a/russian/rus-ispell/files/patch-ab b/russian/rus-ispell/files/patch-ab
index 20f5f9bf4e3..ccb1305e1ea 100644
--- a/russian/rus-ispell/files/patch-ab
+++ b/russian/rus-ispell/files/patch-ab
@@ -1,11 +1,21 @@
---- Makefile.bak Tue Oct 19 23:58:46 1999
-+++ Makefile Mon Apr 16 11:23:01 2001
-@@ -2,7 +2,7 @@
+--- Makefile.orig Tue Oct 19 23:58:46 1999
++++ Makefile Sun Apr 29 05:48:25 2001
+@@ -22,7 +22,17 @@
+ cp russian.hash russian.aff $(LIB)
- LIB=/usr/lib/ispell
+ russian.dict.koi: $(DICT)
+- cat $^ $(YO2E) | ./sortkoi8 | uniq > $@
++ cat $(DICT) > distwords.tmp
++ifdef LOCAL_DICT
++ cut -f 1 -d / < $(LOCAL_DICT) | sed "s/.*/^&(\/.*)?$$/" > mywords.tmp
++ egrep -v -f mywords.tmp < distwords.tmp > repwords.tmp
++ rm -f distwords.tmp mywords.tmp
++else
++ mv distwords.tmp repwords.tmp
++endif
++ cat repwords.tmp $(LOCAL_DICT) $(YO2E) | ./sortkoi8 | uniq > $@
++ rm -f repwords.tmp
++
--DICT = base.koi computer.koi geography.koi science.koi # rare.koi
-+DICT = base.koi computer.koi geography.koi science.koi $(LOCAL_DICT) # rare.koi
-
- ifdef YO
- PATT=y
+ check_dict: $(DICT)
+ for i in `cat $(DICT) | sed 's,/.*$$,,' | sort | uniq -d`; do \