From b150ef471b639701e3ee7ece6500115ab5b8030c Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 15 Mar 2022 05:08:38 +0100 Subject: [PATCH] use contributed Finnish wordlist --- xwords4/dawg/Finnish/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xwords4/dawg/Finnish/Makefile b/xwords4/dawg/Finnish/Makefile index b451f9f95..a707e9876 100644 --- a/xwords4/dawg/Finnish/Makefile +++ b/xwords4/dawg/Finnish/Makefile @@ -24,8 +24,11 @@ DICTNOTE = "Built from https://kaino.kotus.fi/sanat/nykysuomi" include ../Makefile.langcommon -$(XWLANG)Main.dict.gz: $(SOURCEDICT) $(MAKEFILE) - (cd $(XWDICTPATH)/Finnish && xmlstarlet sel -t -m "//s" -v . -n kotus-sanalista_v1.xml) \ +SOURCEDICT ?= $(XWDICTPATH)/Finnish/Kotus_2007_0to15.txt + +$(XWLANG)Main.dict.gz: $(SOURCEDICT) + cat $< \ + | tr -d '\r' \ | sed 's/[[:lower:]]*/\U&/' \ | grep '^[AÄBCDEFGHIJKLMNOÖPRSTUVWY]*$$' \ | sort -u \