add support for non-empty Turkish wordlist

This commit is contained in:
Eric House 2022-10-07 08:12:56 -07:00
parent 2312290987
commit 828f8b3af3

View file

@ -20,18 +20,21 @@ XWLANG=Turkish
LANGCODE=tr_TR
ENC = UTF-8
DICT2DAWGARGS = -r -nosort
# DICT2DAWGARGS = -r -nosort
TARGET_TYPE ?= WINCE
include ../Makefile.langcommon
# Empty dict
$(XWLANG)Main.dict:
> $@
$(XWLANG)Main.dict.gz: $(XWLANG)Main.dict
gzip $<
$(XWLANG)Main.dict.gz: $(XWDICTPATH)/Turkish/wordlist-tr.txt
cat $< \
| tr -d '\r' \
| sed 's/ //g' \
| sed 's/./\u&/g' \
| sed 'y/ÂÎÛ/AIU/' \
| grep '^[ABCÇDEFGĞHIİJKLMNOÖPRSŞTUÜVYZ]\{2,15\}$$' \
| gzip >$@
# Everything but creating of the Main.dict file is inherited from the
# "parent" Makefile.langcommon in the parent directory.