Files
igerman98/igerman98-ispell-sort.patch
Dirk Mueller 6e62615096 Accepting request 507773 from home:scarabeus_iv:branches:Base:System
- Update to 20161207:
  * Bunch of new words
- Refresh patch igerman98-ispell-sort.patch
- Remove hunspell parts as that is provided by the myspell-dictionaries
  package

OBS-URL: https://build.opensuse.org/request/show/507773
OBS-URL: https://build.opensuse.org/package/show/Base:System/igerman98?expand=0&rev=36
2017-07-05 11:35:38 +00:00

81 lines
3.4 KiB
Diff
Raw Permalink Blame History

Index: igerman98-20161207/LC_CTYPE
===================================================================
--- /dev/null
+++ igerman98-20161207/LC_CTYPE
@@ -0,0 +1,2 @@
+de_DE.ISO-8859-1
+
Index: igerman98-20161207/Makefile
===================================================================
--- igerman98-20161207.orig/Makefile
+++ igerman98-20161207/Makefile
@@ -59,7 +59,7 @@ DESTDIR =
# please report problems with other make versions to me.
MAKE = make
FIND = find
-SORT = sort
+SORT = sort -t/ -k 1f,1 -k 1 -T /var/tmp
TAR = tar
SED = sed
NL = nl
@@ -146,9 +146,10 @@ ispell/$(1).hash: ispell/$(1).aff all.wo
$(BUILDHASH) all.words.munch.$(1).tmp ./ispell/$(1).aff $$@
all.words.$(1).tmp: $$(WORDS_$(1)) $$(WORDS_de_all) dicts/abkuerzpunkt.txt
+ LC_CTYPE=de_DE.ISO-8859-1 ; export LC_CTYPE ; \
$(SED) "s/qq//g;s/\.//;s/\-.*//" dicts/abkuerzpunkt.txt $$(WORDS_$(1)) $$(WORDS_de_all) \
| (test -e ./bin/conv_dict_$(1) && ./bin/conv_dict_$(1) || cat) \
- | grep -v "\/.*d" | grep -v "##" | $(SED) "s/#.*//" | ./bin/myspellfixprefix.pl | $(SORT) -u > $$@
+ | grep -v "\/.*d" | grep -v "##" | $(SED) "s/#.*//" | ./bin/myspellfixprefix.pl | $(SORT) > $$@
all.words.munch.$(1).tmp: all.words.$(1).tmp ispell/$(1).aff
./bin/test-working-grep.sh
@@ -162,7 +163,8 @@ ispell/$(1)_null.hash: ispell/$(1)_null.
$(BUILDHASH) all.words.placebo.tmp ispell/$(1)_null.aff $$@
isowordlist-$(1): $(AFFIX_EXPAND_PREREQ) all.words.$(MUNCH_PFX)$(1).tmp
- $(AFFIX_EXPAND_COMMAND) < all.words.$(MUNCH_PFX)$(1).tmp |tr ' ' '\n' |$(SED) -f ./bin/dic2iso | $(SORT) -u > $$@
+ LC_CTYPE=de_DE.ISO-8859-1 ; export LC_CTYPE ; \
+ $(AFFIX_EXPAND_COMMAND) < all.words.$(MUNCH_PFX)$(1).tmp |tr ' ' '\n' |$(SED) -f ./bin/dic2iso | $(SORT) > $$@
endef
$(foreach langcode,$(LANGS),$(eval $(call LANG_ispell_dict_template,$(langcode))))
@@ -401,23 +403,25 @@ ispell/liglist_null.hash: ispell/liglist
$(BUILDHASH) all.words.placebo.tmp ispell/$(1)_null.aff $$@
all.words.liglist.tmp: $(foreach langcode,$(LANGS2),$(WORDS_$(langcode)))
+ LC_CTYPE=de_DE.ISO-8859-1 ; export LC_CTYPE ; \
$(SED) "s/\.//" $(foreach langcode,$(LANGS2),$(WORDS_$(langcode))) | \
grep -v "\/.*d" | grep -v "##" | $(SED) "s/#.*//" | \
- $(SORT) -u > $$@
+ $(SORT) > $$@
liglist.tmp: $(AFFIX_EXPAND_PREREQ) all.words.liglist.tmp
+ LC_CTYPE=de_DE.ISO-8859-1 ; export LC_CTYPE ; \
cat ligature/oldspell.liglist all.words.liglist.tmp \
| $(AFFIX_EXPAND_COMMAND) \
| tr \ '\n' \
| grep qq \
- | $(SORT) -u \
+ | $(SORT) \
| $(SED) 's/fqqf/f\|f/g;s/fqql/f\|l/g;s/fqqi/f\|i/g' \
| grep \| \
| $(SED) s/qq//g \
| $(SED) -f ./bin/dic2iso \
| tr A-Z a-z \
- | $(SORT) -u \
+ | $(SORT) \
> $$@
ligature/rmligs: liglist.tmp ligature/rmligs.skel
@@ -449,7 +453,7 @@ sort:
@if grep [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] dicts/*.txt ;then echo "!!! illegal ISO-8859-1 characters in dictionary files !!!";exit 1;fi
@if LC_ALL=de_DE.UTF-8 grep [`echo -n "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"|iconv -f iso8859-1 -t utf-8`] dicts/*.txt ;then echo "!!! illegal UTF-8 characters in dictionary files !!!";exit 1;fi
@if grep -q -v "/.*d" dicts/blacklist* ; then echo "missing d in blacklist?" ; exit 1 ; fi
- $(FIND) ./dicts/ -name "*.txt" -print -o -name "blacklist*" -print | while read i; do $(SORT) -u -o "$$i" "$$i"; done
+ $(FIND) ./dicts/ -name "*.txt" -print -o -name "blacklist*" -print | while read i; do $(SORT) -o "$$i" "$$i"; done
pack: sort
exit 1