fix: updating build system

This commit is contained in:
D. Moonfire 2022-10-14 20:37:04 -05:00
parent 4bd6edd332
commit 5945165e61
48 changed files with 167 additions and 210 deletions

View File

@ -1,11 +0,0 @@
---
title: About D. Moonfire
---
D. Moonfire is the remarkable intersection of a computer nerd and a scientist. He inherited a desire for learning, endless curiosity, and a talent for being a polymath from both of his parents. Instead of focusing on a single genre, he writes stories and novels in many different settings ranging from fantasy to science fiction. He also throws in the occasional romance or forensics murder mystery to mix things up.
In addition to having a borderline unhealthy obsession with the written word, he is also a developer who loves to code as much as he loves writing.
He lives near Cedar Rapids, Iowa with his wife, numerous pet computers, and a pair of highly mobile things of the male variety.
You can see more work by D. Moonfire at his website at [https://d.moonfire.us/](https://d.moonfire.us/). His fantasy world, Fedran, can be found at [https://fedran.com/](https://fedran.com/).

View File

@ -1,11 +0,0 @@
---
title: Colophon
---
Each chapter of this book was written and edited using Emacs, Atom, and LibreOffice. The files for the novel were managed in a Git repository on a private GitLab instance. Each chapter was an individual file formatted using Markdown. Information and working notes about the chapters were placed into a YAML header at the top of each chapter.
These individual chapters were combined together using a cobbled-together collection of Perl, Python, and Javascript tools that transform the results into XeLaTeX (PDF and print version), EPUB, MOBI, or Microsoft Word.
The cover was created using Inkscape. The color scheme uses eight colors of a monochromatic scale. These colors are shared among all of the Rutejìmo novels. Likewise, the "0100-00" along the spine indicates this is the first published book ("00") with Rutejìmo as the main character ("0100").
The font used on the cover and interior is Corda in various weights and styles.

View File

@ -1,35 +0,0 @@
---
title: Credits
---
I used to do acknowledgements but then I realized there were a lot of people who went into helping me write this book, more than would comfortably fit in a few paragraphs. At the same time, I felt the need to thank them because without their help, this book would remain only in my imagination.
### Alpha Readers
If it wasn't for the Noble Pen writing group, I would have never gotten that far.
* Bill H.
* Ciuin F.
* Mark H.
* Nick T.
* Tyree C.
* Laura W.
### Beta Readers
* Chandrakumar M.
* Kenneth E.
* Marta B.
* Mike K.
### Editors
* Blurb Bitch
* Ronda Swolley
* JoSelle Vanderhooft
### Family
* Susan
* Eli
* Bruce

View File

@ -1,13 +0,0 @@
---
title: Fedran
---
Fedran is a world caught on the cusp of two great ages.
For centuries, the Crystal Age shaped society through the exploration of magic. Every creature had the ability to affect the world using talents and spells. The only limitation was imagination, will, and the inescapable rules of resonance. But as society grew more civilized, magic became less reliable and weaker.
When an unexpected epiphany seemingly breaks the laws of resonance, everything changed. Artifacts no longer exploded when exposed to spells, but only if they were wrapped in cocoons of steel and brass. The humble fire rune becomes the fuel for new devices, ones powered by steam and pressure. These machines herald the birth of a new age, the Industrial Age.
Now, the powers of the old age struggle against the onslaught of new technologies and an alien way of approaching magic. Either the world will adapt or it will be washed away in the relentless march of innovation.
To explore the world of Fedran, check out [https://fedran.com/](https://fedran.com/). There you'll find stories, novels, character write-ups and more.

View File

@ -1,32 +0,0 @@
---
title: License
---
This book is distributed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license. More info can be found at [https://creativecommons.org/licenses/by-nc-sa/4.0/](https://creativecommons.org/licenses/by-nc-sa/4.0/). This means:
### You are free to:
* Share — copy and redistribute the material in any medium or format
* Adapt — remix, transform, and build upon the material
The licensor cannot revoke these freedoms as long as you follow the license terms.
### Under the following terms:
* Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
* NonCommercial — You may not use the material for commercial purposes.
* ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
### Preferred Attribution
The preferred attribution for this novel is:
> "Sand and Blood" by D. Moonfire is licensed under CC BY-NC-SA 4.0
In the above attribution, use the following links:
* Sand and Blood: [https://fedran.com/sand-and-blood/](https://fedran.com/sand-and-blood/)
* D. Moonfire: [https://d.moonfire.us/](https://d.moonfire.us/)
* CC BY-NC-SA 4.0: [https://creativecommons.org/licenses/by-nc-sa/4.0/](https://creativecommons.org/licenses/by-nc-sa/4.0/)

View File

@ -1,15 +0,0 @@
---
title: Patrons
---
This book is freely available on the Fedran website at [https://fedran.com/sand-and-blood/](https://fedran.com/sand-and-blood/). It can be reformatted for any device, shared, and even reposted on other websites (with attribution and a link to the original). If someone wants to write a fanfic or create art inspired by the book, they are allowed to do so with relatively few limitations, which are set down by the license described in the previous section.
It is hard to compete with "free" in this day and age. Releasing a book under a Creative Commons license is one way of doing that, but there are still costs associated with producing the results. There are hundreds of hours put into writing it, hiring editors to go through it, and even hosting it on a website. As economics will tell you, there is no such thing as a free lunch. Most of the time, you pay for a book before reading it. Sometimes you have a sample of a few chapters to give you a hint, other times just a blurb. Here, you get the entire piece. If you like it, please consider supporting my writing.
The cheapest way of helping is simply to talk about the book. Post opinions on social networks, write a review and put it up on Amazon or Goodreads, or give a copy to someone who might like it.
The second way of helping is to donate money. Even a dollar helps. There are quite a few ways of doing this: you can buy a print copy; the tip jar at Broken Typewriter Press ([https://broken.typewriter.press/dmoonfire/](https://broken.typewriter.press/dmoonfire/)); or even consider becoming a patron. Patronage provides advance access to works-in-progress, votes on new stories and titles, and input into the world and my writing. You can read more about patrons at [https://fedran.com/patrons/](https://fedran.com/patrons/).
I can only hope that if you like it, you'll help me write the next one.
Thank you.

View File

@ -22,9 +22,18 @@ characters:
organizations:
secondary:
- Shimusògo
topics:
concepts:
referenced:
- The Wait in the Valleys (Epigraph)
warnings:
primary:
- Bullying
- Violence
- Verbal Abuse
- Physical Assault
secondary:
- Named Character Death
- Unnamed Animal Death
purpose:
- Introduce Rutejìmo
- Introduce Hyonèku

View File

@ -15,13 +15,16 @@
"length": "Novel",
"title_slug": "sand-and-blood",
"identifier_slug": "0100-00-sand-and-blood",
"copyright_year": 2020,
"copyright_year": 2014,
"status": "Stable",
"genres": [
"Action",
"Drama"
],
"has_dedication": false,
"languages": {
"miwafu": true
},
"has_dedication": true,
"git": {
"http_url": "https://src.mfgames.com/fedran-sources/sand-and-blood.git",
"branch": "master"
@ -53,14 +56,57 @@
]
},
"warnings": {
"text": "This novel contains no scenes of sexual assault."
"text": "This novel contains scenes where the primary character and others experience bullying, physical assault, verbal abuse, and violence. There are also scenes where secondary characters experience named character death and unnamed animal death. There is no sexual assault.",
"primary": [
"Bullying",
"Violence",
"Verbal Abuse",
"Physical Assault"
],
"secondary": [
"Named Character Death",
"Unnamed Animal Death"
]
},
"credits": {
"alpha_readers": [
"Bill H.",
"Ciuin F.",
"Mark H.",
"Nick T.",
"Tyree C.",
"Laura W."
],
"beta_readers": [
"Chandrakumar M.",
"Kenneth E.",
"Marta B.",
"Mike K."
],
"editors": [
"Blurb Bitch",
"Ronda Swolley",
"JoSelle Vanderhooft"
]
},
"chapters": [
{
"title": "Rutejìmo",
"word_count": 1519,
"date": "2012-02-18",
"summary": "Rutejìmo was on top of the clan's shrine roof trying to sneak in and steal his grandfather's ashes. It was a teenage game, but also one to prove that he was capable of becoming an adult. He ended up falling off the roof.\nThe shrine guard, Hyonèku, caught him before he hurt himself. After a few humiliating comments, he gave Rutejìmo a choice: tell the clan elder or tell his grandmother. Neither choice was good, but Rutejìmo decided to tell his grandmother.\n"
"summary": "Rutejìmo was on top of the clan's shrine roof trying to sneak in and steal his grandfather's ashes. It was a teenage game, but also one to prove that he was capable of becoming an adult. He ended up falling off the roof.\nThe shrine guard, Hyonèku, caught him before he hurt himself. After a few humiliating comments, he gave Rutejìmo a choice: tell the clan elder or tell his grandmother. Neither choice was good, but Rutejìmo decided to tell his grandmother.\n",
"warnings": {
"primary": [
"Bullying",
"Violence",
"Verbal Abuse",
"Physical Assault"
],
"secondary": [
"Named Character Death",
"Unnamed Animal Death"
]
}
},
{
"title": "Confession",

View File

@ -1,13 +0,0 @@
---
title: Acknowledgments
---
Despite the popular image of writers working in dark-lit rooms hunched over a typewriter, it took more than a few people to get this book in your hands.
Firstly, I have to thank Susan. Without her patience and tolerance, I would never have gotten the courage to return to writing. Or to keep writing for over a decade.
To the Nobel Pen writers group, thank you for pushing me, suffering through endless revisions, and for listening to my grand schemes. And to the folks on Reddit who were just as helpful with the final steps. And to Shannon, Mike, Jo, Chandrakumar, and Marta who graciously read the entire piece and gave me feedback.
To Shannon, Allison, Dylan, and Melanie: If it wasn't for your kind words and encouragement, I wouldn't have kept chasing after you.
And finally to JoSelle and Ronda for editing, Dan for the cover illustration, and Matt for putting together the cover.

View File

@ -1,27 +0,0 @@
---
title: Legal
---
Copyright © 2014 D. Moonfire\
Some Rights Reserved\
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
Cover art by D. Moonfire
All characters, events, and locations are fictitious. Any resemblance to persons, past, present, and future is coincidental and highly unlikely.
Some themes that appear in this book: bullying, death of named characters, death of anonymous animals, graphical violence, and verbal abuse. There is sexual attraction but no explicit scenes. There is no rape.
Broken Typewriter Press\
5001 1st Ave SE\
Ste 105 #243\
Cedar Rapids, IA 52402
Broken Typewriter Press\
[https://broken.typewriter.press/](https://broken.typewriter.press/)
{% if edition.isbn %}
ISBN {{ edition.isbn }}
{% endif %}
Version {{ edition.version }}

View File

@ -1,4 +0,0 @@
word Mifuno
word Rutejìmo
word Rutejìmo's
word Shimusògo

View File

@ -1,21 +0,0 @@
---
title: Miwāfu
---
<p>This novel is set in the Mifuno Desert where the native language is Miwāfu. Names in this language are significantly different from English, so here is a short guide on pronunciation and usage.</p>
<p>The biggest difference is that every name is gendered, which is identified by the accent on the penultimate syllable. There are three types of accents:</p>
<ul>
<li><em>Grave</em> (as in hèru for stallion) is a tiny tick that goes down to the right. The grave accent indicates a masculine aspect, either in physical gender, size, or power. Names with grave accents either end in a lower pitch or the entire word is spoken in a lower tone.</li>
<li><em>Macron</em> (for example, hēru for colt) is a bar over the vowel. This is a neuter term, used for many gender-free words or expressions within the language. It is also used for mechanical devices, abstract concepts, and children—both human and beast. Macrons are spoken as a long vowel or drawing out the word just a beat longer than normal.</li>
<li><em>Acute</em> (héru for mare) is a tiny tick that goes to the upper right. The acute indicates feminine aspects of the word. It can represent control without power or precision. These words end on a high note or the entire word is spoken in a higher pitch.</li>
</ul>
<p>The only instances where accents arent used is adjectives or indication of ownership. So, if a valley is owned by the clan Shimusògo, it is known as Shimusogo Valley.</p>
<p>The names themselves are phonetic. A syllable is always from a consonant cluster to the vowel. For examples: Mi.wā.fu (IPA <span class="ipa">/mi.waː.ɸɯ̥/</span>), Shi.mu.sò.go (<span class="ipa">/ɕi.mɯ.ꜜso.ɡo/</span>), and De.sò.chu (<span class="ipa">/de.ꜜso.tɕɯ̥/</span>). The only exception is the letter “n” which is considered part of the syllable before it when not followed by a vowel. For example, ga.n.ré.ko (<span class="ipa">/ɡa.ŋꜛɾe.ko/</span>) and ka.né.ko (<span class="ipa">/ka.ꜛne.ko/</span>).</p>
<p>Miwāfu has no capital letters, they are added to satisfy English conventions.</p>

View File

@ -1,17 +0,0 @@
---
title: Title
---
<div class="title">
<div class="title-area">
<div class="large">Sand</div>
<div class="medium">and</div>
<div class="large">Blood</div>
</div>
<div class="author">D. Moonfire</div>
<div class="publisher">
Broken Typewriter Press &#8226; Cedar Rapids
</div>
</div>

21
matter/credits.md Normal file
View File

@ -0,0 +1,21 @@
---
title: Credits
---
## Alpha Readers
| ---------- | --------- | ----------
| Bill H. | Ciuin F. | Mark H. |
| Nick T. | Tyree C. | Laura W. |
## Editors
| ---------- | --------- | ----------
| Blurb Bitch | Ronda Swolley | JoSelle Vanderhooft |
## Beta Readers
| ---------- | --------- | ----------
| Chandrakumar M. | Kenneth E. | Marta B. |
| Mike K. |||

View File

@ -2,7 +2,7 @@
title: Legal
---
Copyright © 2020 D. Moonfire\
Copyright © 2014 D. Moonfire\
Some Rights Reserved\
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
@ -10,7 +10,7 @@ Cover art by D. Moonfire
All characters, events, and locations are fictitious. Any resemblance to persons, past, present, and future is coincidental and highly unlikely.
This novel contains no scenes of sexual assault.
This novel contains scenes where the primary character and others experience bullying, physical assault, verbal abuse, and violence. There are also scenes where secondary characters experience named character death and unnamed animal death. There is no sexual assault.
Broken Typewriter Press\
5001 1st Ave SE\

61
matter/miwafu.html Normal file
View File

@ -0,0 +1,61 @@
---
title: Miwāfu
---
<p>
This novel has characters who come from the Mifuno Desert where the native
language is Miwāfu. Names in this language are significantly different from
English, so here is a short guide on pronunciation and usage.
</p>
<p>
The biggest difference is that every name is gendered, which is identified
by the accent on the penultimate syllable. There are three types of accents:
</p>
<ul>
<li>
<em>Grave</em> (as in hèru for stallion) is a tiny tick that goes down
to the right. The grave accent indicates a masculine aspect, either in
physical gender, size, or power. Names with grave accents either end in
a lower pitch or the entire word is spoken in a lower tone.
</li>
<li>
<em>Macron</em> (for example, hēru for colt) is a bar over the vowel.
This is a neuter term, used for many gender-free words or expressions
within the language. It is also used for mechanical devices, abstract
concepts, and children—both human and beast. Macrons are spoken as a
long vowel or drawing out the word just a beat longer than normal.
</li>
<li>
<em>Acute</em> (héru for mare) is a tiny tick that goes to the upper
right. The acute indicates feminine aspects of the word. It can
represent control without power or precision. These words end on a high
note or the entire word is spoken in a higher pitch.
</li>
</ul>
<p>
The only instances where accents arent used is adjectives or indication of
ownership. So, if a valley is owned by the clan Shimusògo, it is known as
Shimusogo Valley.
</p>
<p>
The names themselves are phonetic. A syllable is always from a consonant
cluster to the vowel. For examples: Mi.wā.fu (IPA
<span class="ipa">/mi.waː.ɸɯ̥/</span>), Shi.mu.sò.go (<span class="ipa"
>/ɕi.mɯ.ꜜso.ɡo/</span
>), and De.sò.chu (<span class="ipa">/de.ꜜso.tɕɯ̥/</span>). The only
exception is the letter “n” which is considered part of the syllable before
it when not followed by a vowel. For example, ga.n.ré.ko (<span class="ipa"
>/ɡa.ŋꜛɾe.ko/</span
>) and ka.né.ko (<span class="ipa">/ka.ꜛne.ko/</span>).
</p>
<p>
Miwāfu has no capital letters, they are added to satisfy English
conventions.
</p>

View File

@ -1,11 +1,11 @@
{
"metadata": {
"title": "{{edition.fedran.source.title}}",
"title": "Sand and Blood",
"author": "D. Moonfire",
"language": "en",
"theme": "@fedran/writing-theme",
"outputDirectory": ".",
"outputFilename": "dmoonfire-{{edition.fedran.source.title_slug}}-{{edition.name}}-{{edition.version}}.{{edition.ext}}",
"outputFilename": "dmoonfire-{{edition.fedran.source.identifier_slug}}-{{edition.version}}.{{edition.ext}}",
"markdown": {
"extensions": [
{
@ -78,6 +78,11 @@
"liquid": true,
"linear": false
},
{
"element": "dedication",
"source": "matter/dedication.md",
"linear": false
},
{
"element": "toc",
"linear": false,
@ -86,6 +91,11 @@
"editions": ["pdf"]
}
},
{
"element": "preface",
"source": "matter/miwafu.html",
"linear": false
},
{
"element": "chapter",
"number": 1,
@ -114,6 +124,10 @@
"element": "appendix",
"source": "matter/fedran.md"
},
{
"element": "appendix",
"source": "matter/credits.md"
},
{
"element": "appendix",
"id": "license",

View File

@ -10,9 +10,14 @@ cd $(dirname $(dirname $0))
log "setting up project"
./scripts/setup.sh || exit 1
# Clean up the old files.
log "cleaning old builds"
rm -f dmoonfire*
# Build the project outputs.
log "building PDF"
npm run build:pdf || exit 1
./node_modules/.bin/mfgames-writing-format build pdf || exit 1
log "building EPUB"
npm run build:epub || exit 1
./node_modules/.bin/mfgames-writing-format build epub || exit 1
epubcheck dmoonfire*.epub || exit 1