Self-Publishing
If you want not only to enjoy e-books in EPUB format but also to create them, take a look at the easy-to-use and versatile editor from Sigil.
|
If you want not only to enjoy e-books in EPUB format but also to create them, take a look at the easy-to-use and versatile editor from Sigil.
They're not for everyone, but e-books have become a regular part of this world. Typically, you purchase e-books as finished products that can't be modified. You can attach notes and bookmarks, but what if you want to write an e-book from scratch? The free Sigil [1] e-book editor lets you do just that. Version 0.6.2 of this remarkable software debuted in December 2012.
Apart from proprietary e-book formats, such as those Amazon uses (see the "Amazon Exception" box), the Electronic Publication (EPUB) open standard is widely used [2]. It's essentially based on a number of other open standards and uses a ZIP container for the formatted content (Figure 1). The content structure is based on XML, XHTML, and CSS stylesheets. EPUB borrows from only parts of these standards, which limits the design, but simplifies the implementation.
Amazon Exception
Note that Amazon's e-book readers don't support EPUB; however, current readers can still read unencrypted MOBI format files that Calibre [3] EPUB e-books can translate. You can find many free e-books, most of them in EPUB format in Project Gutenberg [4].
Text can be UTF-8 or UTF-16 encoded, uses XHTML tags and is formatted via CSS stylesheets. For the sake of clarity, the source code is distributed across multiple files (which typically end in .xhtml ) that combine to form an e-book.
Along with the actual document content, various metadata belong to the e-book. The Open Packaging Format (OPF) provides a complete description of the e-book structure. It stipulates, for example, that a metadata file should have the .opf extension. This file contains a manifest (a part of the XML file) that lists all the files for the e-book.
A basic table of contents is in spine , while toc refers to a fuller version in an external file. The file with the detailed table of contents normally has the name toc.ncx . The .ncx ending indicates a "navigation" file in XML format. From it, you can navigate to sections and subsections of the e-book.
The additional e-book metadata is stored in the META-INF/ directory. The OEBPS directory contains the actual e-book content, the formatted text, images, and formatting templates. In this article, I'll take a closer look at the Sigil EPUB editor in particular. (See also the "Sigil Setup" box.)
Sigil Setup
Not all current distributions have Sigil in their repositories; however, you can get packages for Arch Linux, Fedora, Gentoo, openSUSE, Slackware, and a few other distros [5]. For Ubuntu and its derivatives, Sigil is available as a PPA [6]. Installation files are also available for Mac OS X and 32- and 64-bit Windows. To compile the source code, you need cmake , with Qt4 and support for XML, SVG, and WebKit as prerequisites.
The Sigil EPUB editor is simple. Without a document loaded, Sigil opens with a large window for entering text, code, and images. You can start creating a new document immediately. Sigil is like a cross between a word processor and an HTML editor. If you hover over entries in the well-stocked tool bar, you get quick help for the function.
For text input and editing of existing EPUB documents, Sigil provides two distinct modes: By default, you get a classic WYSIWYG editor and, for more complicated tasks or troubleshooting, you can switch to source code editing (Figure 2). Source code mode includes all the XHTML tags that you can edit more precisely than in WYSIWYG mode.
Aside from direct text input, Sigil allows importing HTML or cleartext files (.TXT ) as well as EPUB containers into an existing EPUB document. In practice, this means that you don't necessarily need to use (or know how to use) the Sigil editor. The other components of the program are always available to you.
Pages: 4
Calibre lets you bring some order to your digital library. You not only can restore reading material lost on your hard drive, but you can also convert digital books into a format of your choice.
In the past, publishing a book meant sending it to a publishing house. With Amazon's CreateSpace and Kindle Direct Publishing, you can now publish on your own. This article will guide you through the process.
Ubuntu One is a service from Canonical that lets you access your documents, photos, music, and files everywhere, and it's in every version of Ubuntu. Instead of just "one weird trick" to get the most out of your Ubuntu One account, here's a bunch.
Canonical announces an innovative agreement to provide digital editions of ADMIN, Linux Magazine, and Ubuntu User through the Ubuntu Software Center.
© 2024 Linux New Media USA, LLC – Legal Notice