1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-05-01 16:49:23 +03:00
Commit graph

40 commits

Author SHA1 Message Date
Alexander Yakovlev efc66ff0b0 Whitespace and don't escape curly brackets for TeX 2017-08-02 22:13:59 +07:00
Pelle Nilsson 7b11888164 Made twine2 its own output format instead of option for html. 2014-12-22 16:55:12 +01:00
Pelle Nilsson f1fd536995 Require -x to use tags not in a builtin hardcoded list. 2014-12-22 15:54:09 +01:00
Pelle Nilsson ff60c5826b Changed name of format from debug to json. 2014-09-24 22:01:02 +02:00
Pelle Nilsson 92b0f7276e formatgamebook.py copyright year update. 2014-09-23 21:45:36 +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 4288d69650 Allow uppercase in section names.
I think that is a good idea, or at least it makes a
current project of mine slightly easier, but there might
be something bad about it I did not consider now.
2014-05-30 23:35:09 +02:00
Pelle Nilsson 7162851ee3 Sections tagged to only be included for specific format(s). 2014-03-04 23:35:54 +01:00
Pelle Nilsson 23999c2373 Include multiple tags. Now also exclude tags. 2014-02-28 23:23:18 +01:00
Pelle Nilsson c17d336baa Removed some whitespace from output. 2014-02-28 22:14:22 +01:00
Pelle Nilsson d67604822e Option to add extra map-files for parsing. 2013-08-15 21:55:17 +02:00
Pelle Nilsson 600728e793 Removed debug print options. 2013-06-29 22:15:15 +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 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 a1057b81c9 Removed verify code. Will have to add somehow later, but not sure how. 2013-06-16 22:24:59 +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 45cbf9ab7f Disable shuffling replaces setting random seed. 2013-06-16 21:25:50 +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 d1845d2a1a Flag --random instead of --seed.
Hoping that will be slightly easier to understand.
2013-06-14 07:00:05 +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 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 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 f723ee0a9c Text format brackets.
Switched to text mark-up even more similar to org-mode, also more
similar to typical wiki mark-up, removing python-style format from
sections (but not from the templates).
2013-06-05 00:19:57 +02:00
Pelle Nilsson a58a237bc1 Better API for tags in sections. 2013-06-04 22:44:50 +02:00
Pelle Nilsson 84243fafa8 Examples structure. New examples. Verification stub. Tags parsing. 2013-06-04 22:36:09 +02:00
Pelle Nilsson 7c255b2bab Usage documentation. 2013-06-04 00:27:32 +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 8e1ac6353d Export and import JSON mapping of section numbers.
Except if flag -M is given.
2013-06-03 23:46:11 +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 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 bdc101a6db Added simple HTML output support. 2013-05-29 00:01:17 +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