mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
take words up to 15 letters long. This makes no difference with any
dict I've tried as there just aren't any words over 7 letters long made up of only a-f.
This commit is contained in:
parent
e8e0b25fad
commit
894afdc0cb
1 changed files with 7 additions and 3 deletions
|
@ -27,12 +27,16 @@ include ../Makefile.2to8
|
||||||
include ../Makefile.langcommon
|
include ../Makefile.langcommon
|
||||||
|
|
||||||
# Pass in your own dict here by setting DICT
|
# Pass in your own dict here by setting DICT
|
||||||
DICT ?= $(XWDICTPATH)/English/CSW.dict.gz
|
# DICT ?= $(XWDICTPATH)/English/CSW.dict.gz
|
||||||
|
DICT ?= $(XWDICTPATH)/English/COSD.dict.gz
|
||||||
|
|
||||||
# tr 'AE' 'ÄË' doesn't work, so use sed.
|
# tr 'AE' 'ÄË' doesn't work, so use sed. Note that although we're
|
||||||
|
# pulling words up to 15 letters in length there are none longer than
|
||||||
|
# seven in this dict. So all three dicts will be the same length and
|
||||||
|
# only one is worth publishing.
|
||||||
$(XWLANG)Main.dict.gz: $(DICT)
|
$(XWLANG)Main.dict.gz: $(DICT)
|
||||||
@echo "building $@ from $<"
|
@echo "building $@ from $<"
|
||||||
zcat $< | tr [a-f] [A-F] | grep -e '^[A-F]\{2,8\}$$' | \
|
zcat $< | tr [a-f] [A-F] | grep -e '^[A-F]\{2,15\}$$' | \
|
||||||
echo CAFEBABE DEADBEEF $$(cat -) | \
|
echo CAFEBABE DEADBEEF $$(cat -) | \
|
||||||
sed 's/A/Ä/g' | \
|
sed 's/A/Ä/g' | \
|
||||||
sed 's/E/Ë/g' | \
|
sed 's/E/Ë/g' | \
|
||||||
|
|
Loading…
Reference in a new issue