diff options
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 |