summary refs log tree commit diff stats
path: root/trunk
diff options
context:
space:
mode:
authorCase Duckworth2015-04-04 23:58:22 -0700
committerCase Duckworth2015-04-04 23:58:22 -0700
commit529ede146afd125c76d86eb55969983af8ee21db (patch)
treef80e532dbcfade4a2dee5e3d122a5bc2d623622e /trunk
parentAdd backlinks to backlinks (diff)
downloadautocento-529ede146afd125c76d86eb55969983af8ee21db.tar.gz
autocento-529ede146afd125c76d86eb55969983af8ee21db.zip
Some revision & TOC inclusion
Diffstat (limited to 'trunk')
-rw-r--r--trunk/Sacrifice_of_Isaac-Caravaggio.jpgbin0 -> 6892261 bytes
-rw-r--r--trunk/backlink.sh6
-rw-r--r--trunk/common-titles.sh4
-rw-r--r--trunk/first-lines.sh4
-rw-r--r--trunk/lozenge.js2
-rw-r--r--trunk/toc.head11
-rw-r--r--trunk/toc.sh26
-rw-r--r--trunk/versify.exebin13686106 -> 13686106 bytes
8 files changed, 41 insertions, 12 deletions
diff --git a/trunk/Sacrifice_of_Isaac-Caravaggio.jpg b/trunk/Sacrifice_of_Isaac-Caravaggio.jpg new file mode 100644 index 0000000..e7e34c6 --- /dev/null +++ b/trunk/Sacrifice_of_Isaac-Caravaggio.jpg
Binary files 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 @@
4searchQuery="$1"; # .html file to backlink 4searchQuery="$1"; # .html file to backlink
5outFile="$2"; # .back file to create 5outFile="$2"; # .back file to create
6headerFile="$3"; # header information file 6headerFile="$3"; # header information file
7islandHead="$4"; 7shift 3;
8shift 4;
9glob="$@"; # where to search for backlinks 8glob="$@"; # where to search for backlinks
10 9
11islandLink="island"
12[[ ! -f ${islandLink}.txt ]] && cat "$islandHead" > ${islandLink}.txt;
13
14# Find backlinkers 10# Find backlinkers
15echo -n "Back-linking \"$searchQuery\"" 11echo -n "Back-linking \"$searchQuery\""
16cat "$headerFile" > "$outFile"; 12cat "$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 @@
1#!/bin/bash 1#!/bin/bash
2 2
3outFile="$1"; 3outFile="$1";
4header="$2"; 4shift 1;
5shift 2;
6glob="$@"; 5glob="$@";
7 6
8echo -n "Compiling ${outFile}"; 7echo -n "Compiling ${outFile}";
9cat "$header" > $outFile;
10 8
11for file in $glob; do 9for file in $glob; do
12 # Copy title to $outFile & link 10 # 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 @@
1#!/bin/bash 1#!/bin/bash
2 2
3outFile="$1"; 3outFile="$1";
4header="$2"; 4shift 1;
5shift 2;
6glob="$@"; 5glob="$@";
7 6
8firstLineOf() { # $1 = file 7firstLineOf() { # $1 = file
@@ -18,7 +17,6 @@ firstLineOf() { # $1 = file
18} 17}
19 18
20echo -n "Compiling ${outFile}" 19echo -n "Compiling ${outFile}"
21cat "$header" > $outFile
22 20
23for file in $glob; do 21for file in $glob; do
24 # Copy first line to $outFile & link 22 # 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 @@
6function _lozenge() { 6function _lozenge() {
7 var lozenge = document.getElementById('lozenge'); 7 var lozenge = document.getElementById('lozenge');
8 // array with all files {{{ 8 // array with all files {{{
9 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"] 9 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"]
10 // }}} 10 // }}}
11 11
12 var index = Math.floor(Math.random() * files.length); 12 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 @@
1---
2title: Autocento of the breakfast table
3id: toc
4subtitle: table of contents
5genre: list
6
7project:
8 title: About autocento
9 class: meta
10...
11
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 @@
1#!/bin/bash
2
3outFile="$1";
4shift 1;
5glob="$@";
6
7echo -n "Compiling $outFile"
8
9for file in $glob; do
10 title=$(grep '^title: ' $file | cut -d' ' -f2-);
11 subtitle=$(grep '^subtitle: ' $file | cut -d' ' -f2-);
12 htmlFile="${file%.txt}.html"
13 # if [[ "$title" == "Autocento of the breakfast table" ]]; then
14 # echo "#. [$subtitle]($htmlFile)" >> "$outFile";
15 # else
16 # echo "#. [$title]($htmlFile)" >> "$outFile";
17 # fi
18 if [[ -n "$subtitle" ]]; then
19 echo "#. [$title: $subtitle]($htmlFile)" >> "$outFile"
20 else
21 echo "#. [$title]($htmlFile)" >> "$outFile";
22 fi
23 echo -n "."
24done
25
26echo "Done."
diff --git a/trunk/versify.exe b/trunk/versify.exe index cf9809c..d479c80 100644 --- a/trunk/versify.exe +++ b/trunk/versify.exe
Binary files differ