From 643d9ceb308c206a6e572c7c555168ff0ca60bc1 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 27 Mar 2015 15:40:42 -0700 Subject: Fix #5: Verse typesetting Thanks to the pandoc-discussion thread at , line breaks in verse have been converted to s, which enables the CSS to style them with hanging indents, given a too-small viewport. This commit also includes a makefile edit to reflect this change, and the Haskell source and executable of the pandoc filter. --- makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'makefile') diff --git a/makefile b/makefile index 768b342..26b067f 100644 --- a/makefile +++ b/makefile @@ -5,9 +5,12 @@ # Define directories, file lists, and options TEXTs := $(wildcard *.txt) +VERSIFY = trunk/versify.exe + HTMLbl := index.html template.html index-txt.html HTMLs := $(filter-out $(HTMLbl),$(patsubst %.txt,%.html,$(TEXTs))) HTMopts = --template=template.html +HTMopts+= --filter=$(VERSIFY) HTMopts+= --smart --mathml --section-divs HAPAXbl:= first-lines.river common-titles.river hapax.river @@ -35,7 +38,7 @@ river : $(RIVERs) lozenge : $(LOZENGE) # Generic rule for HTML targets and Markdown sources -%.html : %.txt template.html +%.html : %.txt template.html $(VERSIFY) pandoc $< -f markdown -t html5 $(HTMopts) -o $@ # Generic rule for RIVER targets and Markdown sources @@ -45,6 +48,9 @@ lozenge : $(LOZENGE) -e "s/[^][A-Za-z0-9\/\"':.-]/ /g" $< |\ pandoc - -f markdown -t $(RIVERer) -o $@ +$(VERSIFY) : trunk/versify.hs + ghc --make trunk/versify.hs + $(LOZENGE) : $(HTMLs) @echo "Updating lozenge.js..." @list=`echo $(HTMLs) |\ -- cgit 1.4.1-21-gabe81