-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a32afc9
Showing
16 changed files
with
2,562 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
build/ | ||
.vscode/ | ||
*.log | ||
*.bak | ||
*.awk | ||
*.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
BUILD = build | ||
MAKEFILE = Makefile | ||
OUTPUT_FILENAME = "Das_offene_Polar-Meer" | ||
TITLE_NAME = "Das offene Polar-Meer" | ||
METADATA = metadata.yml | ||
CHAPTERS = chapters/*.md | ||
TOC = --toc --toc-depth=3 | ||
IMAGES_FOLDER = images | ||
IMAGES = $(IMAGES_FOLDER)/* | ||
COVER_IMAGE = $(IMAGES_FOLDER)/cover.jpg | ||
LATEX_CLASS = book | ||
MATH_FORMULAS = --webtex | ||
CSS_FILE = blitz.css | ||
CSS_FILE_KINDLE=blitz.css | ||
CSS_FILE_PRINT=print.css | ||
CSS_ARG = --css=$(CSS_FILE) | ||
CSS_ARG_KINDLE = --css=$(CSS_FILE_KINDLE) | ||
CSS_ARG_PRINT = --css=$(CSS_FILE_PRINT) | ||
METADATA_ARG = --metadata-file=$(METADATA) | ||
METADATA_PDF = chapters/preface/metadata_pdf_html.md | ||
PREFACE_EPUB = chapters/preface/preface_epub.md chapters/preface/00_Vorwort_epub.md | ||
PREFACE_HTML_PDF = chapters/preface/preface_epub.md chapters/preface/00_Vorwort_pdf_html.md | ||
ARGS = $(TOC) $(MATH_FORMULAS) $(CSS_ARG) $(METADATA_ARG) --reference-location=document | ||
ARGS_HTML = $(TOC) $(MATH_FORMULAS) $(CSS_ARG) --reference-location=document --metadata=lang:de $(METADATA_PDF) | ||
#CALIBRE="../../calibre/Calibre Portable/Calibre/" | ||
#CALIBRE = "C:/Program Files/Calibre2/" | ||
CALIBRE="" | ||
PANDOC = "pandoc" | ||
|
||
all: book | ||
|
||
book: epub html pdf docx | ||
|
||
clean: | ||
rm -r $(BUILD) | ||
|
||
epub: $(BUILD)/epub/$(OUTPUT_FILENAME).epub | ||
|
||
pdf: $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf | ||
|
||
$(BUILD)/epub/$(OUTPUT_FILENAME).epub: $(MAKEFILE) $(METADATA) $(CHAPTERS) $(CSS_FILE) $(CSS_FILE_KINDLE) $(IMAGES) \ | ||
$(COVER_IMAGE) $(METADATA) $(PREFACE_EPUB) | ||
mkdir -p $(BUILD)/epub | ||
$(PANDOC) $(ARGS) --from markdown+raw_html+fenced_divs+fenced_code_attributes+bracketed_spans --to epub+raw_html --resource-path=$(IMAGES_FOLDER) --epub-cover-image=$(COVER_IMAGE) -o $@ $(PREFACE_EPUB) $(CHAPTERS) | ||
|
||
$(CALIBRE)ebook-polish --add-soft-hyphens -i -p -U $@ $@ | ||
$(CALIBRE)ebook-convert $@ $(BUILD)/epub/$(OUTPUT_FILENAME).azw3 --share-not-sync --disable-font-rescaling | ||
$(CALIBRE)ebook-convert $(BUILD)/epub/$(OUTPUT_FILENAME).azw3 $(BUILD)/epub/$(OUTPUT_FILENAME).mobi --share-not-sync --disable-font-rescaling --mobi-file-type both | ||
|
||
docx: $(BUILD)/docx/$(OUTPUT_FILENAME).docx | ||
|
||
$(BUILD)/docx/$(OUTPUT_FILENAME).docx: $(MAKEFILE) $(METADATA) $(CHAPTERS) $(CSS_FILE) $(CSS_FILE_KINDLE) $(IMAGES) \ | ||
$(COVER_IMAGE) $(PREFACE_HTML_PDF) | ||
mkdir -p $(BUILD)/docx | ||
$(PANDOC) $(ARGS_HTML) --from markdown+raw_html+fenced_divs+fenced_code_attributes+bracketed_spans --to docx --resource-path=$(IMAGES_FOLDER) -o $@ $(METADATA_PDF) $(PREFACE_HTML_PDF) $(CHAPTERS) | ||
|
||
html: $(BUILD)/html/$(OUTPUT_FILENAME).html | ||
|
||
$(BUILD)/html/$(OUTPUT_FILENAME).html: $(MAKEFILE) $(METADATA_PDF) $(CHAPTERS_HTML_PDF) $(CSS_FILE) $(IMAGES) $(COVER_IMAGE) $(PREFACE_EPUB) | ||
mkdir -p $(BUILD)/html | ||
cp *.css $(IMAGES_FOLDER) | ||
pandoc $(ARGS_HTML) --embed-resources --standalone --resource-path=$(IMAGES_FOLDER) --from markdown+pandoc_title_block+raw_html+fenced_divs+fenced_code_attributes+bracketed_spans+yaml_metadata_block --to=html5 -o $@ $(PREFACE_HTML_PDF) $(CHAPTERS) | ||
rm $(IMAGES_FOLDER)/*.css | ||
|
||
pdf: $(BUILD)/pdf/$(OUTPUT_FILENAME).pdf | ||
|
||
$(BUILD)/pdf/$(OUTPUT_FILENAME).pdf: $(MAKEFILE) $(METADATA_PDF) $(CHAPTERS_HTML_PDF) $(CSS_FILE) $(IMAGES) $(COVER_IMAGE) $(METADATA_PDF) $(PREFACE_EPUB) | ||
mkdir -p $(BUILD)/pdf | ||
cp *.css $(IMAGES_FOLDER) | ||
cp $(IMAGES_FOLDER)/Das_offene_Polarmeer_*.jpg . | ||
pandoc $(ARGS_HTML) $(CSS_ARG_PRINT) --pdf-engine=prince --resource-path=$(IMAGES_FOLDER) --from markdown+pandoc_title_block+raw_html+fenced_divs+fenced_code_attributes+bracketed_spans+yaml_metadata_block --to=html5 -o $@ $(PREFACE_HTML_PDF) $(CHAPTERS) | ||
rm $(IMAGES_FOLDER)/*.css | ||
rm Das_offene_Polarmeer_*.jpg . | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Das offene Polarmeer. Eine Entdeckungsreise nach dem Nordpol. | ||
|
||
<img align="right" height="150" src="https://github.com/kogo59/Meine_Eroberung_des_Nordpols/blob/main/images/cover.jpg"> | ||
|
||
This is a git repository of the source files for the book "Das offene Polarmeer. Eine Entdeckungsreise nach dem Nordpol.". | ||
|
||
Authors: | ||
|
||
* [Hayes Isaac Israel](ttps://de.wikipedia.org/wiki/Isaac_Israel_Hayes) (1832-1881) | ||
|
||
Translator: | ||
|
||
* [Martin, Johann E. A.](https://d-nb.info/gnd/120641747) (1822-1892) | ||
|
||
|
||
# Licenses | ||
Some or all works by this author are in the public domain in the United States | ||
because they were published before January 1, 1929. The author died in 1940, so | ||
works by this author are also in the public domain in countries and areas where | ||
the copyright term is the author's life plus 70 years or less. Works by this | ||
author may also be in the public domain in countries and areas with longer | ||
native copyright terms that apply the rule of the shorter term to foreign works. | ||
|
||
# Build | ||
* [Pandoc Markdown](https://pandoc.org/MANUAL.html#pandocs-markdown) => epub | ||
* [Calibre](https://calibre-ebook.com/) epub to azw3, mobi | ||
* Stylesheet from [Blitz eBook Framework](https://friendsofepub.github.io/Blitz/), [MIT License](https://github.com/FriendsOfEpub/Blitz/blob/master/LICENSE) | ||
|
||
# Sources | ||
Das offene Polarmeer. Eine Entdeckungsreise nach dem Nordpol.[hathitrust](https://www.digitale-sammlungen.de/de/view/bsb10465321?page=1) | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.