From: Victor Wagner Date: Mon, 28 Sep 2015 12:33:12 +0000 (+0300) Subject: Fixed fb2 generation to validae against FictionBook2.1 schema X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=fiction%2Fjasmina.git;a=commitdiff_plain;h=9b8851dbf549ee18b4a7f1ff78fc4a3881249832 Fixed fb2 generation to validae against FictionBook2.1 schema --- diff --git a/.gitignore b/.gitignore index 8cd99ec..00c6663 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ all.mdwn +annotation.html jasmina.epub jasmina.html jasmina.fb2 diff --git a/Makefile b/Makefile index fb4e652..dbd3980 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +SRC_URL=http://www.wagner.pp.ru/~vitus/fiction +ID=90860948-65dc-11e5-bd77-bc5ff453db06 +VERSION=0.$(shell date +%s) + all: jasmina.html jasmina.epub fb2: jasmina.fb2.zip @@ -11,8 +15,20 @@ jasmina.epub: all.mdwn pandoc -t epub -s all.mdwn -o jasmina.epub jasmina.fb2.zip: jasmina.fb2 zip $@ $+ -jasmina.fb2: all.mdwn + +annotation.html: annotation.txt + pandoc -o annotation.html annotation.txt +jasmina.fb2: all.mdwn annotation.html Makefile pandoc -t fb2 -V language=ru all.mdwn -o jasmina.fb2 + sed -i 's!.*!!' $@ + sed -i 's!\(.*\)\(.*\)!\2\1!' $@ + sed -i 's!!ru!' $@ + sed -i 's!!sf_history!' $@ + sed -i "s!!`cat annotation.html|tr -d '\n'`!" $@ + sed -i "s!!`date +%Y`!" $@ + sed -i "s!!`date +%Y`!" $@ + sed -i 's!!ВикторВагнер!' $@ + sed -i 's!!${SRC_URL}${ID}${VERSION}!' $@ jasmina.pdf: preamble.tex all.tex pdflatex preamble.tex pdflatex preamble.tex diff --git a/annotation.txt b/annotation.txt new file mode 100644 index 0000000..58e63df --- /dev/null +++ b/annotation.txt @@ -0,0 +1,7 @@ +Cлучайно подобранная на улице кошка со связанными лапами, оказывается +драконом. Причем не просто драконом, а свергнутой с престола королевой +страны в соседнем мире. И вот обычному человеку из нашей реальности +приходится сражаться за то, чтобы вернуть ей престол. + +Мир Ясмины оказывается очень похож на Землю конца XVIII века, а её +страна на ещё не завоёванную англичанами Империю Великих Моголов. diff --git a/timeline.ods b/timeline.ods index a4ce25c..5e420ce 100644 Binary files a/timeline.ods and b/timeline.ods differ