
: 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
I work in a university program with around 30 units, each of which produces a learning guide of 80 to 120 pages. Currently we supply them as pdf files, but I want to move to an epub (HTML/CSS) based solution so that I can set the styles once and have more semantically structured, reflowing text.
Each guide has a lot of commonality, such as the styling, title page header, introduction pages, etc. I am looking for a workflow and tools that allow me to reuse this content in every guide without too much manual effort.
Free books android app tbrJar TBR JAR Read Free books online gutenberg
More posts by @Connie

: Kindle paperwhite 2 check email over 3g I am still unable to get an answer to this question: Can I check email and do other web-browsing activities with the kindle paperwhite 2 (of course

: Can Kobo's drm be removed from their ebooks? Kobo books are hidden in file explorer lists and don't appear in the Calibre library when the device is connected to a PC. Is there any way of
2 Comments
Sorted by latest first Latest Oldest Best
If, you as you comment, consider going to a more structured input format than MicroSoft Word, then I recommend not wasting time in looking at HTML changes directly at all.
You should consider reStructuredText part of docutils. I have been using reStructuredText for years and it always had the advantage over other formats that I looked at (including Markdown) that one could generate HTML and PDF, without the need of setting up the whole LaTeX based toolchain for that (as is necessary with e.g. pandoc).
I am now using reStructuredText, within in the Sphinx documentation system, which can also generate EPUB files for you.
Depending on your experience and preferences you might also find it easier to tweak the tools mentioned (in Python) than e.g. pandoc (in Haskell).
Free books android app tbrJar TBR JAR Read Free books online gutenberg
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