![]() |
#1 |
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: Jul 2023
Device: None
|
Newbie: How to create and ePub from HTML
First post here.
I am using Sigil 1.9.30 I have a web page I want to convert to ePub. This is how I am going about it in Sigil. I created a Cover file and then: Using a new file (Section0001.xhtml) I copy and paste the text from the web page and to the xhtml file and then rename it to the chapter name. The chapter names have the <H1> tag. I then repeat the process for each chapter for each chapter: new file for a new chapter. I then created a TOC. There will be no significant formatting and only a few graphics. Here is a screen shot of the project in Sigil. https://photos.app.goo.gl/W71K9aPaNR4DL6sK7 Am I going about this the correct way? Thanks, WV-Mike |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,351
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
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. 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> 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. Are you planning on publishing this ebook, or is it for your personal use? |
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||||
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: Jul 2023
Device: None
|
How to create and ePub from HTML
Quote:
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:
Quote:
Quote:
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 |
||||
![]() |
![]() |
![]() |
#4 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,351
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
You need to link the stylesheet to the html file.
Right click the file(s) in the book browser pane on the left and select ‘link stylesheet’. Then select your css sheet. If you are styling all your <h1>s the same, you don’t need to give them a class. Simply style the <h1> as: Code:
CSS h1 { font-variant: small-caps; font-size: 1.5em; font-family: 'Times New Roman',Times,serif; text-align: center} HTML <h1>Foreword</h1> Last edited by Turtle91; 07-13-2023 at 02:43 PM. |
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() Posts: 74
Karma: 10
Join Date: Jul 2023
Device: None
|
Newbie: How to create and ePub from HTML
Excellent!
Thanks. It is starting to come together now. WV-Mike ==== Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can´t create an html table of contents on Sigil | Danila | Sigil | 2 | 02-16-2017 03:29 PM |
Create HTML File? | Harry Voss | Sigil | 5 | 05-23-2012 01:14 PM |
create Periodical from HTML with ebook-convert. | schnidrig | Conversion | 11 | 03-30-2011 10:34 AM |
Newbie Needs Help: HTML pages to ePub | Amalthea | Conversion | 3 | 03-22-2011 09:03 PM |
Create one ebook out of N HTML pages | miwie | Recipes | 3 | 03-21-2011 09:25 AM |