mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch
This commit is contained in:
commit
9140c8b39a
8 changed files with 100 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
# -*- mode: makefile; compile-command: "make -f Makefile.COSD"; -*-
|
||||
# -*- mode: makefile; compile-command: "make -f Makefile.CSW"; -*-
|
||||
# Copyright 2002 by Eric House (xwords@eehouse.org). All rights reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
|
@ -15,7 +15,7 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
XWLANG=CO
|
||||
XWLANG=CSW
|
||||
LANGCODE=en_US
|
||||
TARGET_TYPE=WINCE
|
||||
|
||||
|
@ -23,7 +23,7 @@ include ../Makefile.2to8
|
|||
|
||||
include ../Makefile.langcommon
|
||||
|
||||
SOURCEDICT ?= $(XWDICTPATH)/English/COSD.dict.gz
|
||||
SOURCEDICT ?= $(XWDICTPATH)/English/CSW.dict.gz
|
||||
|
||||
$(XWLANG)Main.dict.gz: $(SOURCEDICT) Makefile
|
||||
zcat $< | tr -d '\r' | tr [a-z] [A-Z] | grep -e "^[A-Z]\{2,15\}$$" | \
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
XWLANG=OWL2
|
||||
LANGCODE=en_US
|
||||
TARGET_TYPE?=PALM
|
||||
XWLANG = OWL2
|
||||
LANGCODE = en_US
|
||||
TARGET_TYPE ?= WINCE
|
||||
|
||||
include ../Makefile.2to8
|
||||
|
||||
|
|
|
@ -15,9 +15,9 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
XWLANG=SOWPODS
|
||||
LANGCODE=en_US
|
||||
TARGET_TYPE=FRANK
|
||||
XWLANG = SOWPODS
|
||||
LANGCODE = en_US
|
||||
TARGET_TYPE = WINCE
|
||||
|
||||
include ../Makefile.2to8
|
||||
|
||||
|
|
34
xwords4/dawg/French/Makefile.ODS5
Normal file
34
xwords4/dawg/French/Makefile.ODS5
Normal file
|
@ -0,0 +1,34 @@
|
|||
# -*-mode: Makefile -*-
|
||||
# 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.
|
||||
|
||||
XWLANG=ODS5
|
||||
LANGCODE=fr_FR
|
||||
|
||||
TARGET_TYPE ?= WINCE
|
||||
|
||||
include ../Makefile.2to8
|
||||
|
||||
include ../Makefile.langcommon
|
||||
|
||||
$(XWLANG)Main.dict.gz: $(XWDICTPATH)/French/ODS5.txt.gz
|
||||
zcat $< | tr a-z A-Z | tr -d '\r' | gzip >$@
|
||||
|
||||
# Everything but creating of the Main.dict file is inherited from the
|
||||
# "parent" Makefile.langcommon in the parent directory.
|
||||
|
||||
clean: clean_common
|
||||
rm -f $(XWLANG)Main.dict.gz *.bin $(XWLANG)*.pdb $(XWLANG)*.seb
|
|
@ -18,7 +18,7 @@
|
|||
XWLANG=Italian
|
||||
LANGCODE=it_IT
|
||||
|
||||
TARGET_TYPE ?= PALM
|
||||
TARGET_TYPE ?= WINCE
|
||||
|
||||
include ../Makefile.2to8
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ include ../Makefile.2to8
|
|||
|
||||
include ../Makefile.langcommon
|
||||
|
||||
SOURCEDICT ?= $(XWDICTPATH)/Polish/slowa.txt.gz
|
||||
SOURCEDICT ?= $(XWDICTPATH)/Polish/slowa-utf8.txt.gz
|
||||
|
||||
$(XWLANG)Main.dict.gz: $(SOURCEDICT)
|
||||
zcat $< | tr -d '\r' \
|
||||
|
|
|
@ -25,7 +25,7 @@ include ../Makefile.2to8
|
|||
|
||||
include ../Makefile.langcommon
|
||||
|
||||
SOURCEDICT ?= $(XWDICTPATH)/Slovak/slovnik_scrabble.dict.gz
|
||||
SOURCEDICT ?= $(XWDICTPATH)/Slovak/slovak.dict.gz
|
||||
|
||||
$(XWLANG)Main.dict.gz: $(SOURCEDICT) Makefile
|
||||
zcat $< | tr -d '\r' | \
|
||||
|
|
54
xwords4/dawg/mkindex.sh
Executable file
54
xwords4/dawg/mkindex.sh
Executable file
|
@ -0,0 +1,54 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -u -e
|
||||
|
||||
usage() {
|
||||
echo "usage: $0 /path/to/dicts"
|
||||
echo " write to stdout an html file that serves up all .xwd files inside /path/to/dicts"
|
||||
exit 1
|
||||
}
|
||||
|
||||
do_lang() {
|
||||
LANG=$1
|
||||
echo "<tr><td>$LANG</td></tr>"
|
||||
|
||||
cd $LANG
|
||||
for DICT in $(ls *.xwd); do
|
||||
echo "<tr>"
|
||||
echo "<td><a href=\"./$LANG/$DICT\">${DICT#.xwd}</a></td>"
|
||||
SIZE=$(ls -l $DICT | awk '{print $5}')
|
||||
echo "<td>${SIZE}</td>"
|
||||
HEXCOUNT=$(hd $DICT | head -n 1 | awk '{print $6 $7 $8 $9}' | tr [a-f] [A-F])
|
||||
DECCOUNT=$(echo "ibase=16;$HEXCOUNT" | bc)
|
||||
echo "<td>${DECCOUNT}</td>"
|
||||
echo "</tr>"
|
||||
done
|
||||
|
||||
cd ..
|
||||
}
|
||||
|
||||
[ $# -eq 1 ] || usage
|
||||
|
||||
WD=$(pwd)
|
||||
cd $1
|
||||
|
||||
DIRS=""
|
||||
for DIR in $(ls); do
|
||||
if [ -d $DIR ] && ls $DIR/*.xwd >/dev/null 2>&1; then
|
||||
DIRS="$DIRS $DIR"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
echo "<html><body>"
|
||||
echo "<table>"
|
||||
echo "<tr><th>File</th><th>Size</th><th>Wordcount</th></tr>"
|
||||
for DIR in $DIRS; do
|
||||
do_lang $DIR
|
||||
done
|
||||
echo "</table>"
|
||||
echo "</body></html>"
|
||||
|
||||
|
||||
cd $WD
|
||||
|
Loading…
Reference in a new issue