Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2013, 02:05 PM   #1
arethusa
Junior Member
arethusa began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2012
Location: Illinois
Device: Nook classic Nook simple touch with glowlight
Question stylesheet help

I am new to Sigil; attempting to learn it. I started with an epub from calibre, converted from an rtf file. I wanted to break it into chapters and add TOC - the calibre breaks were not at chapter breaks. This worked, but I find that the fonts differ from chapter to chapter, and occasionally within the chapter. I searched Fonts on the forum and came to realize that it is possibly stylesheets that do this, and where I need to make changes. My html knowledge is rudimentary; I hope working with Sigil will change this, but at the moment I don't really understand stylesheets at all.

Two questions - am I right that i need to fix the varied fonts in stylesheets?
Is there a good source explaining stylesheets to a novice?

Thanks
arethusa is offline   Reply With Quote
Old 06-30-2013, 02:35 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,617
Karma: 5628865
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by arethusa View Post
I am new to Sigil; attempting to learn it. I started with an epub from calibre, converted from an rtf file. I wanted to break it into chapters and add TOC - the calibre breaks were not at chapter breaks. This worked, but I find that the fonts differ from chapter to chapter, and occasionally within the chapter. I searched Fonts on the forum and came to realize that it is possibly stylesheets that do this, and where I need to make changes. My html knowledge is rudimentary; I hope working with Sigil will change this, but at the moment I don't really understand stylesheets at all.

Two questions - am I right that i need to fix the varied fonts in stylesheets?
Is there a good source explaining stylesheets to a novice?

Thanks
This is really an EPUB question so I will move it there (in a bit ).

Sigil is just a tool to use. There is nothing different for the CSS or HTML (Except the use of H# tags (to markup) to allow auto TOC generation from the document)

I would suggest starting at http://www.w3schools.com/
We now switch to the EPUB forum
theducks is offline   Reply With Quote
Old 06-30-2013, 05:01 PM   #3
Notjohn
Addict
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 212
Karma: 246332
Join Date: Dec 2012
Device: Kindle
My style sheet is posted on my blog at notjohnkdp.blogspot.com

(Of course, one must also use the appropriate paragraph and heading tags. I second the motion to look at w3schools.com )
Notjohn is offline   Reply With Quote
Old 07-01-2013, 02:50 AM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 2,955
Karma: 3363559
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
I would advice to use start with the guide of Pablo found here.
Toxaris is offline   Reply With Quote
Old 07-01-2013, 06:22 AM   #5
mrmikel
Book Twiddler
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,023
Karma: 1424487
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
It is also possible that the style information is specified at the start of each file making up the epub. That could account for the different fonts, too.

If it exists at the start of the file, either change it or eliminate it and put all font information in one stylesheet.
mrmikel is offline   Reply With Quote
Old 07-02-2013, 06:06 AM   #6
Notjohn
Addict
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 212
Karma: 246332
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by mrmikel View Post
It is also possible that the style information is specified at the start of each file making up the epub. That could account for the different fonts, too.

If it exists at the start of the file, either change it or eliminate it and put all font information in one stylesheet.
This regularly happened to me when I saved a Word doc as html, then opened the html in Sigil. (That is, I ended with a style sheet in every chapter and indeed in every image page etc.) Then I developed a file called epub.css that served all my purposes and linked to that instead (<link rel="stylesheet" type="text/css" href="epub.css">). The reduction in file size was noticable.

I love the way Sigil recognizes and "inhales" related files and images.
Notjohn is offline   Reply With Quote
Old 07-02-2013, 12:03 PM   #7
GMcG
Writer
GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.GMcG ought to be getting tired of karma fortunes by now.
 
GMcG's Avatar
 
Posts: 91
Karma: 556222
Join Date: Mar 2011
Location: Munich, Germany
Device: none
@arethusa
If you have different styles for some paragraphs, you must edit the html file.
First look at the paragraph the style of which you like. Then you look at it in code view. Perhaps this paragraph starts with <p class="calibre2">.
Then you look at a paragraph with a different style. In code view you may see that this parapraph starts with <p class="calibre7"> (or any other number). You simply have to change it into calibre2.
As the epub was created with Calibre, you've got the file 'stylesheet.css'. In Sigil you find it in the Stylesheet folder. If you dont need <p class="calibre7"> any more, you can delete this class. In stylesheet.css it is shown as
.calibre7 {
.
.
.
}

George
GMcG is offline   Reply With Quote
Reply

Tags
fonts, novice epub, stylesheets

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cleaning the stylesheet roger64 Sigil 6 11-08-2012 07:20 AM
Link Stylesheet Does Not Appear smallstate Sigil 2 09-20-2012 07:43 AM
How NOT to use a stylesheet? karyan Sigil 12 03-07-2012 12:43 PM
Stylesheet examples? Skitzman69 Sigil 15 09-24-2010 08:24 PM
Where is the stylesheet.css? roger64 Sigil 4 03-23-2010 02:12 PM


All times are GMT -4. The time now is 03:51 PM.


MobileRead.com is a privately owned, operated and funded community.