Remove windows LF chars just in case; take SOURCEDICT via cmdline; add emacs modeline.

This commit is contained in:
ehouse 2008-03-15 15:00:46 +00:00
parent 15a2154720
commit 835a0ae45e
2 changed files with 7 additions and 3 deletions

View file

@ -43,11 +43,14 @@ include ../Makefile.langcommon
#$(LANG)Main.dict.gz: SpanishMain.dict.gz
# ln -s $< $@
$(XWLANG)Main.dict.gz: $(XWDICTPATH)/$(XWLANG)/XavSpanish.dict.gz Makefile
SOURCEDICT ?= $(XWDICTPATH)/$(XWLANG)/XavSpanish.dict.gz
$(XWLANG)Main.dict.gz: $(SOURCEDICT) Makefile
zcat $< \
| tr -d '\r' \
| tr '\207\216\222\227\234\237\226' 'aeiouu\321' \
| tr [a-zñ] [A-ZÑ] \
| grep '^[[A-JL-VX-ZÑ]*$$' \
| tr [a-zñ] [A-ZÑ] \
| grep '^[[A-JL-VX-ZÑ]*$$' \
| sed 's/CH/1/g' \
| sed 's/LL/2/g' \
| sed 's/RR/3/g' \

View file

@ -1,3 +1,4 @@
# -*- mode: conf; -*-
# Copyright 2002-2006 by Eric House (xwords@eehouse.org). All rights
# reserved.
#