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
Pelle Nilsson
18c76ce0b0
Xor (ex-haselse) and Auto modifiers on secrion references.
2013-06-10 21:21:13 +02:00
Pelle Nilsson
ec7a054d42
haselse hack to enable or disable one link the opposite of the previous one
2013-06-10 19:13:45 +02:00
Pelle Nilsson
c4a777ebad
Updated debug output for new collections.
2013-06-09 01:08:06 +02:00
Pelle Nilsson
2d9ee26818
todo
2013-06-09 01:04:02 +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
d10177efd6
Fixed bugs in importing and exporting map file with sections not in gamebook.
2013-06-08 20:50:08 +02:00
Pelle Nilsson
d886b26210
ff
2013-06-08 20:24:03 +02:00
Pelle Nilsson
9cb51eddae
Allow player to follow a link if not having a specific codeword.
2013-06-08 20:18:05 +02:00
Pelle Nilsson
4d1728cda8
Allow player to follow a link if not carrying a specific item.
2013-06-08 20:13:30 +02:00
Pelle Nilsson
1688e7f4ed
HTML output for small screens somewhat more readable/playable.
2013-06-08 20:00:19 +02:00
Pelle Nilsson
d1e67a2532
Rules to build all examples of specific type.
2013-06-08 19:59:55 +02:00
Pelle Nilsson
ee27c2b6ee
Oops, endsWith is not standard Javascript at all. Using regexp.
2013-06-08 15:57:49 +02:00
Pelle Nilsson
ecf8a28384
Items examples grammar in text.
2013-06-08 15:57:21 +02:00
Pelle Nilsson
1cc0550baf
Managed to get centered section headings in Mac text editor.
2013-06-08 09:02:26 +02:00
Pelle Nilsson
ffbac7868a
Attempt to fix LaTeX/PDF output a bit.
2013-06-07 23:29:20 +02:00
Pelle Nilsson
f7cf60dbc1
Centered section headers in RTF output.
2013-06-07 23:27:01 +02:00
Pelle Nilsson
af2a459cc9
Items and codewords.
...
Gamebooks are now quite playable in HTML version. Planning to
redesign inventory and codewords to be handled the same way, to allow
adding other things that behave in a similar way to a gamebook (eg
skills or spells). Also some obvious things are missing like being
able to check if NOT having an item or codeword, or preventing a player
from finding the same item twice (if redirected back to a section where
it can be found after dropping it).
2013-06-07 23:18:33 +02:00
Pelle Nilsson
ddf6ed3046
Codewords set in HTML.
...
Feel bad about how copy-pasted codewords are from items.
Ideally the same code would handle both. Not now though.
2013-06-07 22:03:28 +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
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
3a1f8821c1
Cleaned up old automatic tests.
...
Ought to add some more soon.
2013-06-04 22:40:09 +02:00
Pelle Nilsson
dd7b1281ca
todo
2013-06-04 22:39:46 +02:00
Pelle Nilsson
84243fafa8
Examples structure. New examples. Verification stub. Tags parsing.
2013-06-04 22:36:09 +02:00
Pelle Nilsson
4dc609c1a2
Now an error to have sections with the same name.
2013-06-04 22:32:51 +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
ad1bbe65ae
LaTeX with cross-references.
...
Seems to work, but following links in PDF brings you to the top
of the section below the heading, sometimes meaning that the
number is not visible on screen. Also section headings could
perhaps have better layout with less empty space above and below.
2013-06-04 00:57:45 +02:00
Pelle Nilsson
f5eb63be46
Two-column LaTeX output with section numbers on separate lines.
2013-06-04 00:34:01 +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
f8ba31300a
Target to find FIXMEs in code.
2013-06-04 00:02:02 +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
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
2dfd2dca24
todo
2013-06-03 22:08:07 +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