mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-17 18:12:01 +01:00
first checked in. Seems to work.
This commit is contained in:
parent
e2cbee1210
commit
5e02ca1c86
3 changed files with 120 additions and 0 deletions
3
xwords4/dawg/Dutch/.cvsignore
Normal file
3
xwords4/dawg/Dutch/.cvsignore
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.bin
|
||||
*.xwd
|
||||
*.pdb
|
41
xwords4/dawg/Dutch/Makefile
Normal file
41
xwords4/dawg/Dutch/Makefile
Normal file
|
@ -0,0 +1,41 @@
|
|||
# -*- 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=Dutch
|
||||
LANGCODE=nl_NL
|
||||
|
||||
TARGET_TYPE ?= PALM
|
||||
|
||||
include ../Makefile.2to8
|
||||
|
||||
include ../Makefile.langcommon
|
||||
|
||||
SOURCEDICT ?= $(XWDICTPATH)/$(LANG)/Dutch__unofficial_alphabetical.dict.gz
|
||||
|
||||
$(LANG)Main.dict.gz: $(SOURCEDICT) Makefile
|
||||
zcat $< | tr -d '\r' | tr [a-zäöü] [A-ZÄÖÜ] | \
|
||||
grep '[AEIOU]' | grep '^[A-Z]\+$$' | sort -u | \
|
||||
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
|
||||
|
||||
help:
|
||||
@echo 'make [SOURCEDICT=Dutch__unofficial_alphabetical.dict.gz]'
|
76
xwords4/dawg/Dutch/info.txt
Normal file
76
xwords4/dawg/Dutch/info.txt
Normal file
|
@ -0,0 +1,76 @@
|
|||
# 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:nl_NL
|
||||
|
||||
|
||||
# deal with DOS files
|
||||
LANGFILTER_PRECLIP: tr -d '\r' |
|
||||
|
||||
# uppercase all
|
||||
LANGFILTER_POSTCLIP: | tr [a-zäöü] [A-ZÄÖÜ]
|
||||
# no words not containing a vowel
|
||||
LANGFILTER_POSTCLIP: | grep '[AEIOU]'
|
||||
# none with illegal chars
|
||||
LANGFILTER_POSTCLIP: | grep '^[A-Z]\+$'
|
||||
LANGFILTER_POSTCLIP: | tr -s '\n' '\000'
|
||||
|
||||
# Until I can figure out how to force sort to use a locale's collation
|
||||
# rules we can't trust sort in the filtering rules above and so must
|
||||
# leave the sorting work to dict2dawg.pl.
|
||||
|
||||
NEEDSSORT:true
|
||||
|
||||
LANGINFO: <p>Dutch has the same 26 letters as English, though of
|
||||
LANGINFO: course the counts and values are different. Filtering rules
|
||||
LANGINFO: eliminate all words that don't contain at least one vowel
|
||||
LANGINFO: and any that contain letters not found on tiles.</p>
|
||||
|
||||
# High bit means "official". Next 7 bits are an enum where
|
||||
# Dutch==B. Low byte is padding
|
||||
XLOC_HEADER:0x8B00
|
||||
|
||||
|
||||
<BEGIN_TILES>
|
||||
2 0 {"_"}
|
||||
6 1 'A'
|
||||
2 3 'B'
|
||||
2 5 'C'
|
||||
5 2 'D'
|
||||
16 1 'E'
|
||||
2 4 'F'
|
||||
2 3 'G'
|
||||
2 4 'H'
|
||||
4 1 'I'
|
||||
2 4 'J'
|
||||
3 3 'K'
|
||||
3 3 'L'
|
||||
3 3 'M'
|
||||
8 1 'N'
|
||||
6 1 'O'
|
||||
3 3 'P'
|
||||
1 10 'Q'
|
||||
5 2 'R'
|
||||
5 2 'S'
|
||||
5 2 'T'
|
||||
4 4 'U'
|
||||
2 4 'V'
|
||||
2 5 'W'
|
||||
1 8 'X'
|
||||
2 4 'Y'
|
||||
2 4 'Z'
|
||||
<END_TILES>
|
||||
# should ignore all after the <END_TILES> above
|
Loading…
Reference in a new issue