mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
first checked in
This commit is contained in:
parent
9f3e5e07be
commit
f0d59f8c32
2 changed files with 112 additions and 0 deletions
40
dawg/Swedish/Makefile
Normal file
40
dawg/Swedish/Makefile
Normal file
|
@ -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
|
||||
|
72
dawg/Swedish/info.txt
Normal file
72
dawg/Swedish/info.txt
Normal file
|
@ -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: <p>From and English-spaker'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
|
||||
XLOC_HEADER:0x8700
|
||||
|
||||
|
||||
|
||||
<BEGIN_TILES>
|
||||
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'
|
||||
|
||||
<END_TILES>
|
Loading…
Reference in a new issue