README cleanup, linke to usage info
This commit is contained in:
parent
8024da5696
commit
88690e0150
18
README.md
18
README.md
@ -6,25 +6,32 @@
|
|||||||
|
|
||||||
This is a script and library to generate card dividers for storing cards for the game [Dominion](https://boardgamegeek.com/boardgame/36218/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](http://domtabs.sandflea.org). 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.
|
This is a script and library to generate card dividers for storing cards for the game [Dominion](https://boardgamegeek.com/boardgame/36218/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](http://domtabs.sandflea.org). 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](http://domtabs.sandflea.org)***.
|
Again, to generate tabs go to the **[Online Generator](http://domtabs.sandflea.org)**.
|
||||||
|
|
||||||
## Installation
|
## 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.
|
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](https://github.com/sumpfork/dominiontabs/wiki/Documentation-%28Script-Options%29) for reference.
|
||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
|
|
||||||
If you would like to help with translations to new (or updating existing) languages, please see [instructions here] (https://github.com/sumpfork/dominiontabs/blob/master/domdiv/card_db/translation.md).
|
If you would like to help with translations to new (or updating existing) languages, please see [instructions here] (https://github.com/sumpfork/dominiontabs/blob/master/domdiv/card_db/translation.md).
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
#### Python Packages
|
### Python Packages
|
||||||
You need the python packages for reportlab (http://www.reportlab.com/software/opensource/rl-toolkit/download/) and PIL (http://www.pythonware.com/products/pil/) installed. You can install them manually or use the included setup.py via 'python setup.py install' (perhaps run via 'sudo' if not in a virtual env) which should install everything for you.
|
|
||||||
|
You need the python packages for [reportlab](http://www.reportlab.com/software/opensource/rl-toolkit/download/) and [Pillow](https://pypi.org/project/Pillow/) installed. You can install them manually or use the included setup.py via 'python setup.py install' (perhaps run via 'sudo' if not in a virtual env) which should install everything for you.
|
||||||
|
|
||||||
|
### Fonts
|
||||||
|
|
||||||
#### 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.
|
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:
|
However, it appears you can download them here:
|
||||||
|
|
||||||
- http://fontsgeek.com/fonts/Minion-Pro-Regular
|
- http://fontsgeek.com/fonts/Minion-Pro-Regular
|
||||||
- http://fontsgeek.com/fonts/Minion-Pro-Italic
|
- http://fontsgeek.com/fonts/Minion-Pro-Italic
|
||||||
- http://fontsgeek.com/fonts/Minion-Pro-Bold
|
- http://fontsgeek.com/fonts/Minion-Pro-Bold
|
||||||
@ -36,6 +43,7 @@ Sadly, all these fonts use features that are not support by the reportlab packag
|
|||||||
Copy the converted `.ttf` files to the `fonts` directory in the `domdiv` package/directory, then perform the package install below.
|
Copy the converted `.ttf` files to the `fonts` directory in the `domdiv` package/directory, then perform the package install below.
|
||||||
|
|
||||||
## Using as a library
|
## 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.
|
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
|
## Developing
|
||||||
@ -43,3 +51,5 @@ The library will be installed as `domdiv` with the main entry point being `domdi
|
|||||||
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.
|
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>).
|
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`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user