Cleanup prior to adding Swedish to BYOD.

This commit is contained in:
ehouse 2006-07-22 16:05:45 +00:00
parent 5f8ba8a570
commit 44a4dab13a
2 changed files with 7 additions and 5 deletions

View file

@ -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 > $@

View file

@ -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: <p>From and English-spaker's perspective, Swedish drops Q
LANGINFO: and W, and adds Ä, Å, and Ö.</p>
LANGINFO: <p>From an English-speaker's perspective, Swedish drops Q
LANGINFO: and W, and adds Ä, Å, Æ, Ö and Ü.</p>
# High bit means "official". Next 7 bits are an enum where
# Swedish==7. Low byte is padding