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 07-14-2017, 03:03 PM   #1
oenopion
Member
oenopion began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2015
Device: Kindle, Nook, Android
FlightCrew Error in Sigil

Okay, two things.

First, I was trying to add a second paragraph style to an ebook that would allow the bulk (a novel) to run under "p style" with an indented paragraph, except for a "p.first" to start every chapter. I've formatted multiple books this way, without issue.

But, I wanted to add an interview in the back matter and format it typical to interviews, all with no indent, and a space between paragraphs. I created a p1 style for this, which worked fine, except for the &nbsp between paragraphs. For whatever reason, the p1 when applied, messed with the space between paragraphs and created one long paragraph out of everything.

As a work around, the &nbsp would work if I wrapped it in a regular p style, and with find/replace it seemed an easy fix. Until FlightCrew, which turned up the "Error schema not satisfied: no declaration found for element 'p1' near column 5' which corresponds to the start of every p1 paragraph.

Is there something I need to add to the style? And would that fix the &nbsp issue? I did try to increase the bottom margin in the p1 style but it didn't seem to register and do anything.

Also, the ebooks (both epub and mobi) are displaying fine, but I'd like to wipe the error code off the board, and fix the &nbsp as well.
oenopion is offline   Reply With Quote
Advert
Old 07-14-2017, 03:40 PM   #2
Notjohn
mostly an observer
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: 1,053
Karma: 448520
Join Date: Dec 2012
Device: Kindle
Definitely the spacing should be handled by margin-top and margin-bottom. For example:

p.interview {
margin-top:0.5em;
margin-bottom:0.5em;
text-indent:0em;
text-align:justify;
}

In the text, <p class="interview">

If half a line isn't enough at beginning and end of the interview, you could create a interviewfirst class for the first para, with a 1 em top and bottom margin. Subsequent paragraphs would be 0 top and 1 em bottom.
Notjohn is offline   Reply With Quote
Old 07-14-2017, 03:50 PM   #3
Doitsu
Wizard
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: 3,775
Karma: 9825094
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by oenopion View Post
[...] Until FlightCrew, which turned up the "Error schema not satisfied: no declaration found for element 'p1' near column 5' which corresponds to the start of every p1 paragraph.
That message is usually displayed for non-standard HTML tags. You most likely used something like:

Code:
<p1>Lorem ipsum</p1>
BTW, FlightCrew is outdated. You might want to check your book with the IDPF Validator.

Quote:
Originally Posted by oenopion View Post
And would that fix the &nbsp issue? I did try to increase the bottom margin in the p1 style but it didn't seem to register and do anything.
Your problem description is too vague. Please post the relevant HTML/CSS sections and screenshots that illustrate your problem.
Doitsu is offline   Reply With Quote
Old 07-14-2017, 04:23 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 48,069
Karma: 36546943
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
You'd be best off to install the epubcheck plugin for Sigil sand use epubcheck 4.0.2.

https://www.mobileread.com/forums/sh...d.php?t=248186
JSWolf is offline   Reply With Quote
Old 07-14-2017, 04:40 PM   #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.
 
PeterT's Avatar
 
Posts: 9,841
Karma: 56938177
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Why not use a different style sheet for the interview in the back matter?
PeterT is offline   Reply With Quote
Old 07-14-2017, 07:31 PM   #6
oenopion
Member
oenopion began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2015
Device: Kindle, Nook, Android
Awesome! Thanks Notjohn for the code, worked like a charm. As Doitsu pointed out I did use the p1 like in his example. I was told it could work, but by someone who doesn't do ebooks. Now I know what to do.

Ran the book through IDPF Validator with no errors. And with FlightCrew being outdated, should I use the EpubCheck plugin instead? Or is the browser version enough?
oenopion is offline   Reply With Quote
Old 07-14-2017, 07:36 PM   #7
oenopion
Member
oenopion began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Apr 2015
Device: Kindle, Nook, Android
JSWolf, I was typing while you commented, so you read my mind. Thanks for the link, will check out the plugin.
PeterT, good idea. I'm new to anything beyond the stuff I have figured out, and hadn't thought of that. But it would probably be good practice to just link a new style sheet to any new formats like that.

Thanks again, everyone!
oenopion is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FlightCrew validation error stephenTOS Sigil 2 06-01-2017 01:20 AM
Sigil Error Message: Book File Would Not Open in Sigil fkustaa Sigil 5 03-18-2017 12:54 AM
Flightcrew error or bad coding? Turtle91 Sigil 23 01-30-2013 12:58 PM
Flightcrew validation error Jellby Sigil 6 09-01-2011 08:20 AM
Sigil 0.4.0 and FlightCrew 0.7.2 Released user_none Sigil 13 08-23-2011 02:18 PM


All times are GMT -4. The time now is 09:37 AM.


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