16 Commits

Author SHA1 Message Date
Peter
69c0a66868
Change card db handling (#286)
* reorganize card db, add doit file
* make card_db_src a true source by removing untranslated entries, removing the untranslated field
* turn update language script into a better compiler
* move tools into submodule
* remove language db comparison test; add travis compile and check-in of card db
Co-authored-by: Nick Vance <nickv2002@users.noreply.github.com>
2020-01-04 15:26:51 -08:00
Peter
da99939249
Simplify language tool (#270)
* simplify language tool by using standard json output
* stop supporting python < 3
2019-10-20 22:46:46 -07:00
Peter
31a71447f0
precommit git hooks, rearrange package structure (#251)
* precommit hooks and changes because of these
* mv package into src dir
* add requirements file, clean up setup reqs, add precommit to CI
2019-05-23 16:17:30 -07:00
Wendel Voigt
8a975bc58b
Fix Travis failure 'is not' to != 2019-02-16 12:00:49 -06:00
Wendel Voigt
0f0587ea32 Add generic label and blank tabs support (#224)
* Add generic label support
* add support for blank tabs
2018-11-26 13:49:26 -08:00
Peter
bea714dfb8
Python 3 Compatibility (#208)
* make python3 compatible; clean up test reqs a bit
2018-07-30 12:03:36 -07:00
Sumpfork
e66d0ed9a8 line ending normalization for MANIFEST and *.md/csv 2018-04-09 12:26:04 +02:00
Peter
0ffa111025
Test language tool run (#192)
* switch to pytest
* add language tool test
2018-02-19 13:38:30 -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
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
msykora
37fb05f9a6 Adding Czech language (#151)
* Adding Czech language to translation reference file (not to db yet)
2017-02-28 11:42:38 -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
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
Sumpfork
5158406696 update de conversion script and de cards file 2015-12-01 10:50:27 -08:00
Sumpfork
0972985b6b update de conversion script and de cards file 2015-12-01 10:34:58 -08:00