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
bce260d073
Fixed bug with tags only included in last section.
2013-06-16 23:39:09 +02:00
Pelle Nilsson
4fdb5dddcd
Split some too long lines.
2013-06-16 22:35:14 +02:00
Pelle Nilsson
b14a676a31
todo
2013-06-16 22:34:59 +02:00
Pelle Nilsson
e41df907fd
Ignore js and css files when checking expected output.
2013-06-16 22:26:31 +02:00
Pelle Nilsson
f96565e83c
node test script working with new html scripts
2013-06-16 22:25:16 +02:00
Pelle Nilsson
a1057b81c9
Removed verify code. Will have to add somehow later, but not sure how.
2013-06-16 22:24:59 +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
0bad58abe3
Stubs for testing html template javascript using node.js.
2013-06-16 09:41:32 +02:00
Pelle Nilsson
d431d1f47e
Ignore generated readme.html.
2013-06-16 09:06:40 +02:00
Pelle Nilsson
e80199ffbe
templates.py can be executed now to extract a template from command-line.
2013-06-16 09:06:21 +02:00
Pelle Nilsson
7a2f1d66b8
Rule to make readme.html.
...
Approximates what the readme will look like on github.
2013-06-15 18:45:31 +02:00
Pelle Nilsson
01b7cc63f9
todo
2013-06-14 23:36:59 +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
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
5bd01ef289
Removed unused old code.
2013-06-14 22:25:16 +02:00
Pelle Nilsson
b3ed663dc3
Updated expected HTML.
2013-06-14 22:24:56 +02:00
Pelle Nilsson
b794571d1f
HTML typo.
2013-06-14 22:24:24 +02:00
Pelle Nilsson
5c70a94cce
Split up HTML templates to give more hooks to more easily extend.
2013-06-14 22:20:45 +02:00
Pelle Nilsson
83d1ab0880
Windhammer Prize link.
2013-06-14 07:02:43 +02:00
Pelle Nilsson
d1845d2a1a
Flag --random instead of --seed.
...
Hoping that will be slightly easier to understand.
2013-06-14 07:00:05 +02:00
Pelle Nilsson
155c0ab2f3
Fixed some problems with make clean and expectedcheck.
2013-06-14 00:24:33 +02:00
Pelle Nilsson
4806ac05ef
unittest
2013-06-13 23:35:51 +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
Pelle Nilsson
d99ca50fa2
Fixed output of supported formats in command usage.
2013-06-13 23:11:25 +02:00
Pelle Nilsson
9831aae42a
Optional seed to get predictable shuffling of sections (for tests).
2013-06-13 23:07:36 +02:00
Pelle Nilsson
9aa32a1071
Removing obsolete test.sh.
2013-06-12 00:52:53 +02:00
Pelle Nilsson
21bac3679c
Minor style and layout fixes.
2013-06-12 00:49:57 +02:00
Pelle Nilsson
35bdf21ecf
Fixed some problems with RTF output.
...
Images hidden instead of filename visible.
Line-breaks after sections_begin text and introsectionheadings.
2013-06-12 00:29:10 +02:00
Pelle Nilsson
df76c64e7f
Random link selection. Stylesheet fixes for links. Some fixes with hiding/showing.
2013-06-12 00:16:21 +02:00
Pelle Nilsson
f60a650598
More formatting options.
2013-06-11 21:59:39 +02:00
Pelle Nilsson
5a468bdd65
Makefile upload target.
2013-06-11 21:56:21 +02:00
Pelle Nilsson
bd4631553d
todo
2013-06-11 00:09:02 +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
160519e7e5
Make plain text txt from all rule.
2013-06-10 23:58:33 +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
54e03105e7
Default templates. Added plain text output.
...
Made default section template constisting of sectionheader and sectionbody.
Improved Makefile with more dependencies to rebuild examples when needed.
2013-06-10 22:15:54 +02:00
Pelle Nilsson
116ca6fad1
Include templates from a template.
...
Should make it much easier to override specific parts of default templates.
2013-06-10 21:43:03 +02:00