Skip to content

Commit

Permalink
Make mobi auf OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
kensanata committed Dec 25, 2014
1 parent 00012e4 commit 9d9cc1d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Hellebarden und Helme/Makefile
@@ -1,9 +1,13 @@
GRAPHICS=$(wildcard graphics/*.jpg)
PANDOC=pandoc
CONVERT=ebook-convert
# CONVERT=/Applications/calibre.app/Contents/MacOS/ebook-convert
VIEW=ebook-viewer
# VIEW=/Applications/calibre.app/Contents/MacOS/ebook-viewer
LATEX=pdflatex
MAKEINDEX=makeindex
EMACS=emacs
# EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs

all: Hellebarden-und-Helme.mobi

Expand All @@ -25,14 +29,14 @@ clean:
--level2-toc=//h:h2 \
--authors="Alex Schroeder" \
--language=de \
--cover=graphics/Schaller.jpg \
--cover=graphics/cover.jpg \
--output-profile=kindle \
--smarten-punctuation

.PRECIOUS: %.html

%.html: %.org
emacs -q -Q $< --batch -l project.el --kill
${EMACS} -q -Q $< --batch -l project.el --kill

%.pdf: %.org
pandoc $< -o $@
Expand Down
6 changes: 5 additions & 1 deletion Hellebarden und Helme/format.el
Expand Up @@ -55,7 +55,11 @@
(delete-char -1))
((looking-at "times")
(delete-region (- (match-beginning 0) 2) (+ (match-end 0) 1))
(insert "×"))))
(insert "×"))
((looking-at "%")
(delete-char -1))
(t
(forward-char 1))))
(goto-char start)
(while (search-forward "~" end t)
(replace-match " ")))
Expand Down
Binary file added Hellebarden und Helme/graphics/cover.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Hellebarden und Helme/graphics/cover.xcf
Binary file not shown.
1 change: 1 addition & 0 deletions Hellebarden und Helme/project.el
Expand Up @@ -3,6 +3,7 @@
`(("Hellebarden und Helme"
:base-directory ,dir
:publishing-directory ,dir
:publishing-function org-html-publish-to-html
:exclude "-source\\.org"
:section-numbers nil
:html-postamble nil
Expand Down

0 comments on commit 9d9cc1d

Please sign in to comment.