74 Commits

Author SHA1 Message Date
Joe Skeen
780f2fc28d exclude start deck from randomizer (#206) 2018-07-21 12:54:43 -07:00
Peter
ebfaebb451
make no-coin images the default, clean up code and file names accordingly (#205) 2018-07-13 15:30:03 -07:00
Dennis Laumen
09064c0b4e Update cards_nl_du.json (#202)
Added the Dutch translations for the Intrigue 2nd Edition cards. Fixed a couple of small typo's in some other Intrigue cards.
2018-06-13 13:04:25 -07:00
Wendel Voigt
236feff33c Additional Divider Options: Curse, Trash, Start Decks - 2nd attempt (#201)
* Trash, Curse, Start Deck Options
2018-04-30 10:11:01 -07:00
Wendel Voigt
a33ec8f6d7 Expansion Randomizer Count Fix (#196)
* Program changes for Randomizer correction
* Card DB changes for Randomizer fix
* Better expansion divider card listing
* Base cards now sorted in preferred order.
* Added randomizer field
2018-04-28 10:29:27 -07:00
Sumpfork
152c705cbf fix some regexs to use raw string literals 2018-04-25 10:19:36 -07:00
Sumpfork
e66d0ed9a8 line ending normalization for MANIFEST and *.md/csv 2018-04-09 12:26:04 +02:00
Dennis Laumen
f4adb586e4 Fix Dutch Adventurer translation (#199)
The Dutch translation of the name of the Adventurer card was incorrect. This commit fixes that translation.
2018-04-09 02:08:40 -07:00
Wendel Voigt
11257093f2 Add option to add pdf page with option information (#198)
This adds options --info and -info-all:
--info to add a page that has all the options used for the PDF file.
--info-all is the same as --info, but includes pages with all the possible options that can be used.
2018-04-06 15:57:49 -07:00
Gewuerzhaendler775
0a73f57b36 2nd Edition Base and Intrigue translated (#193)
* 2nd Edition Base and Intrigue translated into German
2018-03-15 16:25:22 -07:00
Sébastien Wautelet
b633b84b5a Adventures FR translation (#185) 2018-02-19 14:14:48 -08:00
Sumpfork
539115b8f1 make language tool test more forgiving, and its errors easier to understand 2018-02-19 14:13:48 -08:00
Sumpfork
21c6896626 it would help to actually copy the language tool output 2018-02-19 13:43:10 -08:00
Peter
0ffa111025
Test language tool run (#192)
* switch to pytest
* add language tool test
2018-02-19 13:38:30 -08:00
Sumpfork
1ddb09bd54 spelling, comma fix 2018-02-19 13:36:12 -08:00
Peter
44d315dda2
Cleaned up PR #187 (#189)
* Dutch translation for Empires - Keizerrijken
2018-01-15 22:23:41 -08:00
Sumpfork
5411da1ca7 test loading all languages; config for pytest 2018-01-11 15:48:39 -08:00
Wendel Voigt
c031a108e2 Remove leprechaun/wish grouping 2018-01-06 09:06:07 -08:00
Michael Tuttle
b818f7cb7d standardize arguments to use hyphens (#167) 2017-12-11 10:52:35 -08:00
Wendel Voigt
559a8723c0 Fix for base cards printing with expansions (#182)
* Fix for base cards printing with expansions

* Allow base set and base cards in expansions

This changes the existing behavior to allow both the printing of the base set as well as printing base cards with expansions that have them via the --base_cards_with_expansion option.  Prior behavior would eliminate the base set if printing with the --base_cards_with_expansion option.
2017-12-11 10:47:49 -08:00
Peter
56adb5ff12
correct the count of Platinum cards (#180) 2017-12-08 10:45:10 -08:00
Peter
4ec44e8a2c
Hinterlands in French (#176) 2017-11-29 10:57:37 -08:00
Nick Vance
4fa5c40a1e New Updates for Nocturne & Dismantle Promo (#171)
- Update db for Nocture and Dismantle
- Add the expansion text blurbs to the expansion dividers if printed
- Improvements to the language update/propagate script
2017-11-28 10:02:21 -08:00
Sébastien Wautelet
8f96a8cb0d Complete French translation for base set (1st edition) (#170)
* French translation for Dominion set (1st edition)
2017-11-21 13:41:57 -08:00
Sébastien Wautelet
a89170fd44 fix for correctly sorting card names with accents (#169)
* fix for correctly sorting card names with accents
2017-11-17 16:21:11 -08:00
Peter
4d69a58411 Preview option (#163)
- fixes for preview code, and options to use it
2017-10-07 12:10:51 -07:00
Sumpfork
a092fca9e6 separate cleaning options from parsing them so the online generator can clean its faked options 2017-04-21 11:03:23 -07:00
Wendel Voigt
881b7281e9 Fix Prosperity rules text running over (#156)
This mostly fixes Issue #155.  This seems to occur only with the VP image.  I've seen several coin and potion, and debt images at the end of a line and they are justified correctly.  There is some strange interaction with the VP image and the paragraph wrap function in report.
While not completely fixing the image out of the normal paragraph boundary, at least this keeps it within the margins of the card.
2017-04-18 16:50:44 -07:00
Peter
c5c876f8c5 animals user expansion from BBG user rillaith (#148)
* animals user expansion from BBG user rillaith
* Added fan attribute to animals set
* animals.png - This is not the best image.  But it is the best I could get from the original files. I *think* it is 3 penguins.
* updated main.py for fan based expansions
This includes two items:
1) adds --fan for specifying fan expansions to include
2) adds wild cards in specifying both --expansion as well as --fan.  This also fixes issue #149
* Updated all language files for animals
* Normalize all line endings and add gitattributes file to make git do so in the future
* print the possible expansions when non-matching ones are provided
* Allow for no official expansions to be included
Kept the default behavior.  Not specifying '--expansions' will have the same outcome as '--expansions *' (i.e., will print all of them.)
Specifying '--expansions  ' (without any named expansions) or '--expansions none ' will result in no cards from any Official expansion.

For Fan expansions, the absence of '--fan', '--fan   ' (without any named fan expansion), and '--fan none ' will all prevent any Fan expansions from printing.
* Cleaned up expansion/fan lists
2017-03-25 21:39:49 -07:00
Wendel Voigt
3578804882 CZ language files (#152)
* Added add_language.py Tool to make it easier to add a new language from the csv file
* Add language files for cz
2017-03-03 11:01:28 -08:00
Wendel Voigt
c843e5970d Fix issue #145 when no text on front of a wrapper (#147)
When no text was on the front of a wrapper, the back wrapper text and tab were not in the proper location.
This was due to exiting the routine without doing the self.canvas.restoreState().
Cleaned up the code to be easier to read and to exit cleanly.
2017-02-10 13:36:28 -08:00
Peter
d4e69bc7d3 make the translation file a markdown file (#140)
* make the translation file a markdown file and (blindly) fix the language init script
* Updated formatting of the file to make it easier to read (and look better.)
* Included missing bonuses section
* Also fixed `card_db_dir` to point to the correct directory.

* Added link to Tranlsation instructions

* Updated link to translation.md in README.md
2017-01-08 10:26:35 -08:00
idlaviV
1a1dd9eac8 German translation: Hinterlands extra-texts (#139)
* Some typos corrected in german file
* translated hinterland-cards to german
* Some typos. capitalisation of names of cards is not uniform in the german extra-texts.
2017-01-07 20:03:11 -08:00
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
774c51dbc7 minor help text spelling fix 2016-12-11 15:04:44 -08: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
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
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
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