View Single Post
Old 07-13-2023, 02:03 PM   #3
WV-Mike
Connoisseur
WV-Mike began at the beginning.
 
Posts: 74
Karma: 10
Join Date: Jul 2023
Device: None
How to create and ePub from HTML

Quote:
Originally Posted by Turtle91 View Post
Welcome to MR!

Assuming you have access to the book, and no copyright is being violated because Bill Fitchner passed only 10 years ago, then there are ways to do this that are MUCH faster.
However, yes, you are basically on the right track.
Thanks for the Welcome!
It has been a loooog road to get to this point and I won't bore you with the details. Suffice it to say I eventually got the printed book to a text file and then to HTML using NoteTab.
The web page is nearly complete and I am waiting for more material from the family. The gave me the go ahead for this project. It is a Labor of Love on my part and no money is involved.
Quote:
There are some rules that you need to make sure you are following for ePub (xhtml) that may not have been followed for a basic webpage.
- tags must have an opening and closing tag <h1> at the beginning of the header and </h1> to denote the end.
- capitals matter... you need to use lowercase letters in the tags <h1> vs <H1>
I have been working with simple HTML and CSS for a few years. I got in the habit early on using LC for the tags.

Quote:
If you are copy/pasting text, then you may be missing all the correct tags for any bold, italic, or other odd formatting sections. Instead, I would view the source code for the chapter, then copy/paste the entire section of the html tagged text. You can see the source code, usually, be right-clicking somewhere on the page in the web browser and selecting "View page source" or typing ctrl-u.
I am copying directly from the HTML, so all the tags are intact. There is practically no formatting, and I am not adding any as I want it to be a mirror of the original.

Quote:
Are you planning on publishing this ebook, or is it for your personal use?
There are no paper copies left. It was a very small print run by a local vanity press. I felt the book was important enough to get back into circulation, so I took it on as a project. It has been good for me as I am now learning about eBooks which I knew absolutely nothing about except for reading them.
As far as publishing it I was going to add a link to the webpage for anyone who wanted to download.

Now that I feel I am on the right track I can proceed as there are still about 40 chapters left.
Re: CSS
I would like to be able to style the <h1> chapter titles such:

.lowercaps
{font: small-caps 150% 'Times New Roman',Times,serif;text-align:center;}

I put this CSS in a Style0001.css file and then added it to the HTML thus:
<h1 class="lowercaps">Foreword</h1>
But it is not changing the styling. Any suggestions?

Thanks very much for the help and input.
WV-Mike
WV-Mike is offline   Reply With Quote