Storage for XML files used to represent Dante's *Divine Comedy*.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

17 lines
751 B

#!/bin/bash
# A script which converts plaintext cantos from one canticle to XML formatting.
# Must be run inside canticle directory: [inferno,purgatorio,paradiso]-xml.d
# Tag scripts must be in the above directory.
# 1) word-tags.sh --- add <word></word> tags to each word.
# 2) terzina-tags.sh --- add <terzina num="..."> tags to each terzina
# 3) top-level-tags.sh --- add XML header; add <canto> and <terzine> tags
if [[ "$(pwd | awk -F'/' '{print $NF}')" =~ inferno-xml.d|purgatorio-xml.d|paradiso-xml.d ]]; then
clear
echo "Starting..."
cp ../word-tags.sh . && ./word-tags.sh && rm word-tags.sh
cp ../terzina-tags.sh . && ./terzina-tags.sh && rm terzina-tags.sh
cp ../top-level-tags.sh . && ./top-level-tags.sh && rm top-level-tags.sh
fi