diff --git a/xwords4/dawg/Dazaga/.gitignore b/xwords4/dawg/Dazaga/.gitignore new file mode 100644 index 000000000..3b9a3cef8 --- /dev/null +++ b/xwords4/dawg/Dazaga/.gitignore @@ -0,0 +1 @@ +*.xwd diff --git a/xwords4/dawg/Dazaga/Makefile b/xwords4/dawg/Dazaga/Makefile new file mode 100644 index 000000000..e355b4440 --- /dev/null +++ b/xwords4/dawg/Dazaga/Makefile @@ -0,0 +1,36 @@ +# -*-mode: Makefile -*- +# Copyright 2002 - 2022 by Eric House (xwords@eehouse.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. + +XWLANG=Dazaga +LANGCODE=dzg + +TARGET_TYPE ?= WINCE + +include ../Makefile.langcommon + +# Sed works to upper-case ŋ where tr doesn't. Sigh. tr doesn't handle +# the vowel transformations correctly either +$(XWLANG)Main.dict.gz: $(XWDICTPATH)/Dazaga/Dazaga.txt + cat $< | \ + sed 's/[[:lower:]]*/\U&/' | \ + sed 'y/ÃÊẼĨÎÑÔŠŨÛ/AEEIINOSUU/' | \ + grep '^[ABCDEFGHIJKLMNŊOPRSTUWYZ]*$$' | \ + gzip > $@ + +clean: clean_common + rm -f $(XWLANG)Main.dict.gz *.bin $(XWLANG)*.pdb $(XWLANG)*.seb diff --git a/xwords4/dawg/Dazaga/info.txt b/xwords4/dawg/Dazaga/info.txt new file mode 100644 index 000000000..f7724d614 --- /dev/null +++ b/xwords4/dawg/Dazaga/info.txt @@ -0,0 +1,66 @@ +# -*- mode: conf; -*- +# Copyright 2002 by Eric House (xwords@eehouse.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:dzg +LANGNAME:Dazaga + +# deal with DOS files +# LANGFILTER: tr -d '\r' +# LANGFILTER: | tr [a-z] [A-Z] +# LANGFILTER: | grep '^[A-Z]*$' +# LANGFILTER: | sort -u + +# We can trust sort (above) to do the right thing since there's no +# high ascii. dict2dawg.pl is much faster if I can trust that its +# input is in sorted order. +# D2DARGS: -nosort -term 10 + +LANGINFO: something here + +# High bit means "official". Next 7 bits are an enum where +# Tudaga==0x17. Low byte is padding +XLOC_HEADER:0x9700 + + +{"_"} 0 2 +'A|a' 2 9 +'B|b' 5 2 +'C|c' 4 3 +'D|d' 3 4 +'E|e' 2 5 +'F|f' 5 2 +'G|g' 4 3 +'H|h' 10 1 +'I|i' 1 15 +'J|j' 10 1 +'K|k' 2 5 +'L|l' 3 4 +'M|m' 2 5 +'N|n' 2 7 +'Ŋ|ŋ' 5 2 +'O|o' 2 5 +'P|p' 10 1 +'R|r' 2 8 +'S|s' 3 4 +'T|t' 2 6 +'U|u' 1 13 +'W|w' 5 2 +'Y|y' 5 2 +'Z|z' 5 2 + + +# should ignore all after the above