From f0d59f8c32eb8428f4328806c48f4c3919d5454d Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 9 Dec 2003 06:08:12 +0000 Subject: [PATCH] first checked in --- dawg/Swedish/Makefile | 40 ++++++++++++++++++++++++ dawg/Swedish/info.txt | 72 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 dawg/Swedish/Makefile create mode 100644 dawg/Swedish/info.txt diff --git a/dawg/Swedish/Makefile b/dawg/Swedish/Makefile new file mode 100644 index 000000000..48177bfc3 --- /dev/null +++ b/dawg/Swedish/Makefile @@ -0,0 +1,40 @@ +# -*-mode: Makefile -*- +# Copyright 2002 by Eric House (fixin@peak.org). All rights reserved. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +LANG=Swedish +LANGCODE=sv_SE + +TARGET_TYPE ?= FRANK + +include ../Makefile.2to8 + +include ../Makefile.langcommon + +# 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 + zcat $< | tr [a-zäåö] [A-ZÄÅÖ] | \ + grep '^[A-ZÄÅÖ]\{2,15\}$$' | \ + gzip -c > $@ + +# Everything but creating of the Main.dict file is inherited from the +# "parent" Makefile.langcommon in the parent directory. + +clean: clean_common + rm -f $(LANG)Main.dict.gz *.bin $(LANG)*.pdb $(LANG)*.seb + diff --git a/dawg/Swedish/info.txt b/dawg/Swedish/info.txt new file mode 100644 index 000000000..6d7149501 --- /dev/null +++ b/dawg/Swedish/info.txt @@ -0,0 +1,72 @@ +# Copyright 2002 by Eric House (fixin@peak.org). All rights reserved. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +LANGCODE:sv_SE + + +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 Ö.

+ +# High bit means "official". Next 7 bits are an enum where +# Swedish==7. Low byte is padding +XLOC_HEADER:0x8700 + + + + +2 0 {"_"} +8 1 'A' +# A with circle +2 4 'Å' +# A with two dots +2 3 'Ä' +2 4 'B' +1 8 'C' +5 1 'D' +7 1 'E' +2 3 'F' +3 2 'G' +2 2 'H' +5 1 'I' +1 7 'J' +3 2 'K' +5 1 'L' +3 2 'M' +6 1 'N' +5 2 'O' +# O with two dots +2 4 'Ö' +2 4 'P' +# Q tile only available for blanks +0 1 'Q' +8 1 'R' +8 1 'S' +8 1 'T' +3 4 'U' +2 3 'V' +# W tile only available for blanks +0 1 'W' +1 8 'X' +1 7 'Y' +1 10 'Z' + +