We also need to add the images included in the HTML pages. We can add those blog articles by clicking the Add Document button in Archive View, and browsing to select the files. Let’s continue with our example by adding some existing HTML pages from the author’s cooking blog to build out the content of the e-book. It’s easy to repurpose HTML content from a Web site in an EPUB document in XMLSpy. And the easier it is to do that, the better. With the number of options readers have for consuming written content these days – from e-books to PDF files to Web pages – it’s become a common requirement to have the same content available for consumption via multiple channels. When errors are present, the XMLSpy validation window lists and describes each instance with a link to where it occurs in the file to aid in troubleshooting. Our file is valid, and we can continue adding the rest of the content to the EPUB archive to finish our e-book. It’s easy to move between text-based and graphical editing methods, depending on your preference.Ĭlicking Preview again shows that our initial information is complete.īefore proceeding, let’s validate the EPUB file to ensure interoperability by pressing F8. We can switch to Grid View to enter the data this time. Let’s double click the content.opf file to add the e-book metadata. Clicking the Preview button generates an HTML file from the content in the EPUB archive and displays it in XMLSpy’s integrated Browser View.Īs you can see, there is still some required information missing. Let’s add some initial content based on the place holders in the file, as well as an and for the welcome message.Īfter saving these changes, we can switch back to Archive view to preview the content of our EPUB document so far. When it opens in the XMLSpy HTML editor, we can immediately see what needs to be updated first. Let’s start creating our e-book content by double-clicking the title.html file. XMLSpy provides context sensitive entry helpers and useful editing guidance for all these standards-based files. The file container.xml specifies how the archive files should be organized according to rules in the Open Container Format (OCF) specification. The folder named META-INF must contain the file container.xml, which points to the file defining the content of the book (the OPF file). It is based on the NCX part of the OPF specification. The NCX file (Navigation Control file for XML), traditionally named toc.ncx, contains the e-book’s table of contents. It is based on the Open Packaging Format (OPF) specification. The OPF file, traditionally named content.opf, contains the digital book’s metadata. | - contains HTML, CSS, image files, plus OPF and NCX files |– DOCUMENT folder ( In the screenshot above, OEBPS is the Document folder.) After we enter a name for our new e-book and save it, it opens in the XMLSpy Archive View as a skeleton that includes all the files and folders required to create a valid EPUB document.Īs shown above, each EPUB archive has the following structure and key components: Let’s start by selecting New from the File menu, then clicking. In this example, we’ll be creating a cookbook. Let’s create an e-book from scratch so that we can get a better look at the structure and components in each document. XMLSpy even ships with an example EPUB book so you can explore this functionality easily. XMLSpy includes an EPUB editor for viewing, adding, deleting, validating, and editing these files and folders. The components that make up an EPUB document are packaged in a zipped archive. EPUB content is “reflowable,” which means it can be accessed on any of the numerous e-readers that support the standard (Kindle, Sony Reader, Nook, Kobo, etc.), as well as most smartphones and tablets.Īn EPUB document is comprised of OPS (Open Publication Structure), OPF (Open Packaging Format), OCF (Open Container Format), XHTML, CSS, SVG, image, and other file types in a single, interoperable file format for easy distribution and publication. There are various formats used to create e-books, and one of the most popular is the standards-based EPUB format. Let’s take a look at how EPUB works by creating our own EPUB e-book, then re-purposing some existing HTML pages to flesh out the content.ĮPUB® (electronic publication) is an open standard from the International Digital Publishing Forum ( IDPF) for creating and distributing digital publications such as e-books. But did you ever wonder about the technology that makes it all possible? E-Books have revolutionized how an increasing number of people consume written content, allowing convenient access to myriad publications on e-readers, mobile devices, and computers.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |