mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-15 08:06:06 +09:00
btex using xml wip
This commit is contained in:
49
assets/mods/basegame/books/btex.xml
Normal file
49
assets/mods/basegame/books/btex.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<btex cover="hardcover" inner="standard" papersize="standard">
|
||||
<cover>
|
||||
<title>The Way to Mastery of Lorem Ipsum<br />Or, How To Write and Publish a Book</title>
|
||||
<author>Terran Publishing</author>
|
||||
<edition>Test Edition</edition>
|
||||
</cover>
|
||||
|
||||
<toc><tableofcontents /></toc>
|
||||
|
||||
<manuscript>
|
||||
|
||||
<chapter>What Is a Book</chapter>
|
||||
|
||||
<p>This example book is designed to give you the exampe of the Book Language.</p>
|
||||
|
||||
<section>What Really Is a Book</section>
|
||||
|
||||
<p>A book is a collection of texts printed in a special way that allows them to be read easily, with enumerable pages and insertion of other helpful resources, such as illustrations and hyperlinks.</p>
|
||||
|
||||
<newpage />
|
||||
|
||||
<fullpagebox>
|
||||
<span colour="grey">
|
||||
<p>this page is intentionally left blank</p>
|
||||
</span>
|
||||
</fullpagebox>
|
||||
|
||||
<chapter>Writing Book Using Pen and Papers</chapter>
|
||||
|
||||
<p>If you open a book on a writing table, you will be welcomed with a toolbar used to put other book elements, such as chapters, sections.</p>
|
||||
|
||||
<chapter>Writing Book Using Typewriter</chapter>
|
||||
|
||||
<p>Typewriters can only write single style of font, therefore chapters and sections are not available.</p>
|
||||
|
||||
<chapter>Writing Book using Computer</chapter>
|
||||
|
||||
<p>Writing book using a computer requires a use of the Book Typesetting Engine Extended, or <BTeX /></p>
|
||||
|
||||
<section>Full Control of the Shape</section>
|
||||
|
||||
<p>With <BTeX /> you can fully control how your publishing would look like, from a pile of papers that look like they have been typed out using typewriter, a pile of papers but a fully-featured printouts that have illustrations in it, to a fully-featured hardcover book.</p>
|
||||
|
||||
<p>This style is controlled using the <code>cover</code> attribute on the root tag, with following values: <code>typewriter</code>, <code>printout</code>, <code>hardcover</code></p>
|
||||
|
||||
<p>Typewriter and Printout are considered not bound and readers will only see one page at a time, while Hardcover is considered bound and two pages are presented to the readers.</p>
|
||||
|
||||
</manuscript>
|
||||
</btex>
|
||||
60
assets/mods/basegame/books/examination.btex
Normal file
60
assets/mods/basegame/books/examination.btex
Normal file
@@ -0,0 +1,60 @@
|
||||
\usestyle{examination}
|
||||
|
||||
\begin{blocklut}
|
||||
\0\{basegame:0}
|
||||
\1\{basegame:32}
|
||||
\100\{wall@basegame:32}
|
||||
\end{blocklut}
|
||||
|
||||
|
||||
\begin{examination}
|
||||
|
||||
\section{Introduction}
|
||||
|
||||
\begin{tiles}{5x4}
|
||||
\terr{
|
||||
0,1,1,1,0,
|
||||
1,0,0,0,1,
|
||||
1,0,0,0,1,
|
||||
0,1,1,1,0
|
||||
}
|
||||
\wall{
|
||||
0,1,1,1,0,
|
||||
1,1,1,1,1,
|
||||
1,1,1,1,1,
|
||||
0,1,1,1,0
|
||||
}
|
||||
\end{tiles}
|
||||
|
||||
This is the first page of the Examination.
|
||||
|
||||
Examination is a way to instruct the player certain gameplay concepts.
|
||||
|
||||
The system is popularised by the Minecraft Mod called ``Create'', of which it was called Pondering.
|
||||
|
||||
Terrarum borrows the concept and implements it using its own language.
|
||||
|
||||
\section{Language}
|
||||
|
||||
\begin{tiles}{5x4}
|
||||
\terr{
|
||||
0,1,1,1,0,
|
||||
1,0,1,0,1,
|
||||
1,0,1,0,1,
|
||||
0,1,1,1,0
|
||||
}
|
||||
\wall{
|
||||
0,1,1,1,0,
|
||||
1,1,1,1,1,
|
||||
1,1,1,1,1,
|
||||
0,1,1,1,0
|
||||
}
|
||||
\end{tiles}
|
||||
|
||||
Examination relies on the script written in \BTeX.
|
||||
|
||||
\BTeX\ is a \TeX-inspired language to write texts to be displayed onto the game, one example being a book.
|
||||
|
||||
Examination is a special format of the "book" that operates on the same book system.
|
||||
|
||||
\end{examination}
|
||||
57
assets/mods/basegame/books/examination.xml
Normal file
57
assets/mods/basegame/books/examination.xml
Normal file
@@ -0,0 +1,57 @@
|
||||
<btex def="examination">
|
||||
<blocklut>
|
||||
<pair key="0" value="basegame:0" />
|
||||
<pair key="1" value="basegame:32" />
|
||||
</blocklut>
|
||||
|
||||
<manuscript>
|
||||
<section>Introduction</section>
|
||||
|
||||
<tiles w="5" h="4">
|
||||
<terr>
|
||||
0,1,1,1,0,
|
||||
1,0,0,0,1,
|
||||
1,0,0,0,1,
|
||||
0,1,1,1,0
|
||||
</terr>
|
||||
<wall>
|
||||
0,1,1,1,0,
|
||||
1,1,1,1,1,
|
||||
1,1,1,1,1,
|
||||
0,1,1,1,0
|
||||
</wall>
|
||||
</tiles>
|
||||
|
||||
<p>This is the first page of the Examination.</p>
|
||||
|
||||
<p>Examination is a way to instruct the player certain gameplay concepts.</p>
|
||||
|
||||
<p>The system is popularised by the Minecraft Mod called “Create”, of which it was called Pondering.</p>
|
||||
|
||||
<p>Terrarum borrows the concept and implements it using its own language.</p>
|
||||
|
||||
<section>Language</section>
|
||||
|
||||
<tiles w="5" h="4">
|
||||
<terr>
|
||||
0,1,1,1,0,
|
||||
1,0,1,0,1,
|
||||
1,0,1,0,1,
|
||||
0,1,1,1,0
|
||||
</terr>
|
||||
<wall>
|
||||
0,1,1,1,0,
|
||||
1,1,1,1,1,
|
||||
1,1,1,1,1,
|
||||
0,1,1,1,0
|
||||
</wall>
|
||||
</tiles>
|
||||
|
||||
<p>Examination relies on the script written in <BTeX />.</p>
|
||||
|
||||
<p><BTeX /> is a XML-like markup language to write texts to be displayed onto the game, one example being a book.</p>
|
||||
|
||||
<p>Examination is a special format of the “book” that operates on the same book system.</p>
|
||||
|
||||
</manuscript>
|
||||
</btex>
|
||||
Reference in New Issue
Block a user