= Book reviews notes == To do - cassidy -- How markets fail - cash -- The mind of the South - morozov -- To save everything click here == Backup to crow 1. On this machine, do: + ---------- $ bzr serve ---------- 2. On crow, do: + ---------- $ cd ~/a1/Bzr/Reviews $ bzr merge bzr://quail ---------- == Publishing to my blog 1. With ``asciidoc``, use the following to produce HTML for my blog: + ---------- $ asciidoc -b wordpress my_doc.txt ---------- + Or, use `asciidoc_wordpress`. 2. Then, edit the result (my_doc.html) in a GUI editor (e.g. Gedit or Geany) and replace end-of-line characters with blanks. Or, in Vim, do ":%s/\n/ /g". 3. Next, copy and paste it into a new blog post edit, after clicking on the "Text" tab. == Publishing to Amazon reviews 1. Copy to ``tmp.txt``: + ---------- cp my_review.txt tmp.txt ---------- 2. Delete the header and footer lines (the title and the Vim mode line). 3. In Vim, do ":set textwidth=90", then reformat all paragraphs: "gggqG" 4. Then, load the file in a GUI text editor and copy and paste to an Amazon review. == Publishing at Lulu.com 1. Translate to LibreOffice .odt:: $ rst2odt.py book_reviews01.txt book_reviews01.odt 2. Edit ``book_reviews01.odt`` in LibreOffice. Use the Page tab in menu item Format/Page... to change the following: - Width: 6" - Height: 9" - All borders: 0.75" 3. Add header and footer: - Header: "Book reviews: a collection" -- centered - Footer: Page n -- centered 4. Add page breaks: (1) after the title page, (2) after the table of contents. 5. Right click on the table of contents and do ``Update Index/Table``. 6. Use the ``File/Export to PDF`` menu item to create PDF. == Updating this repository On quail, do: --------- $ bzr ci $ cd ~/a1/Bzr/Reviews $ bzr serve --------- On crow, do: --------- $ cd ~/a1/Bzr/Reviews $ bzr merge bzr://quail $ bzr ci --------- I can also do this update in the reverse direction, i.e. from the repo on crow to that on quail, rather than from quail to crow. // vim: ft=asciidoc: