Hot answers tagged

31

You can "polish" your ebooks with calibre since version 1.0. But you have to add the capability to the calibre interface: To use this tool, go to Preferences->Toolbar and add the Polish books tool to the main toolbar. Then simply select the books you want to be polished and click the Polish books button. Polishing, unlike conversion, does not change the ...


27

When someone asks me what GUI to use I suggest Sigil. I find with Sigil, unlike it's alternatives, it does not add unneeded code to your ePubs which causes bloating, errors, and slower viewing on devices: Man page on github


23

Somehow I missed that … thanks to Donald.McLean’s answer, I found it. In the ePub editor, I hit Ctrl+F, and a search & replace tool showed up at the bottom: I have used the regex mode and the following patterns: -</p>\n<p[^>]*> replaced with nothing to remove paragraph breaks within words. I hit Replace all here. \s</p>\n<p[^&...


22

Calibre has a feature that allows you to unpack an ePub file into the component parts (usually chapters), which you can then edit. When you have finished your edits, Calibre will repackage them back into an ePub file. From the main Calibre view, right click on the book listing. You should get a popup menu with an option to "Edit book". Selecting this will ...


22

According to this page, EPUB3 adds, changes or improves: Added HTML5 support SVG documents can now appear in the spine in EPUB 3 Support for MathML Semantic Inflection Content switching has been simplified by having its processing model defined so that it does not require document preprocessing Navigation Linking Scripting Triggers Bindings Added modules ...


21

zip -rX ../my.epub mimetype META-INF/ OEBPS/ Without -X you could get the following when validating it with EpubCheck: ERROR: my.epub: Mimetype entry must not have an extra field in its ZIP header If mimetype is not the first in the epub file EpubCheck prints the following: ERROR: my.epub: Mimetype entry missing or not the first in archive


19

Here's an epub 3.0 file that validates with epubcheck 3.0.1 (the current version at the time of writing). There's plenty more info that can (and should) go in there, of course, but you asked for minimums. We'll start with file structure: in the root directory, there's one mimetype file and two folders--the OEBPS and the META-INF. Here's the mimetype file ...


18

The IDPF states the following in a thread about EPUB 3 Rendering in EPUB 2 reading systems Although EPUB 3 is not perfectly backwards compatible with EPUB 2, a goal of the recent revision was to ensure, as much as possible, a basic level of rendering when features overlap. The thread particularly mentions that providing the NCX data is necessary, which ...


18

IDPF, the consortium that promotes the .epub standard, has released a tool named epubcheck. It is available both via an online web-app here, or as a stand-alone program here. There is also another tool called FlightCrew, available here; this is also integrated within Sigil, a full fledged epub editor (available here). All these tools are free and cross-...


17

Calibre has had a book editing feature, since version 1.15. If you manage your ebooks in Calibre, just right-click on the book and select "Edit Book". If you have Calibre installed, but do not use it to manage your books, you can start the editor from the commandline with: ebook-edit /path/to/your.ebook One thing you should note however is that in an EPUB ...


16

Since I find scrolling and zooming on an ebook cumbersome, what I would do with a large image/map is divide it in smaller pieces, slightly smaller than my screen resolution (30 or so pixel less -> 15 on each side). After that generate separate HTML pages, for each image part, and put in hyper-links from page to page on the sides (alternatively I would ...


15

Depending on what you mean by ebook creation software. You can always: Rename the epub to a zip (change the epub suffix of the filename to zip) Extract the zip file. Manually edit the extracted HTML files with your favorite text editor - this assumes that you have an understanding of formatting with HTML Repackage the files/folder to zip again Rename the ...


14

The short answer is yes, and I have ranted about this in parallelizing EPUB polishing. The problem with some Linux systems (Ubuntu) is that there is a limit to the message popup queue. Since ebook polishing (using calibre) is done quicker than the time a message is displayed, this queue overflows and calibre cannot write messages to it any more, and (on ...


13

The easiest way is to use an ePub editor. One have have used is Sigil which is free. This allows you to edit the data in the book which is in the HTML format and also control what XHTML pages are in the book. I would guess that the adverts are on separate XHTML pages to the rest and so you only need to edit the contents.


13

According to Kovid Goyal ( creator of Calibre) you need to convert to azw3 instead of mobi.


13

EPUB is an open format so you can find the standard specifications online. Wikipedia has a good article on the EPUB format. If you want a brief description of the characteristics you just mentioned you can find in this article here. Directory structure: EpubFolderYouWant META-INF container.xml mimetype content.opf toc.ncx Needed files: ...


13

Calibre comes with an integrated editor that can handle epub and azw3 (Kindle) files. It has a set of features comparable to Sigil, maybe even more complete; I think that it is also more actively maintained. A manual and an introductory video are available on Calibre website Calibre main program also has some minor tweaking capabilities, like editing the ...


13

Part of the program I wrote for scanning and EPUB-ing scanned images can be reused for this purpose. I tried to make a minimal version, the output was tested with calibre book reader and a BookEen reading device and passed EpubCheck version 3.0.1 without errors. The program requires you to provide a Title (--title) and one or more JPEG files, which are ...


13

As you are on Linux, the way to do this is to change to the directory at the base of your library and do: find . -name "*.epub" -exec /bin/bash -c 'ebook-polish --opf="$(dirname "$0")/metadata.opf" "$0" ' {} \; This way you polish them all in one go.


11

Papyrus (http://papyruseditor.com) is a WYSIWYG editor for ebooks. You can edit your book in WYSIWYG interface Also, You can create your ebook cover right inside the editor Disclosure: I am the creator of this website.


11

This error can occur when the mimetype is compressed inside the epub zip file. What can be done is to create a zip file with only the mimetype file inside but with no compression. You can do that with 7-Zip setting the Compression level to Store. In Linux, you can also do that with the terminal command: zip -0 file.epub mimetype Then drag and drop the ...


11

The device that you need is basically an e-ink ereader, all of them have the features that you have requested. Since there are many different brands and models, each one with its own set of different features, I suggest you to take a look at the comparison page on Wikipedia, that has in one place all the informations that you need to make your choice; if ...


11

This is an indication of the quality of the ebook. (v5.0) should be close to retail quality: v1.x: publication has been scanned and OCR-ed, but not spell checked. v2.x: publication has been scanned, OCR-ed, and spell checked but not proofread. v3.x: publication has been scanned, OCR-ed, spell checked, and proofread. V4.x: publication has been proofread by ...


10

From a production standpoint, there aren't really that many differences at a bare-bones level--there's the switch from toc.ncx to toc.xhtml to provide navigational information, a few new metadata elements required in the content.opf file (like dc:terms modified, which indicates when the file was last modified), and a new header to use. While you can leave ...


10

I don't think there is an official way to put footnotes, at least in EPUB2. What I do in the ebooks I prepare is to add an hyperlink to the note (placed in a chapter of its own at the end of the book, and to put at the end of the note another hyperlink which goes back to the original position. It's a bit ugly, but at least it helps readers (in the sense of ...


10

Brackets.io As a suggestion, I have been enjoying using Brackets to create epubs on my Mac. Procedure Unarchive your epub into a folder (change the extension to .zip, and extract). Open Brackets, and go to File -> Open Folder. Select your extracted epub folder. Edit any of your HTML and CSS files! Activate Live Preview to view the ebook in Chrome! The ...


10

I assume you don't write the HTML directly, but use something like MarkDown or reST. But even if you do, you should look at Pandoc. The program can read HTML and generate EPUB 2 or EPUB 3 (among others).


10

Please note that if you simply need to transfer .epub files to the reader, you can simply connect it to your computer with an USB cable, it will be treated like an external USB storage drive; you can simply copy your books on the reader (maybe on a new sub-directory to keep things clean and neat) and when you disconnect it, it will update the database and ...


10

exiftool can read (but not write) epub meta data. For example exiftool -T -Title main.epub


9

The answer to that can largely be broken down into two parts for EPUB2 and EPUB3. First, for EPUB2 as it is currently the most common EPUB format: The most important thing to understand with regards to EPUB compatibility is that there are actually only a few readers available for commercial (i.e. DRM'd) EPUB content. As you might expect, Amazon and Apple ...


Only top voted, non community-wiki answers of a minimum length are eligible