From 44a4dab13ada9b2dfe51cf730cf1d0dd1f68bd66 Mon Sep 17 00:00:00 2001 From: ehouse Date: Sat, 22 Jul 2006 16:05:45 +0000 Subject: [PATCH] Cleanup prior to adding Swedish to BYOD. --- xwords4/dawg/Swedish/Makefile | 4 +++- xwords4/dawg/Swedish/info.txt | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/xwords4/dawg/Swedish/Makefile b/xwords4/dawg/Swedish/Makefile index 97d79d652..2b08254ea 100644 --- a/xwords4/dawg/Swedish/Makefile +++ b/xwords4/dawg/Swedish/Makefile @@ -27,10 +27,12 @@ include ../Makefile.2to8 include ../Makefile.langcommon +SOURCEDICT ?= $(XWDICTPATH)/$(LANG)/swedish15.dict.gz + # Q and W are not available as tiles, but I'm told there's a custom in # Swedish play of allowing blanks to stand for those letters as well. # So we don't exclude words with those letters from the dictionary. -$(LANG)Main.dict.gz: swedish15.dict.gz +$(LANG)Main.dict.gz: $(SOURCEDICT) Makefile zcat $< | tr [a-zäåæöü] [A-ZÄÅÆÖÜ] | \ grep '^[A-ZÄÅÆÖÜ]\{2,15\}$$' | \ gzip -c > $@ diff --git a/xwords4/dawg/Swedish/info.txt b/xwords4/dawg/Swedish/info.txt index 4c95d1156..ccd188410 100644 --- a/xwords4/dawg/Swedish/info.txt +++ b/xwords4/dawg/Swedish/info.txt @@ -17,14 +17,14 @@ LANGCODE:sv_SE -LANGFILTER_POSTCLIP: | tr [a-zäåö] [A-ZÄÅÖ] -LANGFILTER_POSTCLIP: | grep '^[A-ZÄÅÖ]*$' +LANGFILTER_POSTCLIP: | tr [a-zäåæöü] [A-ZÄÅÆÖÜ] +LANGFILTER_POSTCLIP: | grep '^[A-ZÄÅÆÖÜ]*$' LANGFILTER_POSTCLIP: | tr '\n' '\000' NEEDSSORT:true -LANGINFO:

From and English-spaker's perspective, Swedish drops Q -LANGINFO: and W, and adds Ä, Å, and Ö.

+LANGINFO:

From an English-speaker's perspective, Swedish drops Q +LANGINFO: and W, and adds Ä, Å, Æ, Ö and Ü.

# High bit means "official". Next 7 bits are an enum where # Swedish==7. Low byte is padding