From 645b5eeb3b1efad789eec17f29c67e1dff37660c Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 26 Nov 2024 10:07:57 -0800 Subject: [PATCH] add Basque wordlist Currently trying to display it among downloads crashes the Android app. Seems to work in Linux though the display of two-letter tiles is horked. --- xwords4/dawg/Basque/Makefile | 56 +++++++++++++++++++++++++++++ xwords4/dawg/Basque/info.txt | 69 ++++++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 xwords4/dawg/Basque/Makefile create mode 100644 xwords4/dawg/Basque/info.txt diff --git a/xwords4/dawg/Basque/Makefile b/xwords4/dawg/Basque/Makefile new file mode 100644 index 000000000..3f4fbc72c --- /dev/null +++ b/xwords4/dawg/Basque/Makefile @@ -0,0 +1,56 @@ +# -*-mode: Makefile; compile-command: "make TARGET_TYPE=WINCE"; -*- +# Copyright 2002-2024 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=Basque +LANGCODE=eu +TARGET_TYPE ?= WINCE +ENC = UTF-8 + +DICTNOTE = "List provided by Tonino Licciardello (Spain)" + +# not used yet +# DICTREV = 8dea44bb695f8e18dd64a24d96281e1dd2bb56ba + +# Needs only to be defined +ALLOWS_DUPLICATES = TRUE + +LANG_SPECIAL_INFO = \ + "RR Rr rr rR" /dev/null /dev/null \ + "TS Ts ts tS" /dev/null /dev/null \ + "TX Tx tx tX" /dev/null /dev/null \ + "TZ Tz tz tZ" /dev/null /dev/null \ + +include ../Makefile.langcommon + +# This list is private: not to be released +SOURCEDICT ?= $(XWDICTPATH)/Basque/palabrascon_pc_euskera.txt + +$(XWLANG)Main.dict.gz: $(SOURCEDICT) $(MAKEFILE) + cat $< \ + | grep '^[abdefghijklmnñoprstuxz]*$$' \ + | tr 'ñ' 'n' \ + | sed -e 's/[[:lower:]]*/\U&/' \ + | sed 's/RR/1/g' \ + | sed 's/TS/2/g' \ + | sed 's/TX/3/g' \ + | sed 's/TZ/4/g' \ + | tr '1234' '\001\002\003\004' \ + | gzip - > $@ + +clean: clean_common + rm -rf *.saved diff --git a/xwords4/dawg/Basque/info.txt b/xwords4/dawg/Basque/info.txt new file mode 100644 index 000000000..35186ec81 --- /dev/null +++ b/xwords4/dawg/Basque/info.txt @@ -0,0 +1,69 @@ +# -*- mode: conf; -*- + +# Copyright 2002-2024 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:eu_EU +LANGNAME:Basque +CHARSET: utf-8 + +NEEDSSORT:true +BUILD_FLAGS:ALLOWS_DUPLICATES + +LANGINFO:

Basque has 100 tiles

+ +LANGINFO:

The file you upload should be encoded in UTF-8.

+ +# MSDos LF chars go bye-bye +LANGFILTER: tr -d '\r' + +# LANGFILTER: Not done yet!!!! + +D2DARGS: -r -term 0 -enc UTF-8 + +# High bit means "official". Next 7 bits are an enum where +# Basque==0x1A. Low byte is padding +XLOC_HEADER:0x9A00 + + +{"_"} 0 2 +'A|a' 1 14 +'B|b' 4 3 +'D|d' 3 4 +'E|e' 1 12 +'F|f' 10 1 +'G|g' 5 2 +'H|h' 5 2 +'I|i' 1 9 +'J|j' 8 1 +'K|k' 2 5 +'L|l' 5 2 +'M|m' 8 1 +'N|n' 1 8 +'O|o' 1 6 +'P|p' 8 1 +'R|r' 2 5 +{"RR|Rr|rr|rR"} 8 1 +'S|s' 5 2 +'T|t' 1 6 +{"TS|Ts|ts|tS"} 8 1 +{"TX|Tx|tx|tX"} 8 1 +{"TZ|Tz|tz|tZ"} 8 1 +'U|u' 1 6 +'X|x' 10 1 +'Z|z' 4 3 +