{"id":7941,"date":"2018-06-23T19:59:44","date_gmt":"2018-06-24T02:59:44","guid":{"rendered":"http:\/\/www.rudyrucker.com\/blog\/?p=7941"},"modified":"2018-06-24T11:28:06","modified_gmt":"2018-06-24T18:28:06","slug":"quickly-convert-a-doc-into-an-ebook","status":"publish","type":"post","link":"https:\/\/www.rudyrucker.com\/blog\/2018\/06\/23\/quickly-convert-a-doc-into-an-ebook\/","title":{"rendered":"Quickly Convert a Document into an Ebook"},"content":{"rendered":"<p>I just finished doing my final revision of my novel <em>Million Mile Road Trip<\/em>, which will appear in hardback from Night Shade Books in May, 2019, and in ebook from Transreal Books at the same time. And today I wanted to quickly make an ebook out of it to share with Marc Laidlaw, who&#8217;s going to write an intro.<\/p>\n<p>Re. ebooks, it means turning your doc into an EPUB and\/or a MOBI file, for use as ebooks.  Kindles read MOBI. Browsers and the iBook app and other devices read EPUB.  And today I&#8217;ll explain a way to get from a a text RTF file to an Amazon ebook using just the free <a href=\"https:\/\/calibre-ebook.com\/\">Calibre <\/a>program.<br \/>\nAnd, like I&#8221;m saying, I tested the method on<em> Million Mile Road Trip <\/em>today.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/rudyrucker_millionmileroadtrip_ebook.jpg\" alt=\"\" height=\"700\" \/><br \/>\n[The Night Shade release will have a different cover, very cool, with art by Bill Carman. The art here is by me, and it depicts the novel&#8217;s chief villain, an evil extrademensional alien bagpipe who spews &#8220;leech saucers&#8221; that want parasitize us here on Earth.]<\/p>\n<p> Although I&#8217;d <em>like<\/em> to let you to get your hands on the <em>Million Mile Road Trip<\/em> book right now,I&#8217;m going to hold back on distributing it until after we go to official publication in May, 2019.  But here&#8217;s a tiny taste that I think is funny.<\/p>\n<blockquote><p>\u201cThe world is made of stoooories,\u201d\u009d says the flat cow, getting into a divine wisdom routine. \u201cNot atooooms. Words weave the cosmoooos. A tangle of gossip, archetypes, and jooookes.\u201d\u009d<\/p>\n<p>The moos echo in Villy\u2019s head. He\u2019s always imagined his thoughts to be images of the firm external world. But Yulia\u2019s saying it\u2019s the other way around. Villy makes an effort to get to that state of mind. And for a few seconds he\u2019s there. Reality is a sea of sensations, feelings, and tales, intricately linked, with everything alluding to everything else. And the stodgy, solid, kick-a-brick, normative world\u2014that part is the illusion. That part is the dream.<br \/>\nAs for the split between ballyworld and mappyworld\u2014there\u2019s really no difference between dreaming the world as a bunch of planets, or dreaming the world as an endless sheet of basins. Either way, it\u2019s the same gnarly thing underneath. Feet on a welcome mat. A tangle of talk. Yeah. Villy feels high as a kite.<\/p><\/blockquote>\n<p>Feet on a welcome mat.  <em>Yah, mon.<\/em><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/vernonscultside.jpg\" alt=\"\" \/><br \/>\n[Sculptures by my friend Vernon Head of Sacramento.]<\/p>\n<p>Okay, back to maximum geekage.<\/p>\n<p>* In converting a document into an ebook, you want to have a decent Table of Contents, which is sometimes a stumbling block. So now I&#8217;ll describe a pretty simple method that takes one step in Calibre. Sometimes I use more complicated processes.  In fact most of the time, I first bring my document into InDesign and export an EPUB from there. But that&#8217;s hard for a beginner.  Another more complicated option is to do an intermediate conversion from document to HTML and then convert the HTML into EPUB. When I was starting out with self-pubbing ebooks I used to do that. For some of my earlier thoughts on the process, see my series of posts <a href=\"https:\/\/www.rudyrucker.com\/blog\/2012\/04\/20\/do-it-yourself-ebooks-1-getting-started\/\">&#8220;How to Make an Ebook.&#8221;<\/a>. These posts are from 2011 and I updated them in 2016. But now I&#8217;m giving you a fresh 2018 look.   <\/p>\n<p> *  I work in Microsoft Word, with DOC files that I can then convert to the agnostic format RTF (rich text format). But you can use another word processor just as well, and save your file as an RTF just the same. In order to get a good table of contents, you have to give all your chapter headings the same style in your DOC. Use the standard Word style name Heading 1. (If you use the more HTML-like style name h1, this method won\u2019t work.)  Re. putting the Heading 1 style on each chapter title, you have to be kind of robotic and geeky about this.  (a) Search through the book for every chapter title and double check that it has the Heading 1 format. (b) Search through the book for the Style Heading 1, and make sure it\u2019s not on things like blank skipped lines or on random works.  If you want subsections in your TOC (not always a good idea) you have to format the subsection titles with standard Word formats like Heading 2, Heading 3 and so on. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/orbieshand.jpg\" alt=\"\" \/><\/p>\n<p>*Save the edited DOC for safekeeping.  And then save it as an RTF. If the document has a built-in table of contents that you generated with Word or with some ohte wordprocessor, delete that from the RTF.  It\u2019ll just put a junky looking TOC (with irrelevant page numbers) into the start of your ebook, also having the TOC puts extra links into the ebook that you don\u2019t really need.  Now Open Calibre and do \u201cAdd a Book\u201d\u009d based in the RTF file. (You can\u2019t add DOC files to Calibre). By the way, note that if you later revise your RTF, you can use the Convert Books dialog to delete the old RTF and add in your new one, without changing all the other settings.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/twotoneruck.jpg\" alt=\"\" \/><\/p>\n<p>* Set the Metadata fields in Calibre.  That is, put in an image for the cover, if you have one, 1200 x 1600 works fine.  Also put in your name and the title, and maybe a Copyright line, and a comment on what the book is, like what version.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/skybackyard.jpg\" alt=\"\" \/><\/p>\n<p>* Go into the Convert Books dialog in Calibre and set output to EPUB In the Convert Books dialog.  If that one works, then you can convert to MOBI later.  I\u2019m in the habit of making an EPUB because I can look at it on my Chrome browser using, like the Magic Scroll app.  Also if there\u2019s something screwed up about the book I get, I can open up the EPUB in the freeware Sigil program and look at the code inside the EPUB.  Also if I want to post my book to KDP to appear on Amazon, I have to send them an EPUB\u2026they don\u2019t want a MOBI that I made.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/eddiesociable.jpg\" alt=\"\" \/><br \/>\n[My friend Edward Marritz, cinematographer.]<\/p>\n<p>* Before setting the conversion in motion, go to the graphical menu bar on the side of the Covert Books dialog, open the  Look and Feel dialog and go to the  Layout sheet and put a checkmark by &#8220;Remove Spacing between paragraphs&#8221;  The default paragraph first line indent is set to 1.5 em, which is reasonable.  It looks better to have indents than to skip lines.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/bladrunnerdentistclose.jpg\" alt=\"\" \/><\/p>\n<p>* Now go to the Convert Books | Table of Contents.  My sense is that you will get a good table of contents no matter what settings you have here, as long as you have your chapters all in Heading 1 format.  I tend to think you might as well have all the boxes unchecked. If you want, you can put a check mark by &#8220;Force use of auto-generated Table of Contents,&#8221;  but so far as I can tell, it does not in fact matter.  My sense is that if Calibre sees an RTF with Heading 1 chapter titles, it assumes that\u2019s what\u2019s supposed to be in the Contents. (Correct me in a comment if you find this is wrong.)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/skyalley.jpg\" alt=\"\" \/><\/p>\n<p>*  If you have problems with the contents, try this. Convert again, but this time, go into the Table of Contents dialog, and go way down at the bottom of the dialog, and put a checkmark by &#8220;Manually fine-tune the T0C after conversion is completed.\u201d\u009d  Then do the conversion, and Calibre will open an &#8220;Edit the Toc&#8221; dialog after building the EPUB.  If the autogenerated Toc sucks, click the &#8220;Generate Toc from major headings\u201d\u009d button in the \u201cEdit the Toc\u201d\u009d dialog and probably you&#8217;ll get a chance to ask for the Heading 1 style headings, and maybe you\u2019ll get a full book TOC then. Possibly you have some of bogus entries (if you\u2019ve been careless about using the Heading 1 style), or possibly you have some missing entries (if you\u2019ve been to stingy with your Heading 1 style.)  You can fix these using the the &#8220;Remove this Entry\u201d\u009d and\/or the &#8220;New Entry&#8221; buttons. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/flagham.jpg\" alt=\"\" \/><\/p>\n<p>* Now you\u2019re good.  Close the &#8220;Edit the Toc&#8221; dialog, and click on the &#8220;Path: Click to Open&#8221; line in the lower right corner of the Caliber screen.  This directs you to some obscure directory holding your new-built EPUB with the good Toc.  Copy this EPUB file to somewhere where you can find it easily again.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/c6kisonrope.jpg\" alt=\"\" \/><\/p>\n<p>* Test your file in, say, an epub reader app or extension in your browser, or directly in Safari, or in iBooks.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/panthercreek.jpg\" alt=\"\" \/><\/p>\n<p>* And test your EPUB with the downloadable Kindle Previewer tool if you like.  In the Kindle Previewer, the Toc will not seem to work, but this is misleading.  The NCX View over at the right side of the Kindle Previewer menu bar does work .  And this means that Amazon will in fact be able to build a working ebook with a proper Toc from your EPUB.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/twoguardcows.jpg\" alt=\"\" \/><\/p>\n<p>* The Kindle Previewer saves a MOBI version of your EPUB to your disk, you&#8217;ll find it in a subdirectory of the directory where your EPUB lives.  You can copy this MOBI to your Kindle device to test it some more.  The Toc will work on your Kindle.  Also you can email this MOBI to your friends who have Kindles.  Alternate: you can use Calibre to convert your original RTF to a MOBI as well.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/sparroweatbone.jpg\" alt=\"\" \/><\/p>\n<p>* By the way, what if Kindle Previewer finds errors or warnings in your EPUB?  What if Amazon KDP won\u2019t convert it?  Open the book in Calibre. Select Edit Book. In that dialog there should be a pane for &#8220;Check Book.&#8221;  Click on &#8220;Run Check.&#8221; If it finds errors, click, &#8220;Try to correct all fixable errors automatically.&#8221; If that works, resubmit the EPUB.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/rudyhoodie.jpg\" alt=\"\" \/><\/p>\n<p>* If the automatic error fixing doesn\u2019t  work, Calibre allows you to \u201cEdit your Book,\u201d\u009d that is, edit the EPUB files, which are basically a bunch of HTML files.  This is tricky for a beginner, as these edits may break things, but going back to the \u201cCheck Book\u201d\u009d can often fix things.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/woomo_friedegg_mirrorflower.jpg\" alt=\"\" \/><\/p>\n<p>* If you don\u2019t like how your EPUB looks, you can poke around in the Calibre settings, The Convert Books | Look and Feel dialog has a number of panes.  And sometimes it makes a nicer output if go to Convert Books | Heuristic Processing and check the box by \u201cTurn On Heuristic Processing.\u201d\u009d  If you\u2019re unsure about the other checkboxes here, try Googling about them or try looking at the Calibre documentation.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.rudyrucker.com\/blog\/images8\/trumpdeportado.jpg\" alt=\"\" \/><\/p>\n<p>* When you\u2019re done, upload the EPUB to Amazon KDP to publish it on Amazon! Alternately you can upload the MOBI to Amazon, as long as you use the MOBI that was created by the Kindle Previewer.  (KDP won\u2019t accept a MOBI made by Calibre.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just finished doing my final revision of my novel Million Mile Road Trip, which will appear in hardback from Night Shade Books in May, 2019, and in ebook from Transreal Books at the same time. And today I wanted to quickly make an ebook out of it to share with Marc Laidlaw, who&#8217;s going [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7941","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/posts\/7941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/comments?post=7941"}],"version-history":[{"count":10,"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/posts\/7941\/revisions"}],"predecessor-version":[{"id":7951,"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/posts\/7941\/revisions\/7951"}],"wp:attachment":[{"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/media?parent=7941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/categories?post=7941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rudyrucker.com\/blog\/wp-json\/wp\/v2\/tags?post=7941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}