From 3b37989606c44902d90a3723e197d8c318a302bf Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 27 Mar 2015 13:47:42 -0700 Subject: Change verse lines '$' -> '^| ' --- trunk/first-lines.sh | 17 +++++++++++++++++ trunk/hapax.head | 11 +++++++++++ trunk/lozenge.js | 2 +- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 trunk/first-lines.sh create mode 100644 trunk/hapax.head (limited to 'trunk') diff --git a/trunk/first-lines.sh b/trunk/first-lines.sh new file mode 100644 index 0000000..50b0e0c --- /dev/null +++ b/trunk/first-lines.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +outFile=src/first-lines.txt + +echo "" > $outFile + +for file in src/*.txt; do + echo -n "Getting first line of $file .. " + endOfYAML=$(sed -n '/^\.\.\.$/=' "$file") + firstLineNumber=$((endOfYAML + 2)) + + echo "$file: " >> $outFile + echo " $(head -n $firstLineNumber "$file" | tail -n 1)" >> $outFile + + unset endOfYAML firstLineNumber + echo "Done." +done diff --git a/trunk/hapax.head b/trunk/hapax.head new file mode 100644 index 0000000..88b23bf --- /dev/null +++ b/trunk/hapax.head @@ -0,0 +1,11 @@ +--- +title: Autocento of the breakfast table +id: hapax +subtitle: hapax legomena +genre: prose + +project: + title: About autocento + class: meta +... + diff --git a/trunk/lozenge.js b/trunk/lozenge.js index 2df6cad..2c7f503 100644 --- a/trunk/lozenge.js +++ b/trunk/lozenge.js @@ -16,7 +16,7 @@ function _lozenge() { if (current != files[index]) { lozenge.setAttribute("href", files[index]); - lozenge.setAttribute("title", "Random article"); + lozenge.setAttribute("title", "To random article"); } else { _lozenge() } -- cgit 1.4.1-21-gabe81