Coder Social home page Coder Social logo

bradparks / countersheetsextension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lifelike/countersheetsextension

0.0 2.0 0.0 310 KB

Inkscape extension for the layout of sheets of cards, tiles, or counters for boardgames.

License: Other

Python 99.62% Shell 0.38%

countersheetsextension's Introduction

Countersheets Extension for Inkscape

Inkscape extension for the layout of sheets of cards, tiles, or counters for boardgames.

Since the extension was originally created for wargame counters, the generated images are refered to as counters, except in examples explicitly about making something else (like sheets of cards). There is very little in the tool that is specific to counters though, or to board games. It can be used as a generic templating tool (mail merge).

Main Features

  • Two-sided counters with back of sheets properly mirrored.
  • Templates for counters to generate drawn in Inkscape.
  • Use Comma Separated Values (CSV) files for describing what counters to make.
  • First column in the CSV says how many of each counter to make.
  • Several templates can be combined to make up a single counter.
  • Automatically make as many sheets needed to fit all counters.
  • Replace text strings and bitmap images for each counter.
  • Toggle specified parts of counters on or off for each couter.
  • Set colors and other attributes of (parts of) counters.
  • Any counters can be mixed on the same sheet (even different sizes).
  • Registration marks for manual cutting of the sheets.
  • Decide exactly where on a sheet to put blocks of counters, for die cutting.
  • Export created sheets to PNG or PDF.
  • Export individual counters to PNG images.

Installation

You need Inkscape 0.92 installed.

Copy countersheet.py, and countersheet.inx to where Inkscape looks for extensions. On my Mac and Linux computers this is in .config/inkscape/extensions. In Windows it will be something like C:\Program Files\Inkscape\share\extensions.

After you (re)start Inscape you should find "Create Countersheet" in the "Boardgames" submenu of the "Extensions" menu.

See more complete instructions on the wiki.

There is an old tutorial also on youtube by Erulisseuiin: http://www.youtube.com/watch?v=sZ__PwMZp_8 While it is for an older version of the Inkscape Board Game Extensions, it might still be easier to follow than my short instructions above.

I recommend Google or the Inkscape Guild on BoardGameGeek for help.

Getting Started

You need a SVG file with template objects open in Inkscape, and a CSV data file with information about what to generate. Run the Create Countersheet extension and provide the name of the data file (the other options in the dialog window you can ignore for now).

See the tutorials on the wiki for more.

License

Copyright (C) 2008-2017 Pelle Nilsson

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

queryAll method is derived from code included in Inkscape 0.91 (share/extensions/text_merge.py) that has this header:

Copyright (C) 2013 Nicolas Dufour (jazzynico) Direction code from the Restack extension, by Rob Antonishen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Documentation is Copyright 2009-2017 Eric Hanuise and Pelle Nilsson, available under the Creative Commons Attribution 3.0 License http://creativecommons.org/licenses/by/3.0/

Included examples in the documentation (the SVG and CSV files) are copyright Pelle Nilsson and made avilable under the Creative Commons Zero License (https://creativecommons.org/publicdomain/zero/1.0/) for any use (including commercial). All images used in the examples are by KenneyNL (https://kenney.itch.io/) made available under the Creative Commons Zero License.

countersheetsextension's People

Contributors

lifelike avatar stals avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.