Compare commits

...

4 Commits

Author SHA1 Message Date
Jigme Datse Yli-Rasku d923c3349c DocBook Format Trial
This is a trial of the Docbook Format.  And it didn't end up working
out.  This is fine.
2023-10-20 22:34:47 -07:00
Jigme Datse Yli-Rasku eb1342b239 Moving Back to previous verions...
This is moving back to the previous formatting the DocBook doesn't make
sense.  At least not now.
2023-10-20 22:31:54 -07:00
Jigme Datse Yli-Rasku 4348c6fccb Start of converting to DocBook
Converting to DocBook hopefully will give one format that can be used
2023-10-20 21:27:11 -07:00
Jigme Datse Yli-Rasku aaa6bb4311 Just some playing wht the `\LaTeX` script.
Or whatever.
2023-10-08 17:14:06 -07:00
24 changed files with 4937 additions and 4 deletions

View File

@ -4,9 +4,11 @@
\usepackage{enumitem} \usepackage{enumitem}
\usepackage{multicol} \usepackage{multicol}
\AddToHook{shipout/background}[background]{% %% This is the background image, it's disabled until production though
\put (0in,-\paperheight){\includegraphics[width=\paperwidth,height=\paperheight]{img/paper}} %% maybe there's a way to make it so it can be just a switch.
} %\AddToHook{shipout/background}[background]{%
% \put (0in,-\paperheight){\includegraphics[width=\paperwidth,height=\paperheight]{img/paper}}
%}
\def\botrule{\vskip3pt\hrule} \def\botrule{\vskip3pt\hrule}

View File

@ -58,3 +58,35 @@ Most of what I have done in terms of this has been to just finish with
notes on the changes for the day in the other sections of the appendix. notes on the changes for the day in the other sections of the appendix.
I know that I have some notes here that should be dealt with better. I know that I have some notes here that should be dealt with better.
I'll get to them. I promise... I'll get to them. I promise...
\section{2023 October 7}
Mostly not doing much of anything today, but I decided to throw here a little playing with the \LaTeX and a more "authentic" version...
\LaTeX
\def\newlatex{$\Lambda\kern-0.1667em\raise.5ex\hbox{$\alpha$}\kern -.0625em\raise.5ex\hbox{$T\kern -.25em\lower.5ex\hbox{$\epsilon$}\kern -.125em \chi$}$}
\newlatex
These are just silly playing, but I feel they are worth keeping here for now.
\section{2023 October 20}
I haven't worked on this much for a while. There is a bit of a major change in what I'm doing here. I decided that I wanted to have more flexibility in my output formats (someone mentioned markdown as a format for print documents using Pandoc), so I have converted the previous version to DocBook, which I'm currently able to create a LaTeX file, which I can create a
PDF from.
This is an improvement in many ways, as I hope that will make converting it to something like an epub or html document easier. Though I'm not convinced of that yet.
In some ways it is a lot worse though. The PDF currently being produced is much worse. Working in DocBook, is harder than working in LaTeX. A lot of the formatting that was for LaTeX is lost, and may be a huge pain to restore in the end.
While some of the formatting I did have was just not working, or not working well. I had something that I could "work with." This so far, is a step backwards, for reasons that don't entirely make sense to me.
Well, not entirely make sense to me, as in I don't see that this will end up being a better option in the end.
So, I feel what I'm going to probably aim to do, is copy this change here, back to the LaTeX version. If I'm going to do other versions, do the conversion based on that. The current LaTeX version is actually preferable. That is a worthwhile thing to have figured out.
Also, I think having a working workflow to the point I currently have it, is also worthwhile, as it is certainly going to make things easier to handle when (and if), I decided to produce a different format than the LaTeX PDF/Print version.

Binary file not shown.

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,135 @@
<appendix>
<title>Appendix — Notes</title>
<section xml:id="october-6">
<title>2023 October 6</title>
<para>
Created the Appendix it includes:
</para>
<itemizedlist>
<listitem>
<para>
Introduction — Notes
</para>
</listitem>
<listitem>
<para>
Characters — Notes
</para>
</listitem>
<listitem>
<para>
Appendix — Notes
</para>
</listitem>
</itemizedlist>
<para>
It probably will have an index at some point, but currently we
dont have a way that we want to note things in the index, or even
much of an idea of how to we would even index things.
</para>
<para>
I feel that Ill for now put some technical stuff about the whole
thing in this index.
</para>
<section xml:id="arrangement-of-chapters">
<title>Arrangement of Chapters</title>
<para>
Currently we have Introduction and Characters, then the Appendix
in the same order. But that might not continue as such. Moving
stuff around probably will need to be noted here.
</para>
<para>
As it currently stands the &quot;Hero&quot; or Character chapter
is really hard to find stuff in the file as its 500 lines long,
and it just takes a while to scroll through it.
</para>
</section>
<section xml:id="line-lengths">
<title>Line lengths</title>
<para>
Also, these long lines... Or what are paragraphs as a single
line in the file, need to go as I come across them. It would be
nice if it actually did it automatically. As this file currently
is, it is 23 lines long, but it has multiple longer paragraphs
formatted that way.
</para>
<para>
After adding new lines, I end up with …35 lines. Thats a more
realistic way to look at it. Also, it can help with finding
where more specific errors are, as the long lines will be more
listed as a single line, but the shorter lines can be each
listed.
</para>
<para>
The problem Ive run into is reformatting when I end up changing
a line in the middle of a paragraph. All of that can be handled
on an as needed basis though.
</para>
</section>
<section xml:id="makefile">
<title>Makefile</title>
<para>
This isnt so much the book itself, but it is kind of important.
I have a Makefile created which hopefully allows the creation of
the book at least for display purposes. I
<emphasis>think</emphasis> the reason that the table of contents
wasnt correct, is because it needs to run through twice, or at
least it <emphasis>might</emphasis> need to run through twice,
to have the updates in the table of contents (and index I
think).
</para>
</section>
<section xml:id="closing-thoughts">
<title>Closing Thoughts</title>
<para>
Most of what I have done in terms of this has been to just
finish with notes on the changes for the day in the other
sections of the appendix. I know that I have some notes here
that should be dealt with better. Ill get to them. I promise...
</para>
</section>
</section>
<section xml:id="october-7">
<title>2023 October 7</title>
<para>
Mostly not doing much of anything today, but I decided to throw
here a little playing with the LaTeXand a more
&quot;authentic&quot; version...
</para>
<para>
LaTeX
</para>
<para>
$\Lambda\kern-0.1667em\raise.5ex\hbox{$\alpha$}\kern -.0625em\raise.5ex\hbox{$T\kern -.25em\lower.5ex\hbox{$\epsilon$}\kern -.125em \chi$}$
</para>
<para>
These are just silly playing, but I feel they are worth keeping
here for now.
</para>
</section>
<section>
<title>2023 October 20</title>
<para>
I haven't worked on this much for a while. There is a bit of a major change in what I'm doing here. I decided that I wanted to have more flexibility in my output formats (someone mentioned markdown as a format for print documents using Pandoc), so I have converted the previous version to DocBook, which I'm currently able to create a LaTeX file, which I can create a
PDF from.
</para>
<para>
This is an improvement in many ways, as I hope that will make converting it to something like an epub or html document easier. Though I'm not convinced of that yet.
</para>
<para>
In some ways it is a lot worse though. The PDF currently being produced is much worse. Working in DocBook, is harder than working in LaTeX. A lot of the formatting that was for LaTeX is lost, and may be a huge pain to restore in the end.
</para>
<para>
While some of the formatting I did have was just not working, or not working well. I had something that I could "work with." This so far, is a step backwards, for reasons that don't entirely make sense to me.
</para>
<para>
Well, not entirely make sense to me, as in I don't see that this will end up being a better option in the end.
</para>
<para>
So, I feel what I'm going to probably aim to do, is copy this change here, back to the LaTeX version. If I'm going to do other versions, do the conversion based on that. The current LaTeX version is actually preferable. That is a worthwhile thing to have figured out.
</para>
<para>
Also, I think having a working workflow to the point I currently have it, is also worthwhile, as it is certainly going to make things easier to handle when (and if), I decided to produce a different format than the LaTeX PDF/Print version.
</para>
</section>
</appendix>

View File

@ -0,0 +1,38 @@
<appendix>
<title>Characters — Notes</title>
<section xml:id="section">
<title>2023-10-06</title>
<para>
Created This…Already had a good portion of the chapter written.
</para>
<para>
The first character was getting close to having been created, and
that was working well, but I cant work on it further at this
time, but wanted to put some info here to make the whole document
work a little better.
</para>
<para>
At this point I need to do more away from the computer to get an
idea of the next steps for the character creation. It looks to be
at the Step 4. Skills section.
</para>
<section xml:id="further-work">
<title>Further Work</title>
<para>
A lot of what has been done is moving toward better formatting.
I took a break because I wanted to take a look away from the
computer at the Step 5. Advantages part of character creation.
</para>
<para>
I did move beyond that, but its not reflected here yet. I also
want to have the character sheet info, and the character
building info.
</para>
<para>
Just did some minor changes to make it less a massive wall of
Character Sheet, followed by Character Creation, followed by
Character Notes. Those are different sections now.
</para>
</section>
</section>
</appendix>

View File

@ -0,0 +1,17 @@
<appendix>
<title>Introduction — Notes</title>
<section xml:id="section">
<title>2023-10-06</title>
<para>
Created the Introduction chapter. This was already starting to
look like I was going to need an introduction before too long, so
there is a brief introduction and some about each of the parts
that we have there.
</para>
<para>
It will likely need to be expanded and made more a way to get a
fairly quick idea as to where something might be. All of this will
take time.
</para>
</section>
</appendix>

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>

1263
Current/DocBook/chars.xml Normal file

File diff suppressed because it is too large Load Diff

82
Current/DocBook/intro.xml Normal file
View File

@ -0,0 +1,82 @@
<chapter>
<title>Introduction</title>
<para>
This book is made based on the
<emphasis>7<superscript>th</superscript> Sea Core Rulebook:
2<superscript>nd</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>
<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>
</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>

1496
Current/LaTeX/Book.tex Normal file

File diff suppressed because it is too large Load Diff

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}

1540
Current/out.xml Normal file

File diff suppressed because it is too large Load Diff

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

@ -0,0 +1 @@
book