Browse Source

switch to in canto tag

main
lhess2021 4 years ago
parent
commit
723650693b
  1. 3
      shell-scripts.d/top-level-tags.sh

3
shell-scripts.d/top-level-tags.sh

@ -3,7 +3,6 @@
# This script adds top-level tags to your XML files.
# - XML header
# - TEI header
# - <canto> and <terzine> tags with attributes
echo -e "\nAdding top-level tags."
@ -34,7 +33,7 @@ do
\t\t<\/fileDesc>\
\t<\/teiHeader>\
\t<text>\
\t\t<canto c_num=~CANTO_NUM~ comm_num=~COMM_NUM~>\
\t\t<canto canto_num=~CANTO_NUM~ comm_num=~COMM_NUM~>\
\t\t\t<tercets>\n/' "$file"
# Replace canto number, comedy number, and canticle
sed -i -e "s/~TITLE_CANTO_NUM~/$CANTO_NUM/" "$file"

Loading…
Cancel
Save