Initial public snapshot

This commit is contained in:
Tommy Rantti 2026-11-26 15:20:35 +02:00
commit a16b880b9e
6 changed files with 7842 additions and 0 deletions

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
*.aux
*.log
*.gz
*.pdf
*.epub
settings.json
build/

30
README.md Normal file
View file

@ -0,0 +1,30 @@
*[Finnish / Suomeksi](README_FI.md)*
# Atlas Kicks the Ball
In Tommy Rantti's debut novel, key employees of major corporations are inexplicably resigning in a near-future, deeply divided Finland. When hundreds of millions of euros are stolen from the main shareholder of an energy giant, the clues point toward the Kainuu Free City—a special economic zone originally established to absorb a refugee crisis engineered by Russian hybrid operations.
> *"There are two novels that can change a bookish fourteen-year-old's life: The Lord of the Rings and Atlas Shrugged. One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world. The other, of course, involves Orcs."*
> — John Rogers
## 📥 Download the Book (Free)
The free edition is complete; the only difference from the paid edition is a few short nag pages along the way.
* [Download PDF](https://git.brainpaingames.com/tommy/atlas-public/releases/download/v1.1/atlas_kicks_the_ball_1_1.pdf)
* [Download EPUB](https://git.brainpaingames.com/tommy/atlas-public/releases/download/v1.1/atlas_kicks_the_ball_1_1.epub)
## 💛 Support the Author
If you'd like to support me, you can buy the PDF and EPUB editions without the nag pages at [store.brainpaingames.com](https://store.brainpaingames.com).
## Build It Yourself
You are welcome to build the book yourself, in any format, from the `.tex` sources in this repository. `./build.sh` builds both editions (with and without the nag pages) of both books as PDF (pdflatex) and EPUB (pandoc) into `build/`. A plain EPUB is just:
pandoc atlas_kicks_the_ball_1_0.tex -o atlas_kicks_the_ball.epub
## AI Transparency Statement
The original Finnish manuscript was written entirely without the use of artificial intelligence (it predates the current era of LLMs). The English translation, however, was created with significant assistance from AI tools. Please note that I have personally reviewed, edited, and approved every single word of the final text. Any remaining errors, awkward phrasing, or foolish mistakes found in the English version are entirely my responsibility, not the AI's.
## 📜 License
This work is licensed under a [Creative Commons Attribution-NonCommercial 4.0 International License](https://creativecommons.org/licenses/by-nc/4.0/).

25
README_FI.md Normal file
View file

@ -0,0 +1,25 @@
*[englanniksi / In English](README.md)*
# Atlaksen Potku
Tommy Rantin esikoisteoksessa suurten yritysten työntekijöitä irtisanoutuu selittämättömästi lähitulevaisuuden pahasti jakautuneessa Suomessa. Energiayhtiön pääomistajalta varastetaan satoja miljoonia euroja. Johtolangat osoittavat kohti Kainuun vapaavaltiota, joka on alun perin perustettu ottamaan vastaan Venäjän hybridioperaatioiden tuottama pakolaisvirta.
> *"There are two novels that can change a bookish fourteen-year-old's life: The Lord of the Rings and Atlas Shrugged. One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world. The other, of course, involves Orcs."*
> — John Rogers
## 📥 Lataa kirja (ilmainen)
Ilmaisversio pitää sisällään koko kirjan. Maksullisesta versiosta sen erottavat vain muutamat markkinointisivut.
* [Lataa PDF](https://git.brainpaingames.com/tommy/atlas-public/releases/download/v1.1/atlaksen_potku_1_1.pdf)
* [Lataa EPUB](https://git.brainpaingames.com/tommy/atlas-public/releases/download/v1.1/atlaksen_potku_1_1.epub)
## 💛 Tue kirjailijaa
Jos haluat tukea minua, voit ostaa osoitteesta [store.brainpaingames.com](https://store.brainpaingames.com) painetun kirjan tai PDF- ja EPUB-versiot ilman markkinointisivuja.
## Tee kirja itse
Voit tehdä kirjasta itse version missä tahansa tiedostomuodossa tämän repositorion `.tex`-lähdetiedostoista. `./build.sh` tekee molemmista kirjoista molemmat versiot (markkinointisivuilla ja ilman) PDF- (pdflatex) ja EPUB-muodossa (pandoc) `build/`-hakemistoon. Pelkkä EPUB syntyy näin:
pandoc atlaksen_potku_published.tex -o atlaksen_potku.epub
## 📜 Lisenssi
Tämä teos on lisensoitu [Creative Commons Nimeä-EiKaupallinen 4.0 Kansainvälinen -lisenssillä](https://creativecommons.org/licenses/by-nc/4.0/).

3991
atlaksen_potku_published.tex Normal file

File diff suppressed because it is too large Load diff

3732
atlas_kicks_the_ball_1_0.tex Normal file

File diff suppressed because it is too large Load diff

56
build.sh Executable file
View file

@ -0,0 +1,56 @@
#!/usr/bin/env bash
# Builds the free (nag) and nag-free editions of both books, PDF and EPUB.
#
# Usage: ./build.sh [version] (default version: 1.1)
# Output: build/, e.g. build/atlas_kicks_the_ball_1_1.pdf (free edition)
# and build/atlas_kicks_the_ball_1_1_nagfree.pdf (paid edition).
#
# PDFs: pdflatex (run twice). If pdflatex isn't on this machine, it runs
# inside the `atlas` distrobox container.
# EPUBs: pandoc on this machine.
#
# How the two editions differ: the sources define \nagpage with
# \providecommand. The nag-free build pre-defines it as empty before reading
# the source, so the same .tex files produce both editions.
set -euo pipefail
cd "$(dirname "$0")"
VERSION="${1:-1.1}"
V="${VERSION//./_}"
OUT=build
mkdir -p "$OUT"
if command -v pdflatex >/dev/null 2>&1; then
latex() { "$@"; }
else
latex() { distrobox enter atlas -- "$@"; }
fi
command -v pandoc >/dev/null 2>&1 || { echo "pandoc not found"; exit 1; }
CLEAN='\newcommand{\nagpage}{}'
# source file | output base name | EPUB language
BOOKS=(
"atlas_kicks_the_ball_1_0.tex|atlas_kicks_the_ball_${V}|en-GB"
"atlaksen_potku_published.tex|atlaksen_potku_${V}|fi"
)
for book in "${BOOKS[@]}"; do
IFS='|' read -r SRC NAME LANG <<<"$book"
echo "== $NAME"
for pass in 1 2; do
latex pdflatex -interaction=nonstopmode -halt-on-error \
-output-directory="$OUT" -jobname="$NAME" "$SRC" >/dev/null
latex pdflatex -interaction=nonstopmode -halt-on-error \
-output-directory="$OUT" -jobname="${NAME}_nagfree" "${CLEAN}\input{${SRC}}" >/dev/null
done
pandoc "$SRC" -M lang="$LANG" -o "$OUT/$NAME.epub"
printf '%s\n\\input{%s}\n' "$CLEAN" "$SRC" |
pandoc -f latex -M lang="$LANG" -o "$OUT/${NAME}_nagfree.epub"
done
rm -f "$OUT"/*.aux "$OUT"/*.log "$OUT"/*.out "$OUT"/*.toc
echo "Done:"
ls -1 "$OUT"