Start of converting to DocBook

Converting to DocBook hopefully will give one format that can be used
This commit is contained in:
Jigme Datse Yli-Rasku 2023-10-20 21:27:11 -07:00
parent aaa6bb4311
commit 4348c6fccb
23 changed files with 768 additions and 0 deletions

22
Current/.tex Normal file
View File

@ -0,0 +1,22 @@
\FOT{3}\Seq%
{\def\PageNumberFormat%
{1}\def\PageNumberRestart%
{0}\def\PageTwoSide%
{0}\def\TwoSideStartOnRight%
{0}\def\PageNColumns%
{1}\def\PageColumnSep%
{36\p@}\def\PageBalanceColumns%
{0}\def\WritingMode%
{lefttoright}\def\InputWhitespaceTreatment%
{collapse}\def\LeftMargin%
{72\p@}\def\RightMargin%
{72\p@}\def\PageWidth%
{612\p@}\def\PageHeight%
{792\p@}\def\MinLeading%
{2\p@}\def\MinLeadingFactor%
{0}\def\TopMargin%
{72\p@}\def\BottomMargin%
{96\p@}\def\HeaderMargin%
{48\p@}\def\FooterMargin%
{48\p@}}\Node%
{}\endNode{}\endSeq{}\endFOT{}

BIN
Current/Book-xelatex.pdf Normal file

Binary file not shown.

0
Current/Book.cb Normal file
View File

0
Current/Book.cb2 Normal file
View File

0
Current/Book.glo Normal file
View File

0
Current/Book.idx Normal file
View File

BIN
Current/Book.pdf Normal file

Binary file not shown.

1
Current/CMakeLists.txt Normal file
View File

@ -0,0 +1 @@
cmake_minimum_required(3.10)

View File

@ -0,0 +1,4 @@
<appendix>
<title>Apppendix — Appendix</title>
<para>This is the first paragraph</para>
</appendix>

View File

@ -0,0 +1,4 @@
<appendix>
<title>Appendix — Chararacters</title>
<para>This is the first paragraph</para>
</appendix>

View File

@ -0,0 +1,4 @@
<appendix>
<title>Appendix — Introduction</title>
<para>This is the first paragraph</para>
</appendix>

221
Current/DocBook/book.tex Normal file
View File

@ -0,0 +1,221 @@
\FOT{3}\Seq%
{\def\PageNumberFormat%
{1}\def\PageNumberRestart%
{0}\def\PageTwoSide%
{0}\def\TwoSideStartOnRight%
{0}\def\PageNColumns%
{1}\def\PageColumnSep%
{36\p@}\def\PageBalanceColumns%
{0}\def\WritingMode%
{lefttoright}\def\InputWhitespaceTreatment%
{collapse}\def\LeftMargin%
{72\p@}\def\RightMargin%
{72\p@}\def\PageWidth%
{612\p@}\def\PageHeight%
{792\p@}\def\MinLeading%
{2\p@}\def\MinLeadingFactor%
{0}\def\TopMargin%
{72\p@}\def\BottomMargin%
{96\p@}\def\HeaderMargin%
{48\p@}\def\FooterMargin%
{48\p@}}\Node%
{}\Node%
{\def\Element%
{0}}\Seq%
{}\SpS%
{\def\PageNColumns%
{1}\def\InputWhitespaceTreatment%
{collapse}\def\fSize%
{10\p@}\def\fWeight%
{medium}\def\fPosture%
{upright}\def\fFamName{Times-New-Roman}\def\LineSpacing%
{13\p@}\def\LineSpacingFactor%
{0}}
\SpSOtherBackLeftFooter%
{}
\SpSOtherBackLeftHeader%
{}
\SpSOtherBackCenterFooter%
{}
\SpSOtherBackCenterHeader%
{}
\SpSOtherBackRightFooter%
{}
\SpSOtherBackRightHeader%
{}
\SpSFirstBackLeftFooter%
{}
\SpSFirstBackLeftHeader%
{}
\SpSFirstBackCenterFooter%
{}
\SpSFirstBackCenterHeader%
{}
\SpSFirstBackRightFooter%
{}
\SpSFirstBackRightHeader%
{}
\SpSOtherFrontLeftFooter%
{}
\SpSOtherFrontLeftHeader%
{}
\SpSOtherFrontCenterFooter%
{}
\SpSOtherFrontCenterHeader%
{}
\SpSOtherFrontRightFooter%
{}
\SpSOtherFrontRightHeader%
{}
\SpSFirstFrontLeftFooter%
{}
\SpSFirstFrontLeftHeader%
{}
\SpSFirstFrontCenterFooter%
{}
\SpSFirstFrontCenterHeader%
{}
\SpSFirstFrontRightFooter%
{}
\SpSFirstFrontRightHeader%
{}\Seq%
{}\Par%
{\def\LineSpacing%
{1\p@}\def\LineSpacingFactor%
{0}}\endPar{}\Seq%
{}\Node%
{\def\Element%
{1}\def\ProcessingMode%
{book-titlepage-recto-mode}}\HeadPar%
{\def\fSize%
{24.883\p@}\def\LineSpacing%
{32.348\p@}\def\LineSpacingFactor%
{0}\def\Quadding%
{center}\def\HeadingLevel%
{1}\def\fFamName{Arial}\def\fWeight%
{bold}\def\sbNom%
{18.662\p@}\def\sbMin%
{18.662\p@}\def\sbMax%
{18.662\p@}\def\sbConditional%
{1}\def\KeepWithNext%
{1}}7th Sea Resources\def\HeadingText{%
7th Sea Resources}%
\endHeadPar{}\endNode{}\endSeq{}\endSeq{}\DisplayGroup%
{\def\BreakBefore%
{page}}\Seq%
{}\Par%
{\def\LineSpacing%
{1\p@}\def\LineSpacingFactor%
{0}}\endPar{}\Seq%
{}\Node%
{\def\Element%
{1}\def\ProcessingMode%
{book-titlepage-verso-mode}}\Seq%
{\def\fFamName{Arial}\def\fWeight%
{bold}}7th Sea Resources\endSeq{}\endNode{}\endSeq{}\endSeq{}\endDisplayGroup{}\endSpS{}\SpS%
{\def\PageNColumns%
{1}\def\PageNumberFormat%
{i}\def\InputWhitespaceTreatment%
{collapse}\def\fSize%
{10\p@}\def\fWeight%
{medium}\def\fPosture%
{upright}\def\fFamName{Times-New-Roman}\def\LineSpacing%
{13\p@}\def\LineSpacingFactor%
{0}}
\SpSOtherBackLeftFooter%
{}
\SpSOtherBackLeftHeader%
{}
\SpSOtherBackCenterFooter%
{}
\SpSOtherBackCenterHeader%
{}
\SpSOtherBackRightFooter%
{\Seq%
{\def\fPosture%
{italic}}\insertPageNumber%
{}\endSeq{}}
\SpSOtherBackRightHeader%
{}
\SpSFirstBackLeftFooter%
{}
\SpSFirstBackLeftHeader%
{}
\SpSFirstBackCenterFooter%
{}
\SpSFirstBackCenterHeader%
{}
\SpSFirstBackRightFooter%
{\Seq%
{\def\fPosture%
{italic}}\insertPageNumber%
{}\endSeq{}}
\SpSFirstBackRightHeader%
{}
\SpSOtherFrontLeftFooter%
{}
\SpSOtherFrontLeftHeader%
{}
\SpSOtherFrontCenterFooter%
{}
\SpSOtherFrontCenterHeader%
{}
\SpSOtherFrontRightFooter%
{\Seq%
{\def\fPosture%
{italic}}\insertPageNumber%
{}\endSeq{}}
\SpSOtherFrontRightHeader%
{}
\SpSFirstFrontLeftFooter%
{}
\SpSFirstFrontLeftHeader%
{}
\SpSFirstFrontCenterFooter%
{}
\SpSFirstFrontCenterHeader%
{}
\SpSFirstFrontRightFooter%
{\Seq%
{\def\fPosture%
{italic}}\insertPageNumber%
{}\endSeq{}}
\SpSFirstFrontRightHeader%
{}\endSpS{}\Node%
{\def\Element%
{1}}\endNode{}
\Node%
{\def\Element%
{2}}\Seq%
{\def\ColorRed%
{255}\def\ColorGreen%
{0}\def\ColorBlue%
{0}}include href="intro.xml" />\/
\Node%
{\def\Element%
{3}}\Seq%
{\def\ColorRed%
{255}\def\ColorGreen%
{0}\def\ColorBlue%
{0}}include href="chars.xml" />\/
\Node%
{\def\Element%
{4}}\Seq%
{\def\ColorRed%
{255}\def\ColorGreen%
{0}\def\ColorBlue%
{0}}include href="append-\/intro.xml" />\/
\Node%
{\def\Element%
{5}}\Seq%
{\def\ColorRed%
{255}\def\ColorGreen%
{0}\def\ColorBlue%
{0}}include href="append-\/chars.xml" />\/
\Node%
{\def\Element%
{6}}\Seq%
{\def\ColorRed%
{255}\def\ColorGreen%
{0}\def\ColorBlue%
{0}}include href="append-\/append.xml" />\/\endSeq{}\endNode{}\endSeq{}\endNode{}\endSeq{}\endNode{}\endSeq{}\endNode{}\endSeq{}\endNode{}\endSeq{}\endNode{}\endNode{}\endSeq{}\endFOT{}

12
Current/DocBook/book.xml Normal file
View File

@ -0,0 +1,12 @@
<?xml version='1.0' ?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V5.0/EN" "http://www.oasis-open.org/docbook/xml/5.0b5/dtd/docbook.dtd">
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
<title>7th Sea Resources</title>
<xi:include href="intro.xml" />
<xi:include href="chars.xml" />
<xi:include href="append-intro.xml" />
<xi:include href="append-chars.xml" />
<xi:include href="append-append.xml" />
</book>

View File

@ -0,0 +1,4 @@
<chapter>
<title>Characters</title>
<para>This is the first paragraph</para>
</chapter>

View File

@ -0,0 +1,86 @@
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="introduction">
<title>Introduction</title>
<para>
This book is made based on the
<emphasis>7<superscript><emphasis>t</emphasis><emphasis>h</emphasis></superscript>
Sea Core Rulebook:
2<superscript><emphasis>n</emphasis><emphasis>d</emphasis></superscript>
Edition</emphasis>, and is mainly meant as something for putting
content that I am wanting to run together.
</para>
<para>
That said, this may become something that parts or the entirety of
it will get in the hands of my players, or people who find it some
other way. I may at some point decide to publish it.
</para>
<para>
As I am writing this very brief introduction I have something
written about Characters, specifically the start of a single
Character. I dont really know where it will go beyond that.
</para>
<para>
2
</para>
<section xml:id="characters">
<title>Characters</title>
<para>
This is where the characters I create will go. Some of these may
be characters which Im creating for myself, and some may have
been just created for fun, and some might even be created for a
specific player.
</para>
<section xml:id="träge">
<title>???? Träge</title>
<para>
This is the first character I am creating, and as of now it has
a good amount about actually creating the character in the
sections labeled &quot;Step ...&quot;
</para>
<para>
There is also room for additional notes.
</para>
</section>
<section xml:id="references">
<title>References</title>
<para>
This contains some information which may (not yet), apply to
multiple characters. It also might be something which ends up
getting referred to in multiple places for a single character.
</para>
</section>
</section>
<section xml:id="appendix">
<title>Appendix</title>
<para>
This is where my notes about the process of this goes, as well as
possibly some stuff which might make it easier to find your (my)
way through this. Each chapter will have a separate appendix, in
part just for making it easier to edit.
</para>
<para>
This also is including stuff about the whole process of making the
book itself.
</para>
<section xml:id="introduction-notes">
<title>Introduction — Notes</title>
<para>
This is content about what Ive put in the introduction section
(the one youre reading).
</para>
</section>
<section xml:id="characters-notes">
<title>Characters — Notes</title>
<para>
This is notes on the character section. Its more of the
technical stuff than what would go here.
</para>
</section>
<section xml:id="appendix-notes">
<title>Appendix — Notes</title>
<para>
This is notes more about the whole overall process, and stuff
that has gone on with the appendix itself.
</para>
</section>
</section>
</section>

View File

@ -0,0 +1,4 @@
<chapter>
<title>Introduction</title>
<para>This is the first paragraph</para>
</chapter>

173
Current/HTML/Book.html Normal file
View File

@ -0,0 +1,173 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>7th Sea Resources</title>
<style>
html {
line-height: 1.5;
font-family: Georgia, serif;
font-size: 20px;
color: #1a1a1a;
background-color: #fdfdfd;
}
body {
margin: 0 auto;
max-width: 36em;
padding-left: 50px;
padding-right: 50px;
padding-top: 50px;
padding-bottom: 50px;
hyphens: auto;
overflow-wrap: break-word;
text-rendering: optimizeLegibility;
font-kerning: normal;
}
@media (max-width: 600px) {
body {
font-size: 0.9em;
padding: 1em;
}
h1 {
font-size: 1.8em;
}
}
@media print {
body {
background-color: transparent;
color: black;
font-size: 12pt;
}
p, h2, h3 {
orphans: 3;
widows: 3;
}
h2, h3, h4 {
page-break-after: avoid;
}
}
p {
margin: 1em 0;
}
a {
color: #1a1a1a;
}
a:visited {
color: #1a1a1a;
}
img {
max-width: 100%;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 1.4em;
}
h5, h6 {
font-size: 1em;
font-style: italic;
}
h6 {
font-weight: normal;
}
ol, ul {
padding-left: 1.7em;
margin-top: 1em;
}
li > ol, li > ul {
margin-top: 0;
}
blockquote {
margin: 1em 0 1em 1.7em;
padding-left: 1em;
border-left: 2px solid #e6e6e6;
color: #606060;
}
code {
font-family: Menlo, Monaco, 'Lucida Console', Consolas, monospace;
font-size: 85%;
margin: 0;
}
pre {
margin: 1em 0;
overflow: auto;
}
pre code {
padding: 0;
overflow: visible;
overflow-wrap: normal;
}
.sourceCode {
background-color: transparent;
overflow: visible;
}
hr {
background-color: #1a1a1a;
border: none;
height: 1px;
margin: 1em 0;
}
table {
margin: 1em 0;
border-collapse: collapse;
width: 100%;
overflow-x: auto;
display: block;
font-variant-numeric: lining-nums tabular-nums;
}
table caption {
margin-bottom: 0.75em;
}
tbody {
margin-top: 0.5em;
border-top: 1px solid #1a1a1a;
border-bottom: 1px solid #1a1a1a;
}
th {
border-top: 1px solid #1a1a1a;
padding: 0.25em 0.5em 0.25em 0.5em;
}
td {
padding: 0.125em 0.5em 0.25em 0.5em;
}
header {
margin-bottom: 4em;
text-align: center;
}
#TOC li {
list-style: none;
}
#TOC ul {
padding-left: 1.3em;
}
#TOC > ul {
padding-left: 0;
}
#TOC a:not(:hover) {
text-decoration: none;
}
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<header id="title-block-header">
<h1 class="title">7th Sea Resources</h1>
</header>
<h1>Introduction</h1>
<p>This is the first paragraph</p>
<h1>Introduction</h1>
<p>This is the first paragraph</p>
<p>This is just in the book file.</p>
<h1>Introduction</h1>
<p>This is the first paragraph</p>
</body>
</html>

88
Current/LaTeX/Book.tex Normal file
View File

@ -0,0 +1,88 @@
% -----------------------------------------
% Autogenerated LaTeX file from XML DocBook
% -----------------------------------------
%%<params>
%% document.language en
%%</params>
\documentclass{report}
\IfFileExists{ifxetex.sty}{%
\usepackage{ifxetex}%
}{%
\newif\ifxetex
\xetexfalse
}
\ifxetex
\usepackage{fontspec}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{DejaVu Serif}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
\else
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\fi
\usepackage{fancybox}
\usepackage{makeidx}
\usepackage[hyperlink]{docbook}
\renewcommand{\DBKreleaseinfo}{}
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}
\title{7th Sea Resources}
\author{}
\hypersetup{%
pdfcreator={DBLaTeX-0.3.12},%
pdftitle={7th Sea Resources},%
pdfauthor={}}
% ------------------
% Collaborators
% ------------------
\renewcommand{\DBKindexation}{
\begin{DBKindtable}
\DBKinditem{\writtenby}{}
\end{DBKindtable}
}
\makeindex
\makeglossary
\begin{document}
\lstsetup
\frontmatter
\maketitle
\tableofcontents
\mainmatter
% -------
% Chapter
% -------
\chapter{Introduction}
This is the first paragraph
% -------
% Chapter
% -------
\chapter{Characters}
This is the first paragraph
% ---------------------
% Appendixes start here
% ---------------------
\begin{appendices}
\chapter{Appendix \textemdash{} Introduction}
This is the first paragraph
\chapter{Appendix \textemdash{} Chararacters}
This is the first paragraph
\chapter{Apppendix \textemdash{} Appendix}
This is the first paragraph
\end{appendices}
\end{document}

25
Current/Makefile Normal file
View File

@ -0,0 +1,25 @@
clean:
rm *.dvi
rm *.log
rm out.xml
echo "Nothing to clean"
out.xml: DocBook/book.xml DocBook/intro.xml DocBook/chars.xml DocBook/append-intro.xml DocBook/append-chars.xml DocBook/append-append.xml
xmllint --xinclude DocBook/book.xml --output out.xml
LaTeX/Book.tex: out.xml
dblatex -ttex out.xml -o LaTeX/Book.tex
HTML/Book.html: out.xml
pandoc -s -f docbook out.xml -o HTML/Book.html
Book.dvi: LaTeX/Book.tex
latex LaTeX/Book.tex
latex LaTeX/Book.tex
Book.pdf: Book.dvi
dvipdf.sh Book
Book-xelatex.pdf: out.xml
pandoc -s -f docbook out.xml --pdf-engine=xelatex -o Book-xelatex.pdf

BIN
Current/out.pdf Normal file

Binary file not shown.

94
Current/out.tex Normal file
View File

@ -0,0 +1,94 @@
% -----------------------------------------
% Autogenerated LaTeX file from XML DocBook
% -----------------------------------------
%%<params>
%% document.language en
%%</params>
\documentclass{report}
\IfFileExists{ifxetex.sty}{%
\usepackage{ifxetex}%
}{%
\newif\ifxetex
\xetexfalse
}
\ifxetex
\usepackage{fontspec}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{DejaVu Serif}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
\else
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\fi
\usepackage{fancybox}
\usepackage{makeidx}
\usepackage[hyperlink]{docbook}
\renewcommand{\DBKreleaseinfo}{}
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}
\title{7th Sea Resources}
\author{}
\hypersetup{%
pdfcreator={DBLaTeX-0.3.12},%
pdftitle={7th Sea Resources},%
pdfauthor={}}
% ------------------
% Collaborators
% ------------------
\renewcommand{\DBKindexation}{
\begin{DBKindtable}
\DBKinditem{\writtenby}{}
\end{DBKindtable}
}
\makeindex
\makeglossary
\begin{document}
\lstsetup
\frontmatter
\maketitle
\tableofcontents
\mainmatter
% -------
% Chapter
% -------
\chapter{Introduction}
This is the first paragraph
% -------
% Chapter
% -------
\chapter{Characters}
This is the first paragraph
% -------
% Chapter
% -------
\chapter{Appendix \textemdash{} Introduction}
This is the first paragraph
% -------
% Chapter
% -------
\chapter{Appendix \textemdash{} Chararacters}
This is the first paragraph
% -------
% Chapter
% -------
\chapter{Apppendix \textemdash{} Appendix}
This is the first paragraph
\end{document}

25
Current/out.xml Normal file
View File

@ -0,0 +1,25 @@
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V5.0/EN" "http://www.oasis-open.org/docbook/xml/5.0b5/dtd/docbook.dtd">
<book xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
<title>7th Sea Resources</title>
<chapter>
<title>Introduction</title>
<para>This is the first paragraph</para>
</chapter>
<chapter>
<title>Characters</title>
<para>This is the first paragraph</para>
</chapter>
<appendix>
<title>Appendix &#x2014; Introduction</title>
<para>This is the first paragraph</para>
</appendix>
<appendix>
<title>Appendix &#x2014; Chararacters</title>
<para>This is the first paragraph</para>
</appendix>
<appendix>
<title>Apppendix &#x2014; Appendix</title>
<para>This is the first paragraph</para>
</appendix>
</book>

1
journal/2023-10-20.md Normal file
View File

@ -0,0 +1 @@
book