From 529ede146afd125c76d86eb55969983af8ee21db Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 4 Apr 2015 23:58:22 -0700 Subject: Some revision & TOC inclusion --- trunk/Sacrifice_of_Isaac-Caravaggio.jpg | Bin 0 -> 6892261 bytes trunk/backlink.sh | 6 +----- trunk/common-titles.sh | 4 +--- trunk/first-lines.sh | 4 +--- trunk/lozenge.js | 2 +- trunk/toc.head | 11 +++++++++++ trunk/toc.sh | 26 ++++++++++++++++++++++++++ trunk/versify.exe | Bin 13686106 -> 13686106 bytes 8 files changed, 41 insertions(+), 12 deletions(-) create mode 100644 trunk/Sacrifice_of_Isaac-Caravaggio.jpg create mode 100644 trunk/toc.head create mode 100644 trunk/toc.sh (limited to 'trunk') diff --git a/trunk/Sacrifice_of_Isaac-Caravaggio.jpg b/trunk/Sacrifice_of_Isaac-Caravaggio.jpg new file mode 100644 index 0000000..e7e34c6 Binary files /dev/null and b/trunk/Sacrifice_of_Isaac-Caravaggio.jpg differ diff --git a/trunk/backlink.sh b/trunk/backlink.sh index c9740d9..f6feb7d 100644 --- a/trunk/backlink.sh +++ b/trunk/backlink.sh @@ -4,13 +4,9 @@ searchQuery="$1"; # .html file to backlink outFile="$2"; # .back file to create headerFile="$3"; # header information file -islandHead="$4"; -shift 4; +shift 3; glob="$@"; # where to search for backlinks -islandLink="island" -[[ ! -f ${islandLink}.txt ]] && cat "$islandHead" > ${islandLink}.txt; - # Find backlinkers echo -n "Back-linking \"$searchQuery\"" cat "$headerFile" > "$outFile"; diff --git a/trunk/common-titles.sh b/trunk/common-titles.sh index df6158d..bae8a10 100644 --- a/trunk/common-titles.sh +++ b/trunk/common-titles.sh @@ -1,12 +1,10 @@ #!/bin/bash outFile="$1"; -header="$2"; -shift 2; +shift 1; glob="$@"; echo -n "Compiling ${outFile}"; -cat "$header" > $outFile; for file in $glob; do # Copy title to $outFile & link diff --git a/trunk/first-lines.sh b/trunk/first-lines.sh index fb06026..1378a82 100644 --- a/trunk/first-lines.sh +++ b/trunk/first-lines.sh @@ -1,8 +1,7 @@ #!/bin/bash outFile="$1"; -header="$2"; -shift 2; +shift 1; glob="$@"; firstLineOf() { # $1 = file @@ -18,7 +17,6 @@ firstLineOf() { # $1 = file } echo -n "Compiling ${outFile}" -cat "$header" > $outFile for file in $glob; do # Copy first line to $outFile & link diff --git a/trunk/lozenge.js b/trunk/lozenge.js index 171e251..62fcfd0 100644 --- a/trunk/lozenge.js +++ b/trunk/lozenge.js @@ -6,7 +6,7 @@ function _lozenge() { var lozenge = document.getElementById('lozenge'); // array with all files {{{ - var files=["100-lines.html","about-the-author.html","about.html","about_author.html","abstract.html","amber-alert.html","and.html","angeltoabraham.html","apollo11.html","arspoetica.html","art.html","axe.html","big-dipper.html","boar.html","boy_bus.html","building.html","call-me-aural-pleasure.html","cereal.html","cold-wind.html","collage-instrument.html","creation-myth.html","deadman.html","death-zone.html","deathstrumpet.html","dollywood.html","dream.html","early.html","elegyforanalternateself.html","epigraph.html","ex-machina.html","exasperated.html","father.html","feedingtheraven.html","finding-the-lion.html","fire.html","found-typewriter-poem.html","hands.html","hard-game.html","hardware.html","howithappened.html","howtoread.html","hymnal.html","i-am.html","i-think-its-you.html","i-want-to-say.html","i-wanted-to-tell-you-something.html","in-bed.html","initial-conditions.html","january.html","joke.html","lappel-du-vide.html","largest-asteroid.html","last-bastion.html","last-passenger.html","leaf.html","leg.html","likingthings.html","listen.html","love-as-god.html","lovesong.html","man.html","manifesto_poetics.html","moon-drowning.html","moongone.html","mountain.html","movingsideways.html","music-433.html","no-nothing.html","notes.html","nothing-is-ever-over.html","on-genre-dimension.html","onformalpoetry.html","options.html","ouroboros_memory.html","paul.html","peaches.html","philosophy.html","phone.html","planks.html","plant.html","poetry-time.html","prelude.html","problems.html","process.html","proverbs.html","punch.html","purpose-dogs.html","question.html","real-writer.html","reports.html","riptide_memory.html","ronaldmcdonald.html","roughgloves.html","sapling.html","seasonal-affective-disorder.html","sense-of-it.html","serengeti.html","shed.html","shipwright.html","sixteenth-chapel.html","snow.html","something-simple.html","spittle.html","squirrel.html","stagnant.html","statements-frag.html","stayed-on-the-bus.html","stump.html","swansong-alt.html","swansong.html","swear.html","table_contents.html","tapestry.html","telemarketer.html","the-night-we-met.html","the-sea_the-beach.html","theoceanoverflowswithcamels.html","time-looks-up-to-the-sky.html","todaniel.html","toilet.html","toothpaste.html","treatise.html","underwear.html","walking-in-the-rain.html","wallpaper.html","weplayedthosegamestoo.html","what-we-are-made-of.html","when-im-sorry-i.html","window.html","words-irritable-reaching.html","words-meaning.html","worse-looking-over.html","writing.html","x-ray.html","yellow.html"] + var files=["about-the-author.html","about.html","about_author.html","abstract.html","amber-alert.html","and.html","angeltoabraham.html","apollo11.html","arspoetica.html","art.html","axe.html","big-dipper.html","boar.html","boy_bus.html","building.html","call-me-aural-pleasure.html","cereal.html","cold-wind.html","collage-instrument.html","creation-myth.html","deadman.html","death-zone.html","deathstrumpet.html","dollywood.html","dream.html","early.html","elegyforanalternateself.html","epigraph.html","ex-machina.html","exasperated.html","father.html","feedingtheraven.html","finding-the-lion.html","fire.html","found-typewriter-poem.html","hands.html","hard-game.html","hardware.html","howithappened.html","howtoread.html","hymnal.html","i-am.html","i-think-its-you.html","i-want-to-say.html","i-wanted-to-tell-you-something.html","in-bed.html","initial-conditions.html","january.html","joke.html","lappel-du-vide.html","largest-asteroid.html","last-bastion.html","last-passenger.html","leaf.html","leg.html","likingthings.html","listen.html","love-as-god.html","lovesong.html","man.html","manifesto_poetics.html","moon-drowning.html","moongone.html","mountain.html","movingsideways.html","music-433.html","no-nothing.html","notes.html","nothing-is-ever-over.html","on-genre-dimension.html","one-hundred-lines.html","onformalpoetry.html","options.html","ouroboros_memory.html","paul.html","peaches.html","philosophy.html","phone.html","planks.html","plant.html","poetry-time.html","prelude.html","problems.html","process.html","proverbs.html","punch.html","purpose-dogs.html","question.html","real-writer.html","reports.html","riptide_memory.html","ronaldmcdonald.html","roughgloves.html","sapling.html","seasonal-affective-disorder.html","sense-of-it.html","serengeti.html","shed.html","shipwright.html","sixteenth-chapel.html","snow.html","something-simple.html","spittle.html","squirrel.html","stagnant.html","statements-frag.html","stayed-on-the-bus.html","stump.html","swansong-alt.html","swansong.html","swear.html","table_contents.html","tapestry.html","telemarketer.html","the-night-we-met.html","the-sea_the-beach.html","theoceanoverflowswithcamels.html","time-looks-up-to-the-sky.html","todaniel.html","toilet.html","toothpaste.html","treatise.html","underwear.html","walking-in-the-rain.html","wallpaper.html","weplayedthosegamestoo.html","what-we-are-made-of.html","when-im-sorry-i.html","window.html","words-irritable-reaching.html","words-meaning.html","worse-looking-over.html","writing.html","x-ray.html","yellow.html"] // }}} var index = Math.floor(Math.random() * files.length); diff --git a/trunk/toc.head b/trunk/toc.head new file mode 100644 index 0000000..29cb69e --- /dev/null +++ b/trunk/toc.head @@ -0,0 +1,11 @@ +--- +title: Autocento of the breakfast table +id: toc +subtitle: table of contents +genre: list + +project: + title: About autocento + class: meta +... + diff --git a/trunk/toc.sh b/trunk/toc.sh new file mode 100644 index 0000000..fe440cb --- /dev/null +++ b/trunk/toc.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +outFile="$1"; +shift 1; +glob="$@"; + +echo -n "Compiling $outFile" + +for file in $glob; do + title=$(grep '^title: ' $file | cut -d' ' -f2-); + subtitle=$(grep '^subtitle: ' $file | cut -d' ' -f2-); + htmlFile="${file%.txt}.html" + # if [[ "$title" == "Autocento of the breakfast table" ]]; then + # echo "#. [$subtitle]($htmlFile)" >> "$outFile"; + # else + # echo "#. [$title]($htmlFile)" >> "$outFile"; + # fi + if [[ -n "$subtitle" ]]; then + echo "#. [$title: $subtitle]($htmlFile)" >> "$outFile" + else + echo "#. [$title]($htmlFile)" >> "$outFile"; + fi + echo -n "." +done + +echo "Done." diff --git a/trunk/versify.exe b/trunk/versify.exe index cf9809c..d479c80 100644 Binary files a/trunk/versify.exe and b/trunk/versify.exe differ -- cgit 1.4.1-21-gabe81