diff options
author | Troy A. Griffitts <scribe@crosswire.org> | 2020-12-21 07:00:22 +0000 |
---|---|---|
committer | Troy A. Griffitts <scribe@crosswire.org> | 2020-12-21 07:00:22 +0000 |
commit | 02cac4adc5219c05c0eb24f89272f8ce3c971873 (patch) | |
tree | 762e14cddf86a30f2c4c63658c2ba49547ced5f4 /modules/apostolicfathers/impify.sh | |
parent | 41c1d9380d127f5d8b21ebf11b02b4b86cddcc80 (diff) | |
download | sword-tools-02cac4adc5219c05c0eb24f89272f8ce3c971873.tar.gz |
fixed a few problems with the script and added check for what seems to be a typo in the data with Hermas 9
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@537 07627401-56e2-0310-80f4-f8cd0041bdcd
Diffstat (limited to 'modules/apostolicfathers/impify.sh')
-rwxr-xr-x | modules/apostolicfathers/impify.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/apostolicfathers/impify.sh b/modules/apostolicfathers/impify.sh index 3471cde..23758e9 100755 --- a/modules/apostolicfathers/impify.sh +++ b/modules/apostolicfathers/impify.sh @@ -9,7 +9,9 @@ do # Muliple reference systems which start chapters over after main sections # But also include a chapter numbering scheme which doesn't start over # so for now, we're choosing that one. - sed s/^$BOOK/\$\$\$$BOOK/ $i|sed s/prologue:1/1:0/ \ + sed "s/:heading$/:0/" $i \ + |sed s/prologue:1/1:0/ \ + |sed "s/^$BOOK\\(.*[0-9]\\)$/\$\$\$$BOOK\\1/" \ |sed "s/\\(\$\$\$[^ ]* \\)[0-9]*\\[\\([0-9]*\\)0\\^/\\1\\21/" \ |sed "s/\\(\$\$\$[^ ]* \\)[0-9]*\\[\\([0-9]*\\)1\\^/\\1\\22/" \ |sed "s/\\(\$\$\$[^ ]* \\)[0-9]*\\[\\([0-9]*\\)2\\^/\\1\\23/" \ @@ -22,6 +24,7 @@ do |sed "s/\\(\$\$\$[^ ]* \\)[0-9]*\\[104_/\\1106/" \ |sed "s/\\(\$\$\$[^ ]* \\)[0-9]*\\[104\`/\\1107/" \ |sed "s/\\(\$\$\$[^ ]* \\)[0-9]*\\[104a/\\1108/" \ + |sed "s/\\(\$\$\$.* \\)[0-9]*\\[\\(.*\\)\\]y/\\1\\2/" \ |sed "s/\\(\$\$\$.* \\)[0-9]*\\[\\(.*\\)\\]/\\1\\2/" \ >> $i.imp done |