ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The ePub standard requires xhtml 1.1 per the specification.
XHTML 1.1 starts the chapter.xhtml page to define the type with:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
In the OPF file, the extension which matches the MIME type is being given:
Code:
.xhtml is for application/xhtml+xml documents
.html is for text/html documents
For instance, ePub3 requires .xhtml!!
It is strongly suggested that you use the .xhtml extension for all EPUB content documents. Browsers will not interpret HTML content as application/xhtml+xml without that extension.
Despite that it is impossible to use HTML into an EPUB, can we in future get EPUB be used with HTML with or instead of XHTML ?
Generally, XHTML is upward-compatible with HTML but more precise. You should specify XHTML in order to have maximum control over what any particular device will do with the content. (Don't forget the original black-and-white Amazon Kindles: they're still out there.)
Generally, XHTML is upward-compatible with HTML but more precise. You should specify XHTML in order to have maximum control over what any particular device will do with the content. (Don't forget the original black-and-white Amazon Kindles: they're still out there.)
and the otherway around too. Non Kindles do not understand Kindle format. Try gutenberg.org with kindles, good luck.
It is a flame war kindle vs epub Anyhow, those are "proprietary" formats.
Could GNU make some a format for epub neutral and clean. Even if GNU would make one, it will never be used by proprietary, eager, money-driven giant informatics corporation (e.g. amazon).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.