mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
fix Slovak makefile for new wordlist
This commit is contained in:
parent
0960ed4963
commit
2a54c9ed20
3 changed files with 7 additions and 6 deletions
|
@ -1262,7 +1262,6 @@ board_setBlankValue( BoardCtxt* board, XP_U16 player, XP_U16 col, XP_U16 row,
|
||||||
return draw;
|
return draw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef XWFEATURE_MINIWIN
|
#ifdef XWFEATURE_MINIWIN
|
||||||
/* Find a rectangle either centered on the board or pinned to the point at
|
/* Find a rectangle either centered on the board or pinned to the point at
|
||||||
* which the mouse went down.
|
* which the mouse went down.
|
||||||
|
|
|
@ -1362,7 +1362,7 @@ model_packTilesUtil( ModelCtxt* model, PoolContext* pool,
|
||||||
/* setup async query for blank value, but while at it return a reasonable
|
/* setup async query for blank value, but while at it return a reasonable
|
||||||
default. */
|
default. */
|
||||||
Tile
|
Tile
|
||||||
model_askBlankTile( ModelCtxt* model, XP_U16 turn, XP_U16 col, XP_U16 row)
|
model_askBlankTile( ModelCtxt* model, XP_U16 turn, XP_U16 col, XP_U16 row )
|
||||||
{
|
{
|
||||||
XP_U16 nUsed = MAX_UNIQUE_TILES;
|
XP_U16 nUsed = MAX_UNIQUE_TILES;
|
||||||
const XP_UCHAR* tfaces[MAX_UNIQUE_TILES];
|
const XP_UCHAR* tfaces[MAX_UNIQUE_TILES];
|
||||||
|
@ -1390,7 +1390,8 @@ model_moveTrayToBoard( ModelCtxt* model, XP_S16 turn, XP_U16 col, XP_U16 row,
|
||||||
tile = blankFace;
|
tile = blankFace;
|
||||||
} else {
|
} else {
|
||||||
XP_ASSERT( turn >= 0 );
|
XP_ASSERT( turn >= 0 );
|
||||||
tile = TILE_BLANK_BIT | model_askBlankTile( model, (XP_U16)turn, col, row );
|
tile = TILE_BLANK_BIT
|
||||||
|
| model_askBlankTile( model, (XP_U16)turn, col, row );
|
||||||
}
|
}
|
||||||
tile |= TILE_BLANK_BIT;
|
tile |= TILE_BLANK_BIT;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,16 +18,17 @@
|
||||||
XWLANG = Slovak
|
XWLANG = Slovak
|
||||||
LANGCODE = sk_SK
|
LANGCODE = sk_SK
|
||||||
ENC = UTF-8
|
ENC = UTF-8
|
||||||
DICTNOTE = "from http://scrabble.hrejsi.cz/pravidla/blex.htm"
|
DICTNOTE = "compiled by a user from Slovak Scrabble Association dictionaries (Slovenský Spolok Scrabble) at www.hramescrabble.sk"
|
||||||
|
|
||||||
TARGET_TYPE ?= WINCE
|
TARGET_TYPE ?= WINCE
|
||||||
|
|
||||||
include ../Makefile.langcommon
|
include ../Makefile.langcommon
|
||||||
|
|
||||||
SOURCEDICT ?= $(XWDICTPATH)/Slovak/slovnik_scrabble.dict.gz
|
SOURCEDICT ?= $(XWDICTPATH)/Slovak/Scrabble_SK.dict
|
||||||
|
|
||||||
$(XWLANG)Main.dict.gz: $(SOURCEDICT) Makefile
|
$(XWLANG)Main.dict.gz: $(SOURCEDICT) Makefile
|
||||||
zcat $< | tr -d '\r' | \
|
cat $< | tr -d '\r' | \
|
||||||
|
tr [aáäbcčdďeéfghiíjklĺľmnňoôóprŕsštťuúvxyýzž] [AÁÄBCČDĎEÉFGHIÍJKLĹĽMNŇOÔÓPRŔSŠTŤUÚVXYÝZŽ] | \
|
||||||
sed 's,.,\U\0,g' | \
|
sed 's,.,\U\0,g' | \
|
||||||
grep '^[AÁÄBCČDĎEÉFGHIÍJKLĹĽMNŇOÔÓPRŔSŠTŤUÚVXYÝZŽ]*$$' | \
|
grep '^[AÁÄBCČDĎEÉFGHIÍJKLĹĽMNŇOÔÓPRŔSŠTŤUÚVXYÝZŽ]*$$' | \
|
||||||
gzip -c > $@
|
gzip -c > $@
|
||||||
|
|
Loading…
Reference in a new issue