1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-07-08 01:24:25 +03:00
gamebookformat/expected/twinetest.rtf

37 lines
1.6 KiB
Plaintext

{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww14140\viewh14860\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\b\fs24 \cf0
\b \qc Gamebookformat Twine 2 Export Example
\b0\
\b Turn to 1 to begin.
\b0\
\
\b \qc {\*\bkmkstart s1}1{\*\bkmkend s1}
\b0\
\ql This is just an experiment exporting to the markup used in Twine 2 (see http://twinery.org). A known problem is that new-lines are significant in Twine, while they are happily ignored by gamebookformat. Have to add some hack to strip unintended whitespace from files when exporting to Twine 2. Also the book has to start at section 1 because currently the startnode given in the generated file is hardcoded to 1. Many things like item management and counters are not yet implemented, but from a quick look int the Twine 2 documentation it should be possible to add all that later. Creating a Twine 2 document is done using twine2 output format. Use the "Import From File" link in the Twine 2 web GUI to import the generated file. From here you can go to \b {\field{\*\fldinst REF s3 \\h }{\fldrslt 3}}
\b0
or \b {\field{\*\fldinst REF s2 \\h }{\fldrslt the end}}
\b0
. \
\
\b \qc {\*\bkmkstart s2}2{\*\bkmkend s2}
\b0\
\ql It ends here. \
\
\b \qc {\*\bkmkstart s3}3{\*\bkmkend s3}
\b0\
\ql This is another section, just to try references. You can go on to the end at \b {\field{\*\fldinst REF s2 \\h }{\fldrslt 2}}
\b0
. \
\
}