Pelle Nilsson
ff60c5826b
Changed name of format from debug to json.
2014-09-24 22:01:02 +02:00
Pelle Nilsson
43b6e93ea6
Tests to check output of checkgamebook.py.
...
Make-rules for checking with and without verbose flag for all example files.
Generated .check and .vcheck files are compared to known ok versions in expected dir.
2014-09-23 23:51:51 +02:00
Pelle Nilsson
4828d693d3
Changed debug output format from unformatted plain text to JSON.
2014-09-23 21:33:01 +02:00
Pelle Nilsson
6bfe86bf1c
Expected HTMLBook output.
2014-09-23 21:32:12 +02:00
Pelle Nilsson
dde2fdedae
Including HTMLBook ebook.css in head for generated HTMLBook HTML.
2014-09-23 19:48:01 +02:00
Pelle Nilsson
be2bc017bc
Added trade tag.
...
Also documented a couple of bugs related to cost
and trade. Seems like that system needs some rethinking.
2014-03-07 21:22:10 +01:00
Pelle Nilsson
dbc1dd6a8e
Using new format-specific sections to make trade example make more sense.
2014-03-04 23:39:37 +01:00
Pelle Nilsson
7162851ee3
Sections tagged to only be included for specific format(s).
2014-03-04 23:35:54 +01:00
Pelle Nilsson
86667922ec
Pay something (a counter, eg gold) to follow a reference.
...
Also refactored old code to pay for item slightly.
2014-03-04 23:02:51 +01:00
Pelle Nilsson
df7ea9838a
Added test for listing only sections with some tag.
...
Noted that unfortunately a missingto setting is required for this to work,
and the missingto section will be included in the list.
Not ideal perhaps for things like listening todo-tagged sections.
2014-02-28 22:59:10 +01:00
Pelle Nilsson
a144e3cc94
Removed htmlbook.out that should not be expected.
2014-02-28 22:57:36 +01:00
Pelle Nilsson
51798b3928
New list option.
2014-02-28 22:18:56 +01:00
Pelle Nilsson
3ace9a743a
Expected output with htmlbook option.
2014-02-28 22:17:55 +01:00
Pelle Nilsson
c17d336baa
Removed some whitespace from output.
2014-02-28 22:14:22 +01:00
Pelle Nilsson
213008aa2b
Templates for footnotes in gamebooks.
...
Only rendered well in LaTeX (PDF). Just shown in parenthesis in other formats.
Should be possible, I think, to render in RTF as well, and HTML probably.
Only needed them for PDF output at the moment though.
2013-10-08 23:35:09 +02:00
Pelle Nilsson
275294ea6b
Expect DOT files following new templates.
2013-08-15 21:56:44 +02:00
Pelle Nilsson
370530222e
Merge branch 'master' of rn:git/gamebookformat
2013-08-15 21:55:42 +02:00
Pelle Nilsson
d67604822e
Option to add extra map-files for parsing.
2013-08-15 21:55:17 +02:00
Pelle Nilsson
6fa4245e02
Initial value for counters (something it is not reset to when revisiting).
...
Also fixed DOT output that was quite broken.
2013-08-04 00:16:02 +02:00
Pelle Nilsson
4d1e513752
Correct expected output after RTF image bugfix in previous commit.
2013-07-28 18:59:40 +02:00
Pelle Nilsson
f5e555e3cf
Workaround for image filename being displayed in RTF output bug.
2013-07-28 18:57:57 +02:00
Pelle Nilsson
e5723bdf70
Named references.
...
Instead of just [[section]] you can have [[section][name]] and
depending on format the name will be displayed instead of or
in addition to the section number referred to.
2013-07-28 18:45:02 +02:00
Pelle Nilsson
cc58cc0580
Expect a letter.map file to be generated.
2013-07-28 17:56:42 +02:00
Pelle Nilsson
d92b5847d4
Added option (-o static) to make static HTML output.
2013-06-29 22:21:06 +02:00
Pelle Nilsson
2ce0cd6f6d
Added -o to add format overrides from the options subdirectory.
2013-06-29 22:07:27 +02:00
Pelle Nilsson
0936c768c3
DOT templates no longer relying on hack to get refs.
...
Also fixed bug in template for img that resulted in filename being
visible in some output formats.
2013-06-26 18:47:14 +02:00
Pelle Nilsson
6897e5e11a
Template for plain non-tagged text.
2013-06-26 11:37:48 +02:00
Pelle Nilsson
a949a60094
Expected output for counters examples updated.
2013-06-24 01:23:39 +02:00
Pelle Nilsson
f1d2f933ba
Cost tag that sets a price on something found.
2013-06-24 01:14:30 +02:00
Pelle Nilsson
17257b7970
Removed counter names from html and default templates.
...
It didn't work for writing some things, even though often correct.
2013-06-24 00:00:00 +02:00
Pelle Nilsson
431357a85c
Fixed problem with section used for missing.
...
It was handled at parse time, but must be done at
output time to be sure the section to use has been parsed.
2013-06-20 22:59:25 +02:00
Pelle Nilsson
4cfcc4888f
Counters.
2013-06-18 22:21:40 +02:00
Pelle Nilsson
4928bd0f14
Correct A5 size output in LaTeX template.
2013-06-18 20:38:55 +02:00
Pelle Nilsson
e404e877ac
Testing and fixing include only tag feature.
2013-06-18 20:38:32 +02:00
Pelle Nilsson
fcf41b9869
Option to only include sections with specific tag.
2013-06-16 23:43:45 +02:00
Pelle Nilsson
3a75168d02
Split out html gamebook scripts (most of them) and style.
2013-06-16 22:12:53 +02:00
Pelle Nilsson
1fac366e19
Gamebook id to allow saved games from different games in browser.
...
Default id is basename of file without extension.
Override id by setting book config, as seen in format.gamebook.
2013-06-16 21:54:18 +02:00
Pelle Nilsson
cf8f805255
Fixed bug with rendering of introduction sections.
2013-06-16 21:42:02 +02:00
Pelle Nilsson
45cbf9ab7f
Disable shuffling replaces setting random seed.
2013-06-16 21:25:50 +02:00
Pelle Nilsson
1d9ed7d7b7
Save and restore HTML game.
2013-06-16 21:18:28 +02:00
Pelle Nilsson
ad7fcf1e26
Player tests and refactorings.
2013-06-16 19:43:04 +02:00
Pelle Nilsson
c2faf5fad7
Improved OutputFormat by removing direct printing to output file.
...
Whitespace changed in small ways again in expected output.
Now with expected results files updated too.
2013-06-14 23:25:52 +02:00
Pelle Nilsson
c7938a3080
Small refactoring and testing of OutputFormat.
...
Minor fix in whitespace generated from templates. Not
100% sure this is an improvement, but the effect very small either way
2013-06-14 23:05:42 +02:00
Pelle Nilsson
b3ed663dc3
Updated expected HTML.
2013-06-14 22:24:56 +02:00
Pelle Nilsson
155c0ab2f3
Fixed some problems with make clean and expectedcheck.
2013-06-14 00:24:33 +02:00
Pelle Nilsson
2032d0d082
Expected actually now what is expected.
2013-06-13 23:35:11 +02:00
Pelle Nilsson
ca4b8389a8
Checking generated examples against saved expected outputs.
2013-06-13 23:21:34 +02:00