Hot answers tagged

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


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 ...


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

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

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 ...


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

As far as I know .mobi files can't be edited directly, they have to be converted first to another editable format. So, no, you can't directly edit .mobi files in just one step. See this thread on MobileRead forums for further reference. Anyway, I think that there is an easy a solution to your problem. Please note that in providing the following informations ...


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

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


9

Here's a quick bash script (with no error-checking whatsoever) to do what you want: #!/bin/bash # if [ $# -lt 3 ] then echo echo "Usage: minfo -m <meta-type> <epub-file>" echo else fileloc=`unzip -l "$3" | grep -Po '\b[^\s-]*\.opf\b'` metafound=`zipgrep '<dc:'$2'>(.*)</dc:'$2'>' "$3" $fileloc` echo `expr "$...


8

Besides using a real ebook editor like Sigil, there is an easier way to do it. Calibre has a very useful additional plugin called EpubSplit, that with a simple interface let's you select the single .html files inside the .epub and create a new ebook just from them; after the process is also possible to edit the metadata of the newly created ebook. These ...


7

The files and directory structure of the EPUB files is specified in the OCF (OpenContainerFormat). There are two versions are most interesting: 2.0.1 and 3.0.1. Both specify only one required file in a specific subdirectory, and that is: META-INF/container.xml There are some optional files that can go in that directory as well (signatures.xml, encrytpion....


6

If the book has not a DRM and you are free to edit/convert it, you can use Calibre to convert to the same format (i.e. you can use an .epub as a source file and still convert to an .epub output. In the Heuristic processing tab make sure to enable both the processing and Remove unnecessary hyphenation; if you want you can also enable other options here if ...


6

Is it possible to use a full fledged editor like Sigil. It works with .epub files, but if needed, before the editing, it's possible to use Calibre to convert the source ebook into .epub, then reconvert it after the job. Anyway, for a faster and easier solution, Calibre has a very useful additional plugin called EpubMerge, that, as the name imply, can merge ...


6

You can download a free version of Dante's Divine Comedy from ReadBeyond (Inferno, Purgatorio, Paradiso), these are well formatted epubs that also have numbered lines. You may find useful to look inside them and check their structure, to see if you can replicate these CSS settings for your own needs.


6

An EPUB file is just a zip file, and the book's metadata is contained in the OPF (Open Packaging Format) file, which is an XML file. The title is located in the /package/metadata/dc:title element. The other info you're looking for is probably also in children of the metadata element. Here's a good intro to the EPUB format: http://www.ibm.com/developerworks/...


5

Limiting compatibility issues Perform a validation of the file structure. See this question about this subject. Making it faster to load Keep the size of individual internal HTML files small. The reader usually load them individually when needed, and it is (obviously) faster to load a small file than a big one; as a rule of thumb the size limit is ...


4

Taken from here: Open Adobe Reader. Go to Edit - Preferences - Accessibility. Make sure the "Replace Document Colors" is checked and click on Custom Color. Click "Page Background" color and then select "other color." I don't know if the version of Adobe Reader matters or not (or if it matches what you have). You could also consider using a different PDF ...


4

The EPUB 3 specification1 suggests including embedded fonts for compatibility: 3.4 Fonts EPUB 3 does not require that Reading Systems come with any particular set of built-in system fonts. As occurs in Web contexts, Users in a particular locale might have installed fonts that omit characters required for other locales, and Reading Systems might ...


4

What are you looking to edit? Content or basic metadata? If it is basic metadata, there is a program I have found and played with called MOBIeditor. It's written in .Net so you need Windows (the source code is available so you could grab that and compile it with Mono if you are running *nix/OSX). It is very basic though, allowing you to edit only the ...


4

You can use the following CSS rules to style respectively even or odd table rows (See the Example on W3schools): tr:nth-child(even) { background-color: #f2f2f2 } tr:nth-child(odd) { background-color: #f2f2f2 }


3

Most online publishers have a method to allow for updates to published ebooks. The user generally is given way to identify that a book has an update, then the user is given the option to re-download the work. I don't think any publisher has "push" to reader. So yes there is way to redistribute the book, but it is dependent on user to perform some action ...


3

Kobo ereader devices have two different internal reading software. Ebooks downloaded from the Kobo bookstore are a modified epub format with the particular extension .kepub.epub, while if you sideload a standard epub from your PC it retains its original extension (.epub). By checking the extension of the files, the software automatically select the ...


3

I have never tried this...but have heard good things about Scrivener What differentiates from other products here are the productivity tools for writers: outlining story boarding stores text snips manuscript formatting Note I am not in anyway affiliated with Scrivener.


3

I have heard of 2epub but I have never used it nor would I believe you would get a good quality ebook. I would suggest doing this with InDesign that will allow you to create .epub or .pdf files. You can export as an .epub file: Export to .pdf file:


3

I think that PDFtk is the tool you need. https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/


3

To print out epub metadata, exiftool yourbook.epub To edit the metadata, you'd need to unzip it and then zip it back again, as mentioned by others, epub is just a zip file mkdir tempfolder mv yourbook.epub tempfolder cd tempfolder unzip yourbook.epub mv yourbook.epub ../youroldbook.epub Find and edit the metadata in opf file find . -iname '*.opf' ...


3

According to this blog article, you should use the display: inline-block property on a div selector that encloses your header and paragraph. Here is an excerpt from the said article: If you set the display property for a div to be inline-block, iBooks will display the contents of the entire div together on a single page, skipping to a new page if ...


3

I would use h4 {page-break-after: avoid;} p { widows: 2; orphans: 2; } I think this works for Kindles as well as epubs. This is just example code. My guess is that this is structured content you would want to use a special class for the paragraphs below the h4. I would not be surprised if the Kindle e-ink devices do not support this css property ...


3

Yes. You can write. Here are my experiences. MS Word approach I exported the manuscript as .DOCX. This format worked best for me. I faced serious problems with .epub and .pdf formats. Caveat - If you have used Google doc specific embedded drawings then they are likely to get clipped. I had to convert them to pictures using Windows sniping tool and embed ...


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