Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-12-2014, 11:44 PM   #1
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Format Looks Great in Sigil, but not on Device

I created a book from scratch today and ran into a snag.

On Sigil:
1) I did all work in code view
2) All looks as it should in preview and book view
3) I used Flight Crew and had no issues
4) I linked the Style sheet and as in #2 all looks fine

BUT... on both Nook and Kobo the CSS seems to be ignored all together. When I tossed the epub into iBook it respected the CSS.
That is not what I am used to. What could I have done wrong in Sigil?

Here is the CSS in case anyone can point out an issue.
p{
text-indent: 5%;
text-align: justify;
font-size: 100%;
}

.s1{
text-indent: 0%;
text-align: center;
font-size: 120%;
font-weight: bold;
}
.s2{
text-align: left;
padding-left: 30%;
text-indent: 0%;
font-size: 85%;
}
.s3{
text-align: justify;
text indent: 0%;
font-style: italic;
font-size: 85%;
}
.s4{
text-indent: 0%;
text-align: center;
font-size: 100%;
}
.s5{
text-indent: 0%;
text-align: center;
font-size: 100%;
font-style: italic;
}
.s6{
text-indent: 0%;
text-align: center;
font-size: 105%;
font-weight: bold;
}
.c1{
font-style: italic;
}

.stanza {
margin-top: 1em;
margin-right: 0;
margin-bottom: 1em;
margin-left: 2em;
text-align: left;
}
.stanza p {
padding-left: 2em;
text-indent: -2em;
}
.image{
text-align: center;
}

body, div, p, h1, h2, h3, h4 { margin: 0; padding: 0; }
rosshalde is offline   Reply With Quote
Old 12-12-2014, 11:54 PM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,309
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Why not attach either the whole book or a stripped down version of it with one or two chapters... It's far easier for us to look at a complete work than just one fragment of it (the css).
PeterT is offline   Reply With Quote
Advert
Old 12-12-2014, 11:58 PM   #3
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Entire epub file

Ok,

Here is the book.
It is public domain, so no issue there.
I appreciate the guidance.
Attached Files
File Type: epub Manual of Prayers.epub (1.88 MB, 135 views)
rosshalde is offline   Reply With Quote
Old 12-13-2014, 12:01 AM   #4
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Also,
it was suggested by some folks on here that as a learning exercise I attempt to code the whole thing myself rather than exporting as an epub file from Pages off a Mac. I took the advice. If anyone sees that I am doing something incorrectly, please let me know so I can do better with the code in the future. I tried to take all the advice from previous posts about using classes.
rosshalde is offline   Reply With Quote
Old 12-13-2014, 12:13 AM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,309
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
One obvious error:
Code:
.s3{
text-align: justify;
text indent: 0%;
font-style: italic;
font-size: 85%;
}
Missing hyphen in text-indent

Remember some renderers will ignore the ENTIRE css if there is an error in it...

Also; it's thought inadvisable to have "spaces" within file names in the ePub. Maybe rename items like:
Cover Manual of Prayers.jpg
to
Cover_Manual-of_Prayers.jpg
Attached Files
File Type: epub Manual of Prayers UPDATED.epub (1.88 MB, 140 views)

Last edited by PeterT; 12-13-2014 at 12:19 AM.
PeterT is offline   Reply With Quote
Advert
Old 12-13-2014, 12:18 AM   #6
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Thank you. That fixed the problem on both devices. I am glad it was something so minor.

I tried to use the tool "Validate with W3C" to check the CSS before I posted originally.
What does that tool do exactly? It didn't seem to do anything.
rosshalde is offline   Reply With Quote
Old 12-13-2014, 12:21 AM   #7
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,309
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
When I used the tool it brought up a web page which showed an error in the CSS
PeterT is offline   Reply With Quote
Old 12-13-2014, 12:29 AM   #8
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Any idea of that tool is not part of Sigil for Mac? I can't seem to get it to do anything at all.
I will look into changing the names of the files to eliminate spaces.
I haven't run into any problems as of yet with the spaces, what is the issue with them?
rosshalde is offline   Reply With Quote
Old 12-13-2014, 12:37 AM   #9
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
I did put the file in calibre after you found the issue and it found the same error. I can do that from now on, but if I can get the "Validate with W3C" to work on my Mac that would be even better
rosshalde is offline   Reply With Quote
Old 12-13-2014, 04:35 AM   #10
Mark Nord
2B || !2B
Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.Mark Nord can program the VCR without an owner's manual.
 
Posts: 852
Karma: 194010
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
IIRC this feature it is also not working in the windows version of Sigil for a long time now.
So I simply use the direct link to the validator:
http://jigsaw.w3.org/css-validator/#validate_by_input
and copy in my css manually.
Remember to set the validator to check against CSS2.0 oder 2.1
HTH
Mark Nord is offline   Reply With Quote
Old 12-13-2014, 04:37 AM   #11
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,682
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by rosshalde View Post
On Sigil:
1) I did all work in code view
2) All looks as it should in preview and book view
3) I used Flight Crew and had no issues
4) I linked the Style sheet and as in #2 all looks fine
Note that FlightCrew does not check for stylesheet issues, ePubCheck does and found the issue in line 21 of the stylesheet.

<shameless plug>You can also use my Sigil epubcheck plugin, which I had to update because of your file, because I didn't anticipate CSS error messages without line positions.</shameless plug>

(Even though FlighCrew and ePubCheck will often report exactly the same issues, I'd recommend running both.)
Doitsu is offline   Reply With Quote
Old 12-13-2014, 06:44 AM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Mark Nord View Post
IIRC this feature it is also not working in the windows version of Sigil for a long time now.
So I simply use the direct link to the validator:
http://jigsaw.w3.org/css-validator/#validate_by_input
and copy in my css manually.
Remember to set the validator to check against CSS2.0 oder 2.1
HTH
Huh? Sigil's W3C css validation works fine with my various Windows environments. This is the first I've heard of anyone having trouble with it.
DiapDealer is offline   Reply With Quote
Old 12-13-2014, 07:00 AM   #13
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,682
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by DiapDealer View Post
Huh? Sigil's W3C css validation works fine with my various Windows environments. This is the first I've heard of anyone having trouble with it.
This might be a file association problem.

I had problems with the Linux version in the past: css files were automatically opened with Geany (a text editor) instead of the web browser. Uninstalling and re-installing Geany fixed the problem.

@Mark Nord: If the css file opens with a text editor, when you select Validate with W3C, uninstalling and reinstalling the text editor might help. If selecting Validate with W3C doesn't open an editor, changing or deleting the open with file association for .css files might help.
Doitsu is offline   Reply With Quote
Old 12-13-2014, 08:15 AM   #14
rosshalde
Zealot
rosshalde began at the beginning.
 
Posts: 142
Karma: 10
Join Date: Jun 2014
Device: nook
Quote:
If selecting Validate with W3C doesn't open an editor, changing or deleting the open with file association for .css files might help.
Currently, when I click on Validate with W3C it does absolutely nothing at all. Nothing opens and it dead. Is anyone able to currently use this tool on a Mac?

I did copy my CSS to the various links that people provided here and it found the error right away.

I realize flight crew doesn't check the CSS...That is why I was pretty sure the issue was in the CSS rather than in one of the files.
rosshalde is offline   Reply With Quote
Old 12-13-2014, 08:20 AM   #15
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,682
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by rosshalde View Post
Currently, when I click on Validate with W3C it does absolutely nothing at all.
If you double-click a .css file, does it automatically open with TextWrangler, BBEdit or another OSX text editor?

If so you might have to change this file association.

Since both KevinH and user_none use Macs, they can probably give you more specific pointers.
Doitsu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil loses format in bulleted list mlamb Sigil 17 03-20-2014 04:35 AM
Audio in epub format using sigil TStphnsn Sigil 6 10-27-2012 04:39 PM
List format in Sigil crutledge Sigil 4 07-23-2012 02:22 PM
Preserving format from ePub (Sigil) to Mobi jeff47 Calibre 9 10-22-2010 10:17 PM
SIGIL format DaleDe Sigil 7 10-13-2009 11:00 AM


All times are GMT -4. The time now is 02:37 PM.


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