1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-26 03:41:04 +03:00

Expected output with htmlbook option.

This commit is contained in:
Pelle Nilsson 2014-02-28 22:17:55 +01:00
parent c17d336baa
commit 3ace9a743a
8 changed files with 207 additions and 0 deletions

13
expected/htmlbook.debug Normal file
View file

@ -0,0 +1,13 @@
BEGIN DEBUG OUTPUT
Book title: HTMLBook
Number of sections: 3
Introduction
This is an introduction. This example gamebook is for testing the htmlbook option. See https://github.com/oreillymedia/HTMLBook for more information about HTMLBook.
More
This is another introduction section, just to see that formatting is correct when there are more than one.
Turn to 1 to begin.
1 (third) - Got to this section. Story ends here.
2 (second) - Got to another section. Story ends here.
3 (start) - This is the first section. From here you can go to the unnamed section 2 or this named section (1).
END DEBUG OUTPUT

4
expected/htmlbook.dot Normal file
View file

@ -0,0 +1,4 @@
digraph gamebook {
3->2
3->1
}

45
expected/htmlbook.html Normal file
View file

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/1999/xhtml ../../HTMLBook/schema/htmlbook.xsd"
xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTMLBook</title>
<meta name="HTMLBook" content="text/html; charset=utf-8" />
</head>
<body data-type="book" class="book" id="htmlbook">
<section data-type="titlepage" class="titlepage">
<h1>HTMLBook</h1>
<p data-type="author"></p>
</section>
<section data-type="chapter" id="sections">
<h1>HTMLBook</h1>
<section data-type="sect1" class="sect1">
<h1>Introduction</h1>
<p> This is an introduction. This example gamebook is for testing the htmlbook option. See https://github.com/oreillymedia/HTMLBook for more information about HTMLBook. </p>
</section>
<section data-type="sect1" class="sect1">
<h1>More</h1>
<p> This is another introduction section, just to see that formatting is correct when there are more than one. </p>
</section>
<section data-type="sect1" class="sect1" id="section1">
<h1>1</h1>
<p> Got to this section. Story ends here.</p>
</section>
<section data-type="sect1" class="sect1" id="section2">
<h1>2</h1>
<p> Got to another section. Story ends here. </p>
</section>
<section data-type="sect1" class="sect1" id="section3">
<h1>3</h1>
<p> This is the first section. From here you can go to the unnamed section <a href="#section2">2</a>
or <a href="#section1">this named section</a>
. </p>
</section>
</section>
</body>
</html>

1
expected/htmlbook.map Normal file
View file

@ -0,0 +1 @@
{"start": 3, "second": 2, "third": 1}

0
expected/htmlbook.out Normal file
View file

51
expected/htmlbook.rtf Normal file
View file

@ -0,0 +1,51 @@
{\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 HTMLBook
\b0\
\
\b \qc Introduction
\b0\
\ql This is an introduction. This example gamebook is for testing the htmlbook option. See https://github.com/oreillymedia/HTMLBook for more information about HTMLBook. \
\
\
\b \qc More
\b0\
\ql This is another introduction section, just to see that formatting is correct when there are more than one. \
\
\b Turn to 1 to begin.
\b0\
\
\b \qc 1
\b0\
\ql Got to this section. Story ends here. \
\
\b \qc 2
\b0\
\ql Got to another section. Story ends here. \
\
\b \qc 3
\b0\
\ql This is the first section. From here you can go to the unnamed section \b 2
\b0
or this named section (
\b 1
\b0
)
. \
\
}

74
expected/htmlbook.tex Normal file
View file

@ -0,0 +1,74 @@
\documentclass[a5paper,onecolumn]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[hidelinks]{hyperref}
\usepackage{graphicx}
\usepackage[top=3.3cm, bottom=3.3cm, left=2cm, right=2cm]{geometry}
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse
\else
\ifnum\pdfoutput=1
\pdftrue
\else
\pdffalse
\fi
\fi
\title{HTMLBook}
\author{}
\date{}
\newcounter{sectionnr}
\begin{document}
\maketitle
\clearpage
\thispagestyle{empty}
\pagestyle{empty}
\subsection*{\begin{center} \textbf{Introduction} \end{center}}
\noindent
This is an introduction. This example gamebook is for testing the htmlbook option. See https://github.com/oreillymedia/HTMLBook for more information about HTMLBook.
\vspace{1em}
\subsection*{\begin{center} \textbf{More} \end{center}}
\noindent
This is another introduction section, just to see that formatting is correct when there are more than one.
\vspace{1em}
Turn to 1 to begin.
\phantomsection
\refstepcounter{sectionnr}
\label{section1}
\subsection*{\begin{center} \textbf{1} \end{center}}
\noindent
Got to this section. Story ends here.
\vspace{1em}
\phantomsection
\refstepcounter{sectionnr}
\label{section2}
\subsection*{\begin{center} \textbf{2} \end{center}}
\noindent
Got to another section. Story ends here.
\vspace{1em}
\phantomsection
\refstepcounter{sectionnr}
\label{section3}
\subsection*{\begin{center} \textbf{3} \end{center}}
\noindent
This is the first section. From here you can go to the unnamed section \textbf{\autoref{section2}} or this named section (\textbf{\autoref{section1}})
.
\vspace{1em}
\end{document}

19
expected/htmlbook.txt Normal file
View file

@ -0,0 +1,19 @@
HTMLBook
Introduction
This is an introduction. This example gamebook is for testing the htmlbook option. See https://github.com/oreillymedia/HTMLBook for more information about HTMLBook.
More
This is another introduction section, just to see that formatting is correct when there are more than one.
Turn to 1 to begin.
1
Got to this section. Story ends here.
2
Got to another section. Story ends here.
3
This is the first section. From here you can go to the unnamed section 2 or this named section (1).