
: Re: How do I build multiple ebooks using common blocks of content and styling, such as title pages and CSS? I work in a university program with around 30 units, each of which produces a learning
Assuming you're familiar with HTML and CSS, and given that your content has a lot of commonality to it, it would be fairly straightforward to set up a template file with all the parts you need for an ebook. You could, for example, have a template made of files like this:
cover.xhtml
title.xhtml
toc.xhtml
prologue.xhtml
intro.xhtml
chapter.xhtml
appendix.xhtml
index.xhtml
about_the_author.xhtml
style.css
content.opf
(toc.ncx)
images/cover.jpg
The toc.ncx is optional but suggested (as noted elsewhere on this site) to ensure usability on older reading systems. The content.opf and both toc files have specific requirements for the content, as they're epub-required navigational files. The other XHTML files must be valid, but otherwise are more flexible in terms of content. The content of those template files could look like:
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
<title></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
</body>
</html>
The navigational files would have to have the information about the other files added to them each time, but that is fairly automateable with a minimum amount of scripting in a language like Ruby or Python.
In your CSS file, you could have default styles already built for the things you use all the time. You could even have default boilerplate styles at the top of the CSS file for all the basic element type (<p>, <li>, and so on) and then just add other CSS rules at the bottom of the file as needed—since the styles cascade, the ones at the bottom would overwrite the ones at the top if there were any conflicts.
All that's left from there is getting your document from whatever format the editors are using into HTML so that you can apply all the tags and then pass it along to the designers (unless you're doing ebook-last, in which case the issue is getting the file from whatever the designers use to HTML).
Hope that helps!
Free books android app tbrJar TBR JAR Read Free books online gutenberg
More posts by @Sandra

: How to download highlighted text on Kobo Aura HD? I often highlight words that I don't know on my Kobo Aura HD, so that I can come back to them later. Is there any way for me to download

: Is there an easier way to edit a .mobi file? I am used to creating and editing .epub files, usually with Sigil. Sometimes, however, I need to retouch a file in .mobi format for my wife.