diff options
author | luxagraf <sng@luxagraf.net> | 2018-10-14 15:12:27 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-10-14 15:12:27 -0500 |
commit | fe8bddcbe8063673252aeeb74078aca729f1357d (patch) | |
tree | a43d2f61071eccb17b3040f88c952b217c52f634 | |
parent | 5c08724891fe963c0107f17ff869711c061b84a1 (diff) |
moved to folder for repo import
-rwxr-xr-x | format.sh | 14 | ||||
-rw-r--r-- | missing-persons/CH-1.txt (renamed from CH-1.txt) | 0 | ||||
-rw-r--r-- | missing-persons/CH-2.txt (renamed from CH-2.txt) | 0 | ||||
-rw-r--r-- | missing-persons/CH-3.txt (renamed from CH-3.txt) | 0 | ||||
-rw-r--r-- | missing-persons/CH-4.txt (renamed from CH-4.txt) | 0 | ||||
-rw-r--r-- | missing-persons/CH-5.txt (renamed from CH-5.txt) | 0 | ||||
-rw-r--r-- | missing-persons/CH-6.txt (renamed from CH-6.txt) | 0 | ||||
-rw-r--r-- | missing-persons/CH-7.txt (renamed from CH-7.txt) | 0 | ||||
-rw-r--r-- | missing-persons/_Cuts.txt (renamed from _Cuts.txt) | 0 | ||||
-rw-r--r-- | missing-persons/notes/russianradio.pdf (renamed from notes/russianradio.pdf) | bin | 2472829 -> 2472829 bytes |
10 files changed, 14 insertions, 0 deletions
diff --git a/format.sh b/format.sh new file mode 100755 index 0000000..609fc36 --- /dev/null +++ b/format.sh @@ -0,0 +1,14 @@ +#!/bin/bash +#find all text files (chapters), but nothing staring with an underscore +for y in `ls *.txt | grep -v _.*`; +do + #first kill all the blank lines + perl -p -e 's/^\n//g' $y > temp; + #now add a tab so paragraphs are indented + perl -pi -e 's/^/\n\t/g' temp; + #finally, respect the section breaks within chapters + perl -pi -e 's/-----/\n\n\n\n/g' temp; mv temp book/$y; + #a2x -f chunked -d book book/book.asc --verbose + #a2x -f pdf --fop -d book book/book.asc --verbose + #git scribe gen [site|html|pdf|epub|mobi|all] +done diff --git a/CH-1.txt b/missing-persons/CH-1.txt index eb0c356..eb0c356 100644 --- a/CH-1.txt +++ b/missing-persons/CH-1.txt diff --git a/CH-2.txt b/missing-persons/CH-2.txt index 83e4d13..83e4d13 100644 --- a/CH-2.txt +++ b/missing-persons/CH-2.txt diff --git a/CH-3.txt b/missing-persons/CH-3.txt index 5e3b267..5e3b267 100644 --- a/CH-3.txt +++ b/missing-persons/CH-3.txt diff --git a/CH-4.txt b/missing-persons/CH-4.txt index eba4171..eba4171 100644 --- a/CH-4.txt +++ b/missing-persons/CH-4.txt diff --git a/CH-5.txt b/missing-persons/CH-5.txt index 6fe9ec1..6fe9ec1 100644 --- a/CH-5.txt +++ b/missing-persons/CH-5.txt diff --git a/CH-6.txt b/missing-persons/CH-6.txt index ed417f3..ed417f3 100644 --- a/CH-6.txt +++ b/missing-persons/CH-6.txt diff --git a/CH-7.txt b/missing-persons/CH-7.txt index 17a018b..17a018b 100644 --- a/CH-7.txt +++ b/missing-persons/CH-7.txt diff --git a/_Cuts.txt b/missing-persons/_Cuts.txt index fd63746..fd63746 100644 --- a/_Cuts.txt +++ b/missing-persons/_Cuts.txt diff --git a/notes/russianradio.pdf b/missing-persons/notes/russianradio.pdf Binary files differindex 42e6b06..42e6b06 100644 --- a/notes/russianradio.pdf +++ b/missing-persons/notes/russianradio.pdf |