From 4e619601c2493dedad09ad1745c264e5b5d446b4 Mon Sep 17 00:00:00 2001 From: ehouse Date: Tue, 13 Jan 2009 13:17:58 +0000 Subject: [PATCH] To support Catalan, add Makefile and bitmaps for three special tiles. The first of these, L-high-dot-L, requires Unicode to be properly drawn, but the current dict format doesn't support it so it'll be L-L for now. Bitmaps are still rough. --- xwords4/dawg/Catalan/Makefile | 59 +++++++++++++++++++ .../dawg/Catalan/bmps/franklin/large_ll.pbitm | 11 ++++ .../dawg/Catalan/bmps/franklin/large_ny.pbitm | 11 ++++ .../dawg/Catalan/bmps/franklin/large_qu.pbitm | 11 ++++ .../dawg/Catalan/bmps/franklin/small_ll.pbitm | 9 +++ .../dawg/Catalan/bmps/franklin/small_ny.pbitm | 9 +++ .../dawg/Catalan/bmps/franklin/small_qu.pbitm | 9 +++ xwords4/dawg/Catalan/bmps/palm/large_ll.pbitm | 9 +++ xwords4/dawg/Catalan/bmps/palm/large_ny.pbitm | 9 +++ xwords4/dawg/Catalan/bmps/palm/large_qu.pbitm | 9 +++ xwords4/dawg/Catalan/bmps/palm/small_ll.pbitm | 7 +++ xwords4/dawg/Catalan/bmps/palm/small_ny.pbitm | 7 +++ xwords4/dawg/Catalan/bmps/palm/small_qu.pbitm | 7 +++ xwords4/dawg/Catalan/info.txt | 2 +- 14 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 xwords4/dawg/Catalan/Makefile create mode 100644 xwords4/dawg/Catalan/bmps/franklin/large_ll.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/franklin/large_ny.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/franklin/large_qu.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/franklin/small_ll.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/franklin/small_ny.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/franklin/small_qu.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/palm/large_ll.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/palm/large_ny.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/palm/large_qu.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/palm/small_ll.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/palm/small_ny.pbitm create mode 100644 xwords4/dawg/Catalan/bmps/palm/small_qu.pbitm diff --git a/xwords4/dawg/Catalan/Makefile b/xwords4/dawg/Catalan/Makefile new file mode 100644 index 000000000..9e43dbe2c --- /dev/null +++ b/xwords4/dawg/Catalan/Makefile @@ -0,0 +1,59 @@ +# -*-mode: Makefile; compile-command: "make TARGET_TYPE=WINCE"; -*- +# Copyright 2002-2009 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=DISCbeta +LANGCODE=ca_ES +TARGET_TYPE ?= PALM + +ifeq ($(TARGET_TYPE),PALM) +PBITMS = ./bmps/palm +else +ifeq ($(TARGET_TYPE),FRANK) +PBITMS = ./bmps/franklin +else +ifeq ($(TARGET_TYPE),WINCE) +PBITMS = ./bmps/franklin +endif +endif +endif + +LANG_SPECIAL_INFO = \ + "L-L" $(PBITMS)/large_ll.pbitm $(PBITMS)/small_ll.pbitm \ + "NY" $(PBITMS)/large_ny.pbitm $(PBITMS)/small_ny.pbitm \ + "QU" $(PBITMS)/large_qu.pbitm $(PBITMS)/small_qu.pbitm \ + +include ../Makefile.2to8 + +include ../Makefile.langcommon + +SOURCEDICT ?= $(XWDICTPATH)/Catalan/DISCbeta.txt.gz + +$(XWLANG)Main.dict.gz: $(SOURCEDICT) Makefile + zcat $< \ + | tr -d '\r' \ + | tr [a-zç] [A-ZÇ] \ + | sed 's/L·L/1/g' \ + | sed 's/L.L/1/g' \ + | sed 's/L-L/1/g' \ + | sed 's/NY/2/g' \ + | sed 's/QU/3/g' \ + | grep '^[[1-3ÇA-JL-PR-VXZ]*$$' \ + | tr '123' '\001\002\003' \ + | gzip - > $@ + +clean: clean_common + rm -rf *.saved \ No newline at end of file diff --git a/xwords4/dawg/Catalan/bmps/franklin/large_ll.pbitm b/xwords4/dawg/Catalan/bmps/franklin/large_ll.pbitm new file mode 100644 index 000000000..057ee83bc --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/franklin/large_ll.pbitm @@ -0,0 +1,11 @@ +##-----##--- +##-----##--- +##-----##--- +##-----##--- +##--#--##--- +##--#--##--- +##-----##--- +##-----##--- +##-----##--- +##-----##--- +#####--##### diff --git a/xwords4/dawg/Catalan/bmps/franklin/large_ny.pbitm b/xwords4/dawg/Catalan/bmps/franklin/large_ny.pbitm new file mode 100644 index 000000000..00c906126 --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/franklin/large_ny.pbitm @@ -0,0 +1,11 @@ +#----#-#---# +##---#-#---# +##---#-#---# +#-#--#-#---# +#-#--#-#---# +#-#--#-##### +#--#-#-----# +#--#-#-----# +#--#-#-----# +#---##-----# +#---##-##### diff --git a/xwords4/dawg/Catalan/bmps/franklin/large_qu.pbitm b/xwords4/dawg/Catalan/bmps/franklin/large_qu.pbitm new file mode 100644 index 000000000..abbbb9da0 --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/franklin/large_qu.pbitm @@ -0,0 +1,11 @@ +-###--#---# +#---#-#---# +#---#-#---# +#---#-#---# +#---#-#---# +#---#-#---# +#---#-#---# +#---#-#---# +#-#-#-#---# +-###--#---# +---##--#### diff --git a/xwords4/dawg/Catalan/bmps/franklin/small_ll.pbitm b/xwords4/dawg/Catalan/bmps/franklin/small_ll.pbitm new file mode 100644 index 000000000..c27cb87b9 --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/franklin/small_ll.pbitm @@ -0,0 +1,9 @@ +#----#--- +#----#--- +#----#--- +#--#-#--- +#--#-#--- +#----#--- +#----#--- +#----#--- +####-#### diff --git a/xwords4/dawg/Catalan/bmps/franklin/small_ny.pbitm b/xwords4/dawg/Catalan/bmps/franklin/small_ny.pbitm new file mode 100644 index 000000000..ba957398c --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/franklin/small_ny.pbitm @@ -0,0 +1,9 @@ +#---#---- +##--#---- +#-#-#---- +#--##---# +#---#---# +----#---# +----##### +--------# +----##### diff --git a/xwords4/dawg/Catalan/bmps/franklin/small_qu.pbitm b/xwords4/dawg/Catalan/bmps/franklin/small_qu.pbitm new file mode 100644 index 000000000..72cde1a46 --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/franklin/small_qu.pbitm @@ -0,0 +1,9 @@ +-##--#--# +#--#-#--# +#--#-#--# +#--#-#--# +#--#-#--# +#--#-#--# +#--#-#--# +-##--#--# +--##--### diff --git a/xwords4/dawg/Catalan/bmps/palm/large_ll.pbitm b/xwords4/dawg/Catalan/bmps/palm/large_ll.pbitm new file mode 100644 index 000000000..293ec6fb6 --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/palm/large_ll.pbitm @@ -0,0 +1,9 @@ +#----#--- +#----#--- +#----#--- +#--#-#--- +#----#--- +#----#--- +#----#--- +#----#--- +####-#### diff --git a/xwords4/dawg/Catalan/bmps/palm/large_ny.pbitm b/xwords4/dawg/Catalan/bmps/palm/large_ny.pbitm new file mode 100644 index 000000000..d4349f869 --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/palm/large_ny.pbitm @@ -0,0 +1,9 @@ +#---#-#--# +##--#-#--# +##--#-#--# +#-#-#-#--# +#-#-#-#### +#-#-#----# +#--##----# +#--##--### +#---#---- diff --git a/xwords4/dawg/Catalan/bmps/palm/large_qu.pbitm b/xwords4/dawg/Catalan/bmps/palm/large_qu.pbitm new file mode 100644 index 000000000..713e55041 --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/palm/large_qu.pbitm @@ -0,0 +1,9 @@ +-##--#---# +#--#-#---# +#--#-#---# +#--#-#---# +#--#-#---# +#--#-#---# +##-#-#---# +-##--#---# +---#--#### diff --git a/xwords4/dawg/Catalan/bmps/palm/small_ll.pbitm b/xwords4/dawg/Catalan/bmps/palm/small_ll.pbitm new file mode 100644 index 000000000..9113a487a --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/palm/small_ll.pbitm @@ -0,0 +1,7 @@ +#---#-- +#---#-- +#---#-- +#-#-#-- +#---#-- +#---#-- +###-### diff --git a/xwords4/dawg/Catalan/bmps/palm/small_ny.pbitm b/xwords4/dawg/Catalan/bmps/palm/small_ny.pbitm new file mode 100644 index 000000000..29377440b --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/palm/small_ny.pbitm @@ -0,0 +1,7 @@ +##--#-- +#-#-#-- +#--##-- +--#---# +--#---# +---###- +----#-- diff --git a/xwords4/dawg/Catalan/bmps/palm/small_qu.pbitm b/xwords4/dawg/Catalan/bmps/palm/small_qu.pbitm new file mode 100644 index 000000000..e4dd4c980 --- /dev/null +++ b/xwords4/dawg/Catalan/bmps/palm/small_qu.pbitm @@ -0,0 +1,7 @@ +-#--#-# +#-#-#-# +#-#-#-# +#-#-#-# +#-#-#-# +###-#-# +-##--## diff --git a/xwords4/dawg/Catalan/info.txt b/xwords4/dawg/Catalan/info.txt index c8f679016..c12dbc5ea 100644 --- a/xwords4/dawg/Catalan/info.txt +++ b/xwords4/dawg/Catalan/info.txt @@ -68,7 +68,7 @@ XLOC_HEADER:0x8C00 8 1 'I' 1 8 'J' 4 1 'L' -1 10 {"L.L"} +1 10 {"L-L"} 3 2 'M' 6 1 'N' 1 10 {"NY"}