Browse Source

docs: add sprues for #247

Also correct word_char for #237
dev
Andy Meneely 7 years ago
parent
commit
9b98163608
  1. 2
      CHANGELOG.md
  2. 2
      docs/cli/new.rst
  3. 2
      docs/dsl/text.rst
  4. 16
      docs/sprues.rst
  5. 2
      lib/squib/builtin/sprues/printplaygames_18up.yml
  6. 2
      samples/sprues/_builtin_sprues.rb
  7. BIN
      samples/sprues/sprue_drivethrucards_1up.yml_01_expected.png
  8. BIN
      samples/sprues/sprue_printplaygames_18up.yml_01_expected.png

2
CHANGELOG.md

@ -6,7 +6,7 @@ Squib follows [semantic versioning](http://semver.org).
## v0.14.2 / Unreleased
Features:
* Sprues for DriveThruCards! (#247, from @blinks)
* Sprues for DriveThruCards and printandplaygames!! (#247, from @blinks)
Bugs:
* Fixed bug on circle and other shapes that had an extra stroke from a previous text call (#248)

2
docs/cli/new.rst

@ -22,7 +22,7 @@ This kit includes the following:
* **Git files**, such as ``.gitignore``, and ``gitkeep.txt``. These are helpful because *every* coding project should use version control.
* **Markdown files**, e.g. ``IDEAS.md``, ``RULES.md``, ``PLAYTESTING.md``, and ``ABOUT.md``, to write notes in and organize your ideas.
You can see the basic files here `on GitHub <https://github.com/andymeneely/squib/tree/master/lib/squib/builtin/projects/basic>`_
You can see `the basic files here on GitHub <https://github.com/andymeneely/squib/tree/master/lib/squib/builtin/projects/basic>`_
``--advanced``
~~~~~~~~~~~~~~

2
docs/dsl/text.rst

@ -45,7 +45,7 @@ height
wrap
default: ``:word_char``
when ``width`` is set, determines the behavior of how the string wraps. The ``:word_char`` option will break at words, but then fall back to characters when the word cannot fit. Options are ``:none``, ``:word``, ``:char``, ``:word_char``. Also: ``true`` is the same as ``:word_char``, ``false`` is the same as ``:none``.
when ``width`` is set, determines the behavior of how the string wraps. The ``:word_char`` option will break at words, but then fall back to characters when the word cannot fit. Options are ``:word``, ``:char``, or ``:word_char``.
spacing
default: ``0``

16
docs/sprues.rst

@ -230,3 +230,19 @@ letter_poker_foldable_8up.yml
<img src="sprues/foldable_01_expected.png"
class="figure" width=550>
printplaygames_18up.yml
^^^^^^^^^^^^^^^^^^^^^^^
.. raw:: html
<img src="sprues/sprue_printplaygames_18up.yml_01_expected.png"
class="figure" width=550>
drivethrucards_1up.yml
^^^^^^^^^^^^^^^^^^^^^^
.. raw:: html
<img src="sprues/sprue_drivethrucards_1up.yml_01_expected.png"
class="figure" width=550>

2
lib/squib/builtin/sprues/printplaygames_18up.yml

@ -1,4 +1,4 @@
--- # Cards laid out for https://www.printplaygames.com/product/poker-cards
# Cards laid out for https://www.printplaygames.com/product/poker-cards
# Make sure the range is alternating 18 fronts / 18 backs.
# save_pdf sprue: 'printplaygames_18up.yml', file: 'pnp_output.pdf'
sheet_width: 12.0in

2
samples/sprues/_builtin_sprues.rb

@ -13,6 +13,8 @@ Squib::Deck.new(width: '50mm', height: '70mm', cards: 9) do
a4_poker_card_9up.yml
a4_usa_card.yml
letter_poker_card_9up.yml
printplaygames_18up.yml
drivethrucards_1up.yml
).each do |builtin|
save_sheet sprue: builtin, prefix: "sprue_#{builtin}_"
end

BIN
samples/sprues/sprue_drivethrucards_1up.yml_01_expected.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
samples/sprues/sprue_printplaygames_18up.yml_01_expected.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 KiB

Loading…
Cancel
Save