Skip to content

Commit a7f3741

Browse files
committed
Cardsets package version 3.
1 parent aa48e35 commit a7f3741

File tree

10 files changed

+38
-21
lines changed

10 files changed

+38
-21
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ test_script:
3636
- gmake mo
3737
- pyinstaller pysol.py --windowed --icon=data\pysol.ico
3838
- python3 setup.py install_data -d dist\pysol
39-
- appveyor DownloadFile https://sourceforge.net/projects/pysolfc/files/PySolFC-Cardsets/minimal/PySolFC-Cardsets--Minimal-2.2.0.tar.xz/download -FileName cardsets.tar.xz
39+
- appveyor DownloadFile https://sourceforge.net/projects/pysolfc/files/PySolFC-Cardsets/minimal/PySolFC-Cardsets--Minimal-3.0.0.tar.xz/download -FileName cardsets.tar.xz
4040
- 7z x cardsets.tar.xz -so | 7z x -si -ttar
41-
- mv PySolFC-Cardsets--Minimal-2.2.0/cardset-* dist/pysol/data
41+
- mv PySolFC-Cardsets--Minimal-3.0.0/cardset-* dist/pysol/data
4242
- appveyor DownloadFile https://sourceforge.net/projects/pysolfc/files/PySol-Music/PySol-Music-4.50/pysol-music-4.50.tar.xz/download -FileName music.tar.xz
4343
- 7z x music.tar.xz -so | 7z x -si -ttar
4444
- move pysol-music-4.50\data\music dist\pysol\data\music

.github/workflows/macos-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
brew install create-dmg
2929
- name: Get cardsets
3030
run: |
31-
wget -O cardsets-pack.tar.xz "https://sourceforge.net/projects/pysolfc/files/PySolFC-Cardsets/minimal/PySolFC-Cardsets--Minimal-2.2.0.tar.xz/download"
31+
wget -O cardsets-pack.tar.xz "https://sourceforge.net/projects/pysolfc/files/PySolFC-Cardsets/minimal/PySolFC-Cardsets--Minimal-3.0.0.tar.xz/download"
3232
tar -xJf cardsets-pack.tar.xz
33-
mv PySolFC-Cardsets--Minimal-2.2.0/cardset-* data
33+
mv PySolFC-Cardsets--Minimal-3.0.0/cardset-* data
3434
- name: Prepare game rules (process the HTML) and translations
3535
run: |
3636
make rules mo

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ PySolFC-Cardsets--Minimal-2.0.*
2323
PySolFC-Cardsets--Minimal-2.0/
2424
PySolFC-Cardsets-2.0.*
2525
PySolFC-Cardsets-2.0/
26+
PySolFC-Cardsets--Minimal-3.0.*
27+
PySolFC-Cardsets--Minimal-3.0/
28+
PySolFC-Cardsets-3.0.*
29+
PySolFC-Cardsets-3.0/
2630
android/*.apk
2731
android/*.zip
2832
android/bin/keystore

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ deploy:
3030
before_install:
3131
- if test "$TRAVIS_OS_NAME" = "osx" ; then
3232
wget --content-disposition https://sourceforge.net/projects/pysolfc/files/PySolFC-Cardsets/minimal/PySolFC-Cardsets--Minimal-2.2.0.tar.xz/download &&
33-
tar xJf PySolFC-Cardsets--Minimal-2.2.0.tar.xz &&
34-
mv PySolFC-Cardsets--Minimal-2.2.0/cardset-* data ;
33+
tar xJf PySolFC-Cardsets--Minimal-3.0.0.tar.xz &&
34+
mv PySolFC-Cardsets--Minimal-3.0.0/cardset-* data ;
3535
fi
3636
- if test "$TRAVIS_OS_NAME" = "osx" ; then
3737
PYVER=3.9.1 &&

contrib/customize_cardset.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ Line 2
132132

133133
( *TIP:* You could add a number prefix (e.g. 123-cardset-name) )
134134

135-
`<cardset_name>`: Your cardset name as it should appear in the cardset manager
135+
`<cardset_name>`: Your cardset name as it should appear in the cardset manager. Note that a cardset name of more than 30 characters will be truncated.
136136

137137
Line 3
138138
------
139139

140-
* *X:* The cards width (the card image width)
141-
* *Y:* The cards height (the card image height)
140+
* *X:* The cards' width (the card image width)
141+
* *Y:* The cards' height (the card image height)
142142
* *D:* The color depth (mostly 8)
143143
144144
Line 4

html-src/cardset_customization.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,15 @@ <h2>Line 2</h2>
259259
<p>(<b>TIP:</b> You could add a number prefix (e.g. 123-cardset-name)
260260
)</p>
261261
<p><code>&lt;cardset_name&gt;</code>: Your cardset name as it should appear
262-
in the cardset manager</p>
262+
in the cardset manager. Note that a cardset name of more than 30 characters
263+
will be truncated.</p>
263264
<h2>Line 3</h2>
264265
<ul>
265266
<li>
266-
<p><b>X:</b> The cards width (the card image width)</p>
267+
<p><b>X:</b> The cards' width (the card image width)</p>
267268
</li>
268269
<li>
269-
<p><b>Y:</b> The cards height (the card image height)</p>
270+
<p><b>Y:</b> The cards' height (the card image height)</p>
270271
</li>
271272
<li>
272273
<p><b>D:</b> The color depth (mostly 8)</p>

pysollib/options.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,8 @@ def setDefaults(self, top=None):
604604
6: ("Hokusai Ukiyo E (6x6)", ""),
605605
7: ("Blaren (7x7)", ""),
606606
8: ("Mid Winter's Eve (8x8)", ""),
607-
9: ("Hofamterspiel (9x9)", ""),
608-
10: ("Eternal Dragon (10x10)", "")},
607+
9: ("The Card Players (9x9)", ""),
608+
10: ("Players Trumps (10x10)", "")},
609609
CSI.TYPE_ISHIDO: {0: ("Simple Ishido XL", "")},
610610
}
611611
else:
@@ -629,8 +629,8 @@ def setDefaults(self, top=None):
629629
6: ("Hokusai Ukiyo E (6x6)", ""),
630630
7: ("Blaren (7x7)", ""),
631631
8: ("Mid Winter's Eve (8x8)", ""),
632-
9: ("Hofamterspiel (9x9)", ""),
633-
10: ("Eternal Dragon (10x10)", "")},
632+
9: ("The Card Players (9x9)", ""),
633+
10: ("Players Trumps (10x10)", "")},
634634
CSI.TYPE_ISHIDO: {0: ("Simple Ishido", "")},
635635
}
636636

pysollib/resource.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def register(self, cs):
573573
if not self._check(cs):
574574
return
575575
cs.ncards = len(cs.ranks) * len(cs.suits) + len(cs.trumps)
576-
cs.name = cs.name[:25]
576+
cs.name = cs.name[:30]
577577
if not (1 <= cs.si.size <= 5):
578578
CW, CH = cs.CARDW, cs.CARDH
579579
if CW <= 55 and CH <= 72:

scripts/cardsets_to_bundle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
11
cardset-2000
2+
cardset-blaren-7x7
23
cardset-crystal-mahjongg
34
cardset-dashavatara-ganjifa
45
cardset-dashavatara-ganjifa-xl
6+
cardset-dojouji-3x3
57
cardset-dondorf
68
cardset-gnome-mahjongg-1
7-
cardset-hexadeck
89
cardset-hanafuda-200-years
10+
cardset-hexadeck
11+
cardset-hokusai-6x6
12+
cardset-knave-of-hearts-4x4
913
cardset-louie-mantia-hanafuda
14+
cardset-matching
15+
cardset-matching-xl
1016
cardset-matrix
17+
cardset-mid-winter-eve-8x8
1118
cardset-mughal-ganjifa
1219
cardset-mughal-ganjifa-xl
1320
cardset-neo
1421
cardset-neo-hex
1522
cardset-neo-tarock
1623
cardset-next-matrix
1724
cardset-oxymoron
25+
cardset-players-trumps-10x10
26+
cardset-simple-ishido
27+
cardset-simple-ishido-xl
1828
cardset-standard
29+
cardset-the-card-players-9x9
1930
cardset-tuxedo
2031
cardset-uni-mahjongg
32+
cardset-victoria-falls-5x5
2133
cardset-vienna-2k

scripts/repack-min-cardsets.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ set -e -x
1010

1111
src_base="PySolFC-Cardsets"
1212
dest_base="$src_base--Minimal"
13-
ver="2.1.0"
14-
src_vbase="$src_base-2.1"
15-
dest_vbase="$dest_base-2.1.0"
13+
ver="3.0.0"
14+
src_vbase="$src_base-3.0"
15+
dest_vbase="$dest_base-3.0.0"
1616
src_arc="$src_vbase.tar.bz2"
1717

1818
if ! test -f "$src_arc"

0 commit comments

Comments
 (0)