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

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


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


12

.azw is basically .mobi with the possibility to add DRM. According to the wikipedia article you cited it even has less instead of more features. Since using DRM is kind of pointless if you also offer a DRM free .mobi version, there is no advantage. .kf8 supports some HTML5 and CSS3 features which the other formats don't. This allows creating more advanced ...


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


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


8

The FBReaderJ¹ used to have the limitation that the HTML files could not be in subdirectories within the EPUB/ZIP file. I am not sure when or if that was solved. Calibre has some options for EPUB output generation, that include the above deficiency and the HTML file-size limitation mentioned in the question. Other such reader limitations, if widespread, ...


8

Page flipping¹ is normally supported by a reading application (not necessarily by all). For this to be effective on a software reader, or specific hardware reader, the refresh rate of the screen needs to be relatively high, to be able to draw and redraw all of the intermediate stages of the 'flipping' page. So some ebook readers (I would assume most e-Ink ...


8

You can certainly use standard <a> tags with matching ids to create hyperlinks within an epub file, yes. The structure of the text could look like: <p class="body">Here is a bunch of text with a footnote <a epub:type="noteref" href="notes.xhtml#note1" class="reference" id="ref1">[1]</a></p> With a matching note in a notes....


8

Epub Format Epub is actually a collection of files in ZIP format. You can create an epub without any specialize tool, for example taking a book's content from https://github.com/Gluejar/open_access_ebooks_ebook and running zip -Xr9D The_Velveteen_Rabbit.epub mimetype * -x .DS_Store Pandoc Pandoc is an easy to use command line tool to generate epubs, and ...


7

For editing an EPub, I would look into sigil. It has the ability of WYSIWYG editing and comes recommended by other users on this forum. It's free and open-source. An alternative is Calibre. Editing EPubs is a bit more code-centric in contrast to sigil. It's also free and open-source. For some comparisons between the two programs, check out this blog. As ...


7

Create a watermark pdf which contains the footer using imagemagick: convert -background none -geometry +0+0 -fill \#000000 -pointsize 12 label:"From the library of..." -set label '' -page A4 watermark.pdf It creates a simple pdf ( size: A4 ) with the text From the library of... at the bottom left corner. You might change the font, the position of the text, ...


7

It is certainly possible to embed custom fonts and have them be used in iBooks, as well as on other EPUB reading systems. The process is known as embedding. Embedded fonts are simply included in the .zip archive that comprises the EPUB file, and then referenced properly in all the relevant content files. Places you will need to reference them include: CSS ...


7

Images in general should be added just as they would be in HTML, with an <img> tag. The image files themselves should then be included in the OEBPS folder or a subfolder (I generally use a subfolder, personally). Each image file will need to be declared in the <manifest> section of the content.opf file. As mentioned in the epub 3.0 specifications,...


6

I don't know if this is exact enough, but based on a combination of my own manual measurements and specifications listed in the user guide (warning links to pdf directly): Screen resolution is 600(w) x 800(h) pixels Screen measurements (approx, done myself) are 92(w) x 122(h) mm Using this calculator, that gives us a dpi of approx 44. Approx measurement of ...


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


5

I think that for a collection of images maybe the EPUB format is not the most suitable. If you just need the pictures without any text, and if your reader support it (as far as I know, most of them do it), I would suggest using a comic book file format like CBZ or CBR. These are standard ZIP or RAR files (the only difference is that their extension has been ...


5

There is no such thing. I've done extensive research. For Amazon's platform, there is the Kindle Previewer, but it has so many bugs that I think it is mostly worthless. The fundamental problem is that every device and app has their own hidden stylesheet that will override yours. None of these stylesheets are documented and figuring out what they do is ...


5

It's great to hear about a project where the audio would actually add substantively to the content of the book--that's too often not the case. In your case, I'd say yes, it does definitely make sense to add the audio, as it is directly relevant and helpful to understanding the subject. It is also perfectly allowable in the epub 3.0 specification, though ...


5

In regards to my comments about Tom's ePub not validating there is an error in his toc.xhtml on line 13 and should be coded as <li><a href="1_hello.xhtml">Hello</a></li> which will produce the error message from IDPF validator as: In regards to the version 3.0 ePub I disagree and believe it should be noted that when an ePub is built ...


4

I recommend you generate some mark up format supported as input for pandoc (i.e. markdown, reST, HTML) and generate the EPUB from that. You should have no trouble scripting pandoc, but you would need some work automating the generation of the markup from your database (but not more than you would have generating XML).


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

If all you're wanting is to easily get specific RSS items to a Kindle, Instapaper has a service that makes this very simple: http://www.instapaper.com/user/kindle That's how I do it, and only for specific posts that I'm actually wanting to read on my Kindle. My usual workflow is when I'm reading through my feeds on my iPhone, I click "send to Instapaper" ...


4

The following Linux script creates a simple markdown syntax txt file listing all the jpegs, and convert it to epub using calibre. for i in *.jpg; do echo \![$i]\($i\); done > alljpgs.txt ebook-convert alljpgs.txt alljpgs.epub --formatting-type markdown


4

Since you mention you post to your blog each Sunday, if you have or can provide an RSS feed you may find the following online free service useful http://newstoebook.com/ I've been using it to create ebooks of one of my project blogs. The resulting ebook (I create .mobi books for Kindles) have been readable. I expect there will be limitations so YMMV for ...


4

Ed, the answer more depends on your purpose. The literal answer is Scrivener does indeed create valid e-books and is well maintained. I've used Scrivener for Mac for years. I've occasionally compiled the document to kindle format to carry around. That process works just fine. If your real purpose is to Write the Great Novel or some other large and complex ...


4

Anthon is correct but he doesn't really explain why he is correct which is what the real question is about: EPUB 3 supports video in ebooks. Quark and InDesign are two commercial top notch desktop publishing software that have both (finally) integrated EPUB exporting into their software because of the rise of popularity in ebooks. However, this is an ...


4

This feature was removed as the result of changes of the mwlib that was used for export to ocg that has better support for non-latin scripts for PDF files. In the process EPUB export was disabled, probably because the ocg library renders to images via LaTeX (that is a guess, I have not looked at the details). The announcement for the change was made on the ...


3

You can use Papyrus for creating ebooks from blog posts or any webpage. If you already have a blog, you can use this link to convert your blog to book) Your book will be generated in EPUB, Mobi(Kindle) and PDF formats. Disclosure: I am the creator of this site.


3

Since you are looking at a linux based solution, the two approaches I would recommend are either doing it during document production (tex would do this just fine and there has been recent discussion on tex.se that would be relevant) or in post production. It has been a while but there are several scripts for adding watermakrs to postscript (prior to printing)...


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