Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
Update hp-intro.tex
Update test.tex
Create make_6_pdfs.cmd
translatorsnote: Buchholz-Hydra
ebook scripts: add source reference
restructuring image source
  • Loading branch information
entorb committed May 30, 2022
1 parent a0085fd commit 63bdea4
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 17 deletions.
3 changes: 2 additions & 1 deletion chapters/hpmor-chapter-100.tex
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ \section{13. Mai 1992}
„Meself,“ fuhr Hagrid fort, „ich glaube, wir haben hier Pariser Hydra im Wald. Für einen Zauberer sind sie keine Bedrohung, ihr müsst sie nur lange genug aufhalten, dann könnt ihr auf keinen Fall verlieren. Ich meine buchstäblich, dass man nicht verlieren kann, solange man kämpft. Das Problem ist, gegen eine Pariser Hydra geben die meisten Kreaturen schon lange vorher auf. Es dauert eine Weile, bis man alle Köpfe abgehackt hat, versteht ihr?“

% “Bah,” said the foreign boy. “In Durmstrang we learn to fight Buchholz hydra. Unimaginably more tedious to fight! I mean literally, cannot imagine. First-years not believe us when we tell them winning is possible! Instructor must give second order, iterate until they comprehend.”
„Bah,“ sagte der ausländische Junge. „In Durmstrang lernen wir, wie man gegen Buchholz-Hydra kämpft. Unvorstellbar mühsamer zu kämpfen! Ich meine das wörtlich, könnt es euch nicht vorstellen. Die Erstklässler glauben uns nicht, wenn wir ihnen sagen, dass ein Sieg möglich ist! Der Ausbilder muss die zweite Befehl geben, wiederholen, bis sie es begreifen.“
„Bah,“ sagte der ausländische Junge. „In Durmstrang lernen wir, wie man gegen die Buchholz-Hydra kämpft. Unvorstellbar mühsamer zu kämpfen! Ich meine das wörtlich, könnt es euch nicht vorstellen. Die Erstklässler glauben uns nicht, wenn wir ihnen sagen, dass ein Sieg möglich ist! Der Ausbilder muss die zweite Befehl geben, wiederholen, bis sie es begreifen.“%
\translatorsnote{\emph{Buchholz-Hydra}: siehe auch \url{https://en.wikipedia.org/wiki/Buchholz_hydra}}

% They walked for nearly half an hour, deeper and deeper into the Forest, until the path became almost impossible to follow because the trees were so thick.
Sie liefen fast eine halbe Stunde lang, immer tiefer in den Wald hinein, bis es fast unmöglich wurde, dem Pfad zu folgen, weil die Bäume so dicht waren.
Expand Down
3 changes: 3 additions & 0 deletions ebook/1.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# based on work by yeKcim
# https://github.com/yeKcim/hpmor/tree/master/ebook

echo === 1. prepare .tex file, based on hpmor.tex===

# ensure we are in the hpmor root dir
Expand Down
3 changes: 3 additions & 0 deletions ebook/2.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# based on work by yeKcim
# https://github.com/yeKcim/hpmor/tree/master/ebook

echo === 2. flatten .tex files ===

# ensure we are in the hpmor root dir
Expand Down
3 changes: 3 additions & 0 deletions ebook/3.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# based on work by yeKcim
# https://github.com/yeKcim/hpmor/tree/master/ebook

echo === 3. modify flattened file ===

# ensure we are in the hpmor root dir
Expand Down
3 changes: 3 additions & 0 deletions ebook/4.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# based on work by yeKcim
# https://github.com/yeKcim/hpmor/tree/master/ebook

echo === 4. LaTeX -\> HTML via pandoc ===

# ensure we are in the hpmor root dir
Expand Down
3 changes: 3 additions & 0 deletions ebook/5.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

# based on work by yeKcim
# https://github.com/yeKcim/hpmor/tree/master/ebook

echo === 5. HTML modifications ===

# ensure we are in the hpmor root dir
Expand Down
7 changes: 5 additions & 2 deletions ebook/6.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/sh

# based on work by yeKcim
# https://github.com/yeKcim/hpmor/tree/master/ebook

echo === 6. extract cover from PDF to image===

# ensure we are in the hpmor root dir
script_dir=$(cd `dirname $0` && pwd)
cd $script_dir/..

mkdir -p ebook/tmp/

echo === 6. extract cover from PDF to image===

source_file="hpmor.pdf"
target_file="ebook/tmp/title.png"

Expand Down
12 changes: 8 additions & 4 deletions ebook/7.sh
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
#!/bin/sh

# based on work by yeKcim
# https://github.com/yeKcim/hpmor/tree/master/ebook

echo === 7. HTML -\> epub,mobi, doc ===

source_file="hpmor.html"
target_file="hpmor.epub"

# echo ==== pandoc: html -\> epub====
# echo ==== 7.1 pandoc: html -\> epub====
# for some reason pandoc looses the css style of the html, so so trying calibre instead...

# pandoc --standalone --from=html $source_file -o $target_file

# pandoc --standalone --from=html $source_file -o $target_file --epub-embed-font="./fonts/automobile_contest/Automobile Contest.ttf" --epub-embed-font="./fonts/graphe/Graphe_Alpha_alt.ttf" --epub-embed-font="./fonts/Parseltongue/Parseltongue.ttf" --epub-embed-font="./fonts/graphe/Graphe_Alpha_alt.ttf" --epub-embed-font="./fonts/gabriele_bad_ah/gabriele-bad.ttf"
#--css "./ebook/epub.css"


echo ==== 7.1 calibre: html -\> epub ====
echo ==== 7.2 calibre: html -\> epub ====
ebook-convert $source_file $target_file --language de-DE --no-default-epub-cover --cover "ebook/tmp/title.jpg" --book-producer "Torben Menke"
# --no-default-epub-cover --cover tmp/title-en.jpg --authors "Eliezer Yudkowsky" --title "Harry Potter and the Methods of Rationality" --book-producer "Torben Menke" --pubdate 2015-03-14 --language en-US


source_file="hpmor.epub"
echo ==== 7.2 calibre: epub -\> mobi ====
echo ==== 7.3 calibre: epub -\> mobi ====
target_file="hpmor.mobi"
ebook-convert $source_file $target_file

echo ==== 7.3 epub -\> docx ====
echo ==== 7.4 epub -\> docx ====
target_file="hpmor.docx"
ebook-convert $source_file $target_file
# pandoc --standalone $source_file -o $target_file
File renamed without changes
16 changes: 7 additions & 9 deletions layout/hp-intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@
\noindent
\vfill
Dies ist ein \href{https://github.com/entorb/hpmor-de/}{OpenSource Projekt}\\
gestartet von \href{https://entorb.net}{Torben Menke}\\
{\small\href{https://github.com/entorb/hpmor-de/}{github.com/entorb/hpmor-de/}}\\
beheimatet auf {\small\href{https://github.com/entorb/hpmor-de/}{github.com/entorb/hpmor-de/}}\\
gestartet und verwaltet von \href{https://entorb.net}{Torben Menke}\\

\vspace*{1\baselineskip}
Verbesserungsvorschläge und Mitarbeit sind herzlich willkommen\\
unter {\small\href{https://github.com/entorb/hpmor-de/wiki/Mitmachen}{github.com/entorb/hpmor-de/wiki/Mitmachen}}\\
Details unter {\small\href{https://github.com/entorb/hpmor-de/wiki/Mitmachen}{github.com/entorb/hpmor-de/wiki/Mitmachen}}\\

\vspace*{1\baselineskip}
Großer Dank gebührt den initialen Übersetzern\\
Expand All @@ -82,15 +82,13 @@
Schneefl0cke (Kapitel 79-122) {\small\href{https://www.fanfiktion.de/s/60044849000ccc541aef297e/}{fanfiktion.de/s/60044849000ccc541aef297e/}}\\

\vspace*{1\baselineskip}
Sowie den Kollegen der anderssprachigen Ausgaben für den tollen\\
Austausch von Ideen, Quellcode, Layout und Schriften\\
sowie den Kollegen der internationalen Ausgaben\\
für den tollen Austausch von Ideen und Quellcode\\
{\small\href{https://github.com/rrthomas/hpmor/}{github.com/rrthomas/hpmor/}} (EN)\\
{\small\href{https://github.com/yeKcim/hpmor/}{github.com/yeKcim/hpmor/}} (FR)\\

\vspace*{1\baselineskip}
Version vom \today{}

\vspace*{1\baselineskip}
Das neuste PDF und eBook gibt es unter\\
Diese Version ist vom \today{}\\
Das aktuellste PDF und eBook gibt es unter\\
{\small\href{https://github.com/entorb/hpmor-de/releases/tag/WorkInProgress}{github.com/entorb/hpmor-de/releases/tag/WorkInProgress}}\\
\end{center}
3 changes: 2 additions & 1 deletion layout/test.tex
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ \part{Doc Structure}



\include{chapters/hpmor-chapter-013}
% \include{chapters/hpmor-chapter-001}
% \include{chapters/hpmor-chapter-013}



Expand Down
6 changes: 6 additions & 0 deletions make_6_pdfs.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
start /B "" latexmk hpmor-1
start /B "" latexmk hpmor-2
start /B "" latexmk hpmor-3
start /B "" latexmk hpmor-4
start /B "" latexmk hpmor-5
start /B "" latexmk hpmor-6

0 comments on commit 63bdea4

Please sign in to comment.