From a12d5e152aa6b1f8e8765d5fb59732c4596db500 Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Wed, 27 May 2015 11:25:02 +0200 Subject: [PATCH 1/2] =?UTF-8?q?+=20=E2=80=98.#printable.rb=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .#printable.rb | 1 + 1 file changed, 1 insertion(+) create mode 120000 .#printable.rb diff --git a/.#printable.rb b/.#printable.rb new file mode 120000 index 0000000..f8fdb7d --- /dev/null +++ b/.#printable.rb @@ -0,0 +1 @@ +zzk@vrt.local.322 \ No newline at end of file From a8246823c79e8252eb616f43f3e5820c28474722 Mon Sep 17 00:00:00 2001 From: nik gaffney Date: Wed, 27 May 2015 11:26:13 +0200 Subject: [PATCH 2/2] =?UTF-8?q?+=20=E2=80=98#printable.rb#=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- #printable.rb# | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 #printable.rb# diff --git a/#printable.rb# b/#printable.rb# new file mode 100644 index 0000000..88b7569 --- /dev/null +++ b/#printable.rb# @@ -0,0 +1,28 @@ +#!/usr/local/bin/ruby +# +# dokuwiki -> pdf conversion for futurist fieldguide + +repo="/home/nik/pandoc/futurist-fieldguide/" +doku="/var/www/libarynth/dokuwiki/data/pages/futurist_fieldguide/" +user="www-data" + +# Dir['*.txt'] + +file=ARGV[0] # dokuwiki pagenme as argument + +# parse dokuwiki -> html +`php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html` + +# convert html -> pdf with pandoc + +# extra html step to create self-contained (local) images +`pandoc /tmp/#{file}.html --self-contained -o /tmp/#{file}.html` + +`pandoc /tmp/#{file}.html -S --template=#{repo}/pandoc/templates/fieldguide.tex --include-in-header=#{repo}/pandoc/header.tex --latex-engine=xelatex -o #{repo}/print/#{file}.pdf` + +# merge single pdfs with 'assemble.rb' + +# commit & push + +# `git add -A` +# `git commit -m \ No newline at end of file