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
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
25fb3ec60c
Checking counters to enable or disable HTML links.
2013-06-18 22:41:50 +02:00
Pelle Nilsson
4cfcc4888f
Counters.
2013-06-18 22:21:40 +02:00
Pelle Nilsson
cf8f805255
Fixed bug with rendering of introduction sections.
2013-06-16 21:42:02 +02:00
Pelle Nilsson
4f260e2307
Improved OutputFormat by removing direct printing to output file.
...
Whitespace changed in small ways again in expected output.
2013-06-14 23:24:43 +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
b0f70ff39f
Adding first output unit tests. Doing some refactoring to improve testability.
2013-06-14 22:49:22 +02:00
Pelle Nilsson
f60a650598
More formatting options.
2013-06-11 21:59:39 +02:00
Pelle Nilsson
0c0a3f7afd
Basic quoting of different output formats.
...
Need to be improved and also add strict filtering later.
2013-06-11 00:02:29 +02:00
Pelle Nilsson
02f6459acf
Book config option for max section number to use.
...
Not sure how useful it is since you can always force one section to have the
max number you want instead.
Anyway also added filling up with dummy sections to make shuffled numbers
on sections in the correct range from 1 to max.
2013-06-10 23:06:37 +02:00
Pelle Nilsson
3421ba7aaa
Gamebook configuration (title and author for now).
2013-06-10 22:50:06 +02:00
Pelle Nilsson
18c76ce0b0
Xor (ex-haselse) and Auto modifiers on secrion references.
2013-06-10 21:21:13 +02:00
Pelle Nilsson
98b2583f68
Inventory and codewords now both generic collections.
...
Some new code to handle tags with arguments.
2013-06-09 00:55:24 +02:00
Pelle Nilsson
ac0b806c73
Can pick up items in HTML version. First stubs for HTML Javascript.
...
Ugly hack warning. Too tired to design.
2013-06-07 21:41:52 +02:00
Pelle Nilsson
1bf91169c5
Codewords and items.
...
Need to think more about design and code is not pretty.
2013-06-07 00:14:06 +02:00
Pelle Nilsson
5e187d3252
Improved LaTeX references.
...
Includes some ugly hacks like the empty sections to increase counter.
2013-06-04 22:32:03 +02:00
Pelle Nilsson
8a4a3401b4
Flag -t to add custom template dirs to override default templates.
2013-06-04 00:22:54 +02:00
Pelle Nilsson
18f313666e
Do not crash when there are gaps in section numbering.
2013-06-03 23:45:31 +02:00
Pelle Nilsson
c17d00872b
Cleaned up output and templates handling a bit.
2013-06-03 22:19:06 +02:00
Pelle Nilsson
5d42472385
Use term section instead of paragraph.
...
Because it will become confusing later when there is support
for sections split up in several paragraphs otherwise.
2013-06-03 21:57:55 +02:00
Pelle Nilsson
84bf6baea5
Renamed templates directory to templates, because that is what it contains.
2013-06-03 21:48:01 +02:00
Pelle Nilsson
707d5692cb
Switched from JSON to simpler format.
...
Code is a bit of a mess at the moment. Might have to generate some JSON
later anyway to make it easier to make playable game in browser.
2013-05-30 00:18:05 +02:00
Pelle Nilsson
f01eb0a3f3
Fixed bugs in DOT and RTF output.
2013-05-29 00:00:30 +02:00
Pelle Nilsson
f0ad6ea094
Halfway through refactoring output formats.
...
The idea now is that only simple plain-text template files are used
for all formats, rather than having a Python class for each one.
At least for the currently supported formats this seems to work very well.
Need to clean up and remove all the reduntant class definitions sometime.
2013-05-28 23:31:09 +02:00
Pelle Nilsson
4986b40cf0
Initial basic version of gamebook formatter.
...
Reused old paragraphs.py and test_paragraphs.py.
Implemented very basic output for Graphviz DOT and LaTeX files.
Basic plain-text debug output.
2013-05-27 23:33:36 +02:00