556 Commits

Author SHA1 Message Date
Sumpfork
286f74cbe2 move version spec into setup file 2017-01-04 10:18:56 -08:00
Sumpfork
f1fda6fd75 move order choices into constant 2017-01-03 11:08:15 -08:00
Wendel Voigt
4cf97b303a Added 'base' to the list of expansion choices 2016-12-31 09:13:51 -06:00
Sumpfork
49c4672b80 match filename case in cards_db.json 2016-12-20 16:40:00 -08:00
Wendel Voigt
1d50eb7376 Fix CardSorter use of Base cards (#137)
* enforce specific base card order
* use base card `cardset_tag` instead of card set name to find base cards
2016-12-20 16:37:58 -08:00
Sumpfork
1d683fac22 fix font fallback error message 2016-12-19 21:50:01 -08:00
Sumpfork
b6054ed6bb fix first replacement being used everywhere when processing inline images 2016-12-16 13:52:52 -08:00
Peter
732a4c79bf rewrite inline image replacement (#135)
* rewrite inline image replacement
* make a note about `python setup.py develop`
* Tweak to the VP size
2016-12-16 13:17:42 -08:00
Peter
f47d9ee17b Make better package (#132)
* make domdiv a better behaved python package (see #131)
* move code from __init__.py to main.py to make import quicker and make version work without dependencies
* update languages import to use pkg_resources, fix tests
* update readmes
* change font lookup, font readme notes
2016-12-15 16:29:48 -08:00
Sumpfork
d64b52f491 Merge branch 'idlaviV-TranslatedAllAdventureFiles' 2016-12-15 16:25:17 -08:00
Sumpfork
65c809f464 fix two typos 2016-12-15 16:24:44 -08:00
Sumpfork
dde5925919 Merge branch 'TranslatedAllAdventureFiles' of https://github.com/idlaviV/dominiontabs into idlaviV-TranslatedAllAdventureFiles 2016-12-15 16:21:22 -08:00
The Gitter Badger
72eccf7f66 Add Gitter badge (#133) 2016-12-15 11:41:46 -08:00
Leonid
be386eeaa4 Spelling-checks done for german cards. The adventure-events-part is freely translated from the english version, because i could not find a german analogon 2016-12-12 11:31:20 +01:00
Sumpfork
774c51dbc7 minor help text spelling fix 2016-12-11 15:04:44 -08:00
Leonid
5382282113 More commata-Sytax-fixes. One day I will find out how to test it without pushing. 2016-12-11 21:51:44 +01:00
Leonid
cc3ac392d1 Syntax fixed 2016-12-11 21:48:24 +01:00
Leonid
53678c621a Added german translations for all Cornucopia-Cards. Also added german translations for the special adventures-cards. 2016-12-11 17:06:03 +01:00
Leonid
17ad20325d Syntax corrected. 2016-12-11 15:05:41 +01:00
Leonid
c0eaeb7078 All Adventure-Cards completly translated. I hope I got the tokens right. There might be inconsistencies with white-spaces in extra-texts. This replaces my pull request from my forked repository. 2016-12-11 13:54:19 +01:00
Nick Vance
250a9e4b51 Card db refactoring (#105)
* Code refactoring for card db change (#86)
This assumes the following file structure:
```
card_db/
    cards_db.json
    sets_db.json
    <language>/
        cards_text.json
        sets_text.json
```
Files that are needed are:

- cards_db.json
- cards_text.json and sets_text.json for each supported language

**Other changes:**

Added option called `--edition` that can be "1", "2", "latest", or "all". Defaults to "all".
This allows for a quick filtering for those that don't want everything (i.e., "all").

- "1" is for all 1st editions of expansions. It also includes 2nd edition update packs.
- "2" is for all 2nd editions of expansions. So base, Dominion 2nd ed., and Intrigue 2nd ed. (no update packs, since already in 2nd edition)
- "latest" is for base, Dominion 2nd ed., and Intrigue 2nd ed., and all the remaining 1st editions.

Cards can be grouped 3 ways:

- No grouping (default)
- In expansion grouping invoked with `--special_card_groups`.
- Grouping across expansions with `--exclude_events` and `--exclude_landmarks`.  These groups are placed in a set called "Extras".   `--exclude_prizes` is not currently implemented.

Added an option called `--upgrade_with_expansion` which will put the upgraded cards into the corresponding earlier expansion.  So all 1st edition cards as well as the upgrade cards appear in the 1st edition set.  That way the cards are listed on the expansion dividers and any tab/ordering fit the expansion as a whole.  And because of the deleted cards in 2nd edition, this is a different list of cards than just using the 2nd edition.

* update set image mapping for 2nd edition icons
* add improved set icons from https://boardgamegeek.com/filepage/73273/dominion-card-icons-vector-images
* recompress all images
* new format for cards_db.json and translations
* Added short name to sets
* Updates to allow blank set images for base cards and fix blank set image for the "Extras" set.  Also removed base_set.png which is no longer needed (again!)
* scaled all set images to be exactly 300 x 300 pixels for consistency and better printing
* Updated __init__.py and cards.py to automatically find the "lowest cost" value from all the cards in a group.
* Update carddb_tests.py
  * Updated set information in testcases
  * Changed test of cardset to test cardset_tag instead.  Since that is what everything keys off of now.
  * Updated the language tests to pull in the language parts before making the check.
* Standardize on ISO8859-15 (#98)
* Remove Trash Card from 2nd edition, replace HTML line breaks & unicode
* Better Error Handling for Font Errors
* Added text formating codes
Added text formatting codes for "extra" and "description" fields.  This includes:
<tab> and <t> to add a tab (4 spaces)
<n> as an alternative to \n (hard new line)
<br> as an alternative to <br /> (soft new line)
<c> and <center> to center text in this paragraph until the next hard new line
<l> and <left> to left align text in this paragraph until the next hard new line
<r> and <right> to right align text in this paragraph until the next hard new line.
<line> to add a hard new line, a centered dividing line, and a trailing hard new line.
<line> to put a centered line
This goes with the <b>..</b> for bold, <i>..</i> for italics, and <u>..</u> for underline that was already existing (but probably not remembered.
* Update card count presentation (#116)
* wvoigt added automatic bonus highlighting (#119)
2016-12-10 21:05:34 -08:00
Nick Vance
3b732fa47f Merge pull request #83 from mr-ice/master
added 2nd edition dominion & intrigue cards (english only)
2016-10-23 21:40:05 -07:00
Michael Rice
1cfc6e3e24 Fixed "Settlers / Bustling Village" group as it was backward (#84)
causing it not to match cards.json.  Also copied the updates
from 7355c8f6 into the other three card_groups.json, as new
entries needing translation.
2016-10-23 20:08:06 -07:00
Sumpfork
dbe3a2a45e fix typo in Mountain Pass name 2016-10-19 13:17:34 +02:00
Nick Vance
c77e38824b Add Sauna/Avanto Promo Images (#80)
* Point Summon and Sauna promos to renamed promo.set.png
2016-10-17 11:53:13 +02:00
Wendel Voigt
9ea133d2a2 Update Card counts for Adventures and Empires (#82)
Fixed incorrect card counts for Adventures and Empires.  Removed extra
white space at end of some lines.  Added text for the overall events and
landmark dividers in Empires (where blank).
2016-10-17 11:51:54 +02:00
Michael Rice
50642502d9 Merge branch 'master' of https://github.com/mr-ice/dominiontabs 2016-10-16 18:38:53 -05:00
Michael Rice
0f9832ae26 added intrigue update cards (english only) 2016-10-16 18:38:43 -05:00
Michael Rice
51265a029d adding 14 cards makes 386 cards == 400 cards. test for db size updated 2016-10-16 18:17:51 -05:00
Michael Rice
9d93714b40 tweaked putting in a long dash for a rule line between card effects. 2016-10-16 17:48:16 -05:00
Michael Rice
9cf1750f99 remove trailing whitespace, may be added by json.dumps 2016-10-16 17:35:42 -05:00
Michael Rice
5ce7976d5f fixed some minor display issues with newlines in the extra text on intrigue updates 2016-10-16 17:23:14 -05:00
Michael Rice
dff2f16ba6 added intrigue update cards (english only) 2016-10-16 17:06:15 -05:00
Michael Rice
633050be51 added update cards to the dominion set (english only) 2016-10-16 14:09:56 -05:00
Thomas Klausner
901d670272 Add German Sauna/Avanto promo cards. (#78) 2016-10-05 09:55:32 -07:00
Peter
21c4134e9f German promo cards (#77)
* Add German texts for promo cards.
* fix logic around missing set images; add translations of german promo card names to mapping
2016-10-04 23:46:42 -07:00
Nick Vance
0efac2000b Add new Sauna/Avanto Promo with Split Pile (#76)
* Added Sauna/Avanto Promo with Split Pile
* Update tests to account for new promo cards
2016-10-04 12:43:02 -07:00
Sumpfork
7863a9d0c5 fix arparse help strings - they cannot have unquoted format character 2016-07-19 11:13:00 -07:00
Wendel Voigt
b280fa7bc9 CenterTabs correctly fix up white space issues from automatic tests 2016-07-11 18:33:03 -05:00
Wendel Voigt
d354f1e291 CenterTabs fix up white space issues from automatic tests 2016-07-11 18:30:07 -05:00
Wendel Voigt
48c6ee0def Add option for Center Tab
These changes addresses issue #68
2016-07-11 18:15:08 -05:00
Sumpfork
5d3fb7589e missed an ez_setup dependency 2016-07-06 15:58:37 -07:00
Sumpfork
b70bd37d80 - start using argparse instead of optionparser
- make all code conform to pep8 once more
- add a unit test to check for pep8 compliance
- delete old ez_setup
2016-07-06 15:21:00 -07:00
Wendel Voigt
669fa4c7e6 Add card counts and wrapper/slipcase features (#65)
This adds card counts and the option to print wrappers (aka slipcases).
It fixes issues #45, #47, and #48.
2016-07-06 14:16:06 -07:00
Sumpfork
7b9e2361ae fix typo, issue https://github.com/sumpfork/dominiontabs/issues/42 2016-06-19 19:32:27 -07:00
Sumpfork
8aa0bdb4fc bump version for release 2016-06-19 08:55:53 -07:00
Sumpfork
421127d8b5 use new action-treasure banner from https://github.com/sumpfork/dominiontabs/pull/61 to fix https://github.com/sumpfork/dominiontabs/issues/60 2016-06-19 08:49:11 -07:00
Sumpfork
ac69920fae update release generation script 2016-06-19 08:37:07 -07:00
Sumpfork
259a22e487 add License file 2016-06-18 21:52:43 -07:00
robertre2
eb338c77d8 Added Event and Landmarks. (#62)
Added Event and Landmarks from Empires, and the Summon Event.
Fixed some problems with display of Debt in descriptions.
2016-06-16 13:39:45 -07:00