]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - fixup.rb
Minor fixups for consistency
[text-madewithcc.git] / fixup.rb
index b96f66625f40c4811713176a39df51bfe25ee169..d15b2438d4ebe4cccfb328e26ee47cc447912586 100644 (file)
--- a/fixup.rb
+++ b/fixup.rb
@@ -27,6 +27,7 @@ log 0, 'Merging multiline sentences '
   ['Providing a custom service to consumers of your work *', '\[MARKET-BASED\]*'],
   ['Memberships and individual donations', '*\[RECIPROCITY-BASED\]*'],
   ['The', '', 'Creative', '', 'Commons', '', 'Licenses'],
+  ['jonathanmann.net and', '', 'jonathanmann.bandcamp.com'],
   ['PLOS','', '(Public Library of Science)']
 ].each do |str|
   # This should be done more generic, more robust... But before
@@ -125,7 +126,7 @@ log 0, 'Mark up headings'
   [4, 'Build a community'],
   [4, 'Give more to the commons than you take'],
   [4, 'Involve people in what you do'],
-  [4, 'Notes'],
+  [3, 'Notes'],
   [2, 'The Creative Commons Licenses'],
   [1, 'Part 2'],
   [1, 'The Case Studies'],
@@ -165,7 +166,11 @@ log 0, 'Mark up headings'
   data[at] = '%s %s' % ['#' * item[0], data[at]]
 end
 
-
+# We have the explicit strings "Part 1" and "Part 2" as structural
+# elements — They are to be generated upon book compilation. Nuke
+# them.
+data.delete("# Part 1")
+data.delete("# Part 2")
 
 # Join erroneously split paragraphs: Write the contents of the line
 # _preceding_ the unneeded break, the break will be removed.