All Projects → sumpfork → dominiontabs

sumpfork / dominiontabs

Licence: other
Divider generator for the card game Dominion and its expansions.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to dominiontabs

CashFlowJs
Cash Flow 101 board game adaptation made in javascript with new features and game modes
Stars: ✭ 24 (-76.47%)
Mutual labels:  boardgame
Halma
Halma Game Built With The Awesome libGDX framework
Stars: ✭ 20 (-80.39%)
Mutual labels:  boardgame
shogi-pieces
Shogi (Japanese Chess) pieces and boards
Stars: ✭ 25 (-75.49%)
Mutual labels:  boardgame
AccessBattle
Free non-commercial implementation of the game "Rai-Net Access Battlers"
Stars: ✭ 15 (-85.29%)
Mutual labels:  boardgame
dominion-card-generator
a web-app to generate mockups of fan-cards for the card game dominion easily
Stars: ✭ 20 (-80.39%)
Mutual labels:  dominion
UdaipurGame
A clone of the boardgame Jaipur built using boardgame.io + ReactJS
Stars: ✭ 37 (-63.73%)
Mutual labels:  boardgame
besogo
Embeddable SGF editor/viewer for the game of Go (aka Weiqi, Baduk)
Stars: ✭ 82 (-19.61%)
Mutual labels:  boardgame
godot-hexgrid
a godot based framework to build hex map boardgames.
Stars: ✭ 48 (-52.94%)
Mutual labels:  boardgame
chessx
Sources of the official ChessX version.
Stars: ✭ 43 (-57.84%)
Mutual labels:  boardgame
cards.py
Generate Print-and-Play cards for your board games
Stars: ✭ 16 (-84.31%)
Mutual labels:  boardgame
boardgame
An online board game playground. Including lobby, chat
Stars: ✭ 11 (-89.22%)
Mutual labels:  boardgame
ItemDecorations
A dividers library for RecyclerView which use GridLayoutManager or LinearLayoutManager,when the RecyclerView used GridLayoutManager that supports Cross-Column feature.一款RecyclerView的分割线库,支持LinearLayoutManager和GridLayoutManager,当使用GridLayoutManager时支持跨行特性
Stars: ✭ 42 (-58.82%)
Mutual labels:  dividers

Dominion Divider Generation

Tests

Introduction

This is a script and library to generate card dividers for storing cards for the game Dominion. If you are just looking go generate some dominion dividers, there is no need to install this script as I host a live version of this generator code. However, if you want to use arguments that I don't expose on that page, or change the code, or contribute to the project the full generation code (not the web interface or the fonts) is included here, and contributions are more than welcome.

Again, to generate tabs go to the Online Generator.

Installation

If you do need to install the package locally (the script provides a lot more options than the web-based generator), a simple pip install domdiv should suffice, providing a command by the name of dominion_dividers. However, see the note under Prerequisites->Fonts below as the default install will fall back on a font that doesn't match the cards (though most people don't notice). Run dominion_dividers <outfile> to get a pdf of all dividers with the default options, or run dominion_dividers --help to see the (extensive) list of options.

Documentation

The script has an extensive set of options that are relatively well documented via dominion_dividers --help. Some are hard to describe unless you see output samples, so we recommend running the script with various options to see which configuration you like. The help output is replicated here for reference.

Translations

When changing any of the card database files you should run the language update tool via doit update_languages. This produces the package version of the card db from the card db source. This will also be run automatically and checked into git when you push to github. You should make sure that the resulting changes to the package are what you intend.

If you would like to help with translations to new (or updating existing) languages, please see instructions here.

Fonts

I believe I cannot distribute one font (Minion Pro) domdiv uses as they are owned by Adobe with a License that I understand to disallow redistribution.

However, it appears you can download them here:

Alternatively, the font files are included with every install of the free Adobe Reader. For example, on Windows 7 they are in C:\Program Files (x86)\Adobe\Reader 9.0\Resource\Font called MinionPro-Regular.otf, MinionPro-Bold.otf and MinionPro-It.otf.

Sadly, all these fonts use features that are not support by the reportlab package. Thus, they need to first be converted to ttf (TrueType) format. I used the open source package fontforge to do the conversion. Included as 'convert.ff' is a script for fontforge to do the conversion, on Mac OS X with fontforge installed through macports or homebrew you can just run ./convert.ff MinionPro-Regular.otf, ./convert.ff MinionPro-Bold.otf and ./convert.ff MinionPro-It.otf. With other fontforge installations, you'll need to change the first line of convert.ff to point to your fontforge executable. I have not done this step under Windows - I imagine it may be possible with a cygwin install of fontforge or some such method.

Copy the converted .ttf files to the fonts directory in the domdiv package/directory, then perform the package install below.

Using as a library

The library will be installed as domdiv with the main entry point being domdiv.main.generate(options). It takes a Namespace of options as generated by python's argparser module. You can either use domdiv.main.parse_opts(cmdline_args) to get such an object by passing in a list of command line options (like sys.argv), or directly create an appropriate object by assigning the correct values to its attributes, starting from an empty class or an actual argparse Namespace object.

Developing

Install requirements via pip install -r requirements.txt. Then, run pre-commit install. You can use python setup.py develop to install the dominion_dividers script so that it calls your checked out code, enabling you to run edited code without having to perform an install every time.

Feel free to comment on boardgamegeek at https://boardgamegeek.com/thread/926575/web-page-generate-tabbed-dividers or file issues on github (https://github.com/sumpfork/dominiontabs/issues).

Tests can be run (and their dependencies installed) via python setup.py test, which will also happen if/when you push a branch or make a PR.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].