X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/06361e33a389e93f50573dd4b90aa16710ba0ac6..96afcb1558dc71921389416cf0e0ba4aec0e8ae3:/fixup.rb diff --git a/fixup.rb b/fixup.rb index b96f666..d15b243 100644 --- 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.