Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-15-2014, 08:22 AM   #1
René vd Abeelen
Junior Member
René vd Abeelen began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: iPad
Question Newbie with a question

Having published a few books in the Netherlands I decided to also make e-books of them. The first went smoothly, but the second is a bit stubborn.
It took me quite a while to remove faulty code from an imported Word-file, but now I can't find the solution to this problem: Sigil now delivers a file where each chapter starts with a blanc page. I really don't understand what can cause this and so it delays the publishing of this e-book!
Any suggestions?

Thanks in advance!

Last edited by René vd Abeelen; 11-15-2014 at 08:29 AM. Reason: typing error
René vd Abeelen is offline   Reply With Quote
Old 11-15-2014, 09:45 AM   #2
theducks
Well trained by Cats
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: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Sigil does nothing that the code does not call for
(and in rare cases, does not do what the code does call for Usually a Webkit issue.).

Look for a page-break-before in the (CSS) styles at the start of the (Body section) book file.
theducks is offline   Reply With Quote
Advert
Old 11-15-2014, 10:46 AM   #3
René vd Abeelen
Junior Member
René vd Abeelen began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: iPad
Thumbs up That did the trick

Quote:
Originally Posted by theducks View Post
Sigil does nothing that the code does not call for
(and in rare cases, does not do what the code does call for Usually a Webkit issue.).

Look for a page-break-before in the (CSS) styles at the start of the (Body section) book file.
Thanks!!!
René vd Abeelen is offline   Reply With Quote
Old 11-15-2014, 01:54 PM   #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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Is this in iBooks or also in other programs/readers?
Toxaris is offline   Reply With Quote
Old 11-17-2014, 04:45 AM   #5
René vd Abeelen
Junior Member
René vd Abeelen began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: iPad
The problem won't go away.
Nowhere in the html-files in the map Text can I find a 'page-break-before' command.
In the map Styles the styles.css file contains 1 'page-break-after:avoid'.
When I open the pub-file on in iBooks on my iPad mini I have more than 30 blanc pages, also are visible in landscape.
On my iMac there's just 1!
I'm completely in the dark & any help is much appreciated!
Thanks!
René vd Abeelen is offline   Reply With Quote
Advert
Old 11-17-2014, 05:16 AM   #6
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
you need to upload enough of your code for others to try and diagnose- and try a non-apple reader e.g. test by sending to a free android app if you have a tablet but not a dedicated e-reader
cybmole is offline   Reply With Quote
Old 11-17-2014, 06:06 AM   #7
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: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
Try it on other programs like Marvin or in ADE. I recall reading about this issue on iBooks before. iBooks is not a very good program actually.
Toxaris is offline   Reply With Quote
Old 11-17-2014, 06:56 AM   #8
René vd Abeelen
Junior Member
René vd Abeelen began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: iPad
Thanks for the responses. I've bought Marvin... exactly the same problem, so it look like it's not reader related.
If someone would be good enough to take a look... what piece of code should I upload?
Thanks!
René vd Abeelen is offline   Reply With Quote
Old 11-17-2014, 08:35 AM   #9
theducks
Well trained by Cats
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: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by René vd Abeelen View Post
Thanks for the responses. I've bought Marvin... exactly the same problem, so it look like it's not reader related.
If someone would be good enough to take a look... what piece of code should I upload?
Thanks!
I would suggest the whole CSS file as retyping can hide typo errors in the css

also 1 failing chapter. You can remove most of the paragraphs (leave a couple) AFTER the failure

Make a copy of the EPUB., Now strip out all but one of the problem chapters. Truncate (the contents INSIDE the <body>) the one left. and attach that to this thread
theducks is offline   Reply With Quote
Old 11-17-2014, 11:08 AM   #10
René vd Abeelen
Junior Member
René vd Abeelen began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: iPad
Allright... I hope I am doing this the way I should...
And thanks very much for taking this trouble!!!
Attached Files
File Type: epub DTBHEcopy.epub (319.3 KB, 181 views)
René vd Abeelen is offline   Reply With Quote
Old 11-17-2014, 11:41 AM   #11
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
it does behave a little strangely for me also but I am not sure why.
But I do see that you have the styles defined twice, - 3 times on one of the files even. you have the link to the external stylesheet but you also have <style> .... </style> definitions in the html files. maybe you should delete those & test again ?

Remove all of this style code from the 3rd file,and remove similar code from the other files also:

( this may not be the cause of the problem but it may help diagnose what IS ]
Code:
<style type="text/css">
p.dlct-002 {margin-right:14.15pt}
  p.dlct-004 {font-size:1.45em; line-height:110%; margin-right:14.15pt; text-align:center}
  p.dlct-003 {font-size:3.27em; line-height:110%; margin-right:14.15pt; text-align:center}
  p.dlct-006 {font-size:1.45em; line-height:110%; margin-right:14.15pt}
  h1.dlct-000 {margin-right:14.15pt}
  br.dlct-001 {clear:both}
  span.dlct-005 {font-style:italic}
  span.dlct-007 {text-decoration:underline}
</style>
<style type="text/css">
span.dlct-000 {font-size: 1.45em;}
</style>
<style type="text/css">
p.dlct-000 {text-align: center;}
  span.dlct-001 {font-size: 3.27em; line-height: 57px; text-align: center;}
</style>
I am not sure what this line does either , but if you use only the separate stylesheet then it will no longer be present: br.dlct-001 {clear:both}
cybmole is offline   Reply With Quote
Old 11-17-2014, 12:03 PM   #12
theducks
Well trained by Cats
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: 30,909
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by René vd Abeelen View Post
Allright... I hope I am doing this the way I should...
And thanks very much for taking this trouble!!!
I suspect your Images are as big as the viewing area, thus the various Margins ,heading, breakcause an overflow.

Heading
BR
margin

P margin
image
margin

Note in your stylesheet:
Code:
h1, p { margin:0pt }
Then
Code:
h1 { font-family:Helvetica, sans-serif; font-size:1.45em; font-weight:bold; line-height:110%; margin-bottom:3pt; margin-top:12pt; page-break-after:avoid; text-align:justify }
The BR inherits the 1.45 em text height (line-height is the space between lines of the same block)

It all adds up (height wise)


BTW the stylesheet was not linked to all the pages (2-7April...)
Tools: Reports: Style Classes in HTML files you should see almost every file there (cover and jacket are sometimes excluded)

I added
Code:
class="image_page"
to the <IMG tag to allow a scaling style
Code:
.image_page { height:80%;}
which I added to the stylesheet. (You may want to do more control here)

Also
you have a mix of In document (the gold <style> section in Sigil)
and a stylesheet

Both ways will be painful to maintain in a book of more than a few pages .

If it is used once in the book: OK inline
If a style is used multiple places: It really belongs in a stylesheet . Define once, use many times
theducks is offline   Reply With Quote
Old 11-18-2014, 02:55 AM   #13
René vd Abeelen
Junior Member
René vd Abeelen began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: iPad
Thanks very much for your comments!!! I think I can solve the problems now.
René vd Abeelen is offline   Reply With Quote
Old 11-19-2014, 04:34 AM   #14
René vd Abeelen
Junior Member
René vd Abeelen began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Nov 2014
Device: iPad
Since I'm not familiar with 'coding' (I can't figure out where to insert that class:"image_page" and .image_page {height} codes) I've decided to resize al the pictures. I didn't want to do that since I want people to be able to read the text in the picture, but it seems I had no choice. The ridiculous (& very frustrating) outcome is that the first three pages with a picture now work as they should, but then... the rest still 'generates' a blanc page between them. They are all the same hight now, all inserted in brand-new html-pages. Why o why is this happening? The rest of the publication is ready but it seems like I'm going to miss the targeted publication date due to this strange behavior.
René vd Abeelen is offline   Reply With Quote
Old 11-19-2014, 04:54 AM   #15
Ghitulescu
Fanatic
Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.Ghitulescu ought to be getting tired of karma fortunes by now.
 
Posts: 563
Karma: 403106
Join Date: Aug 2014
Device: PRS-T1
You should find the screen sizes of most eReaders and resize the images to fit within (taking into account the margins, too).
Ghitulescu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie question UncleSteeve Devices 2 12-06-2013 02:19 PM
Question from a Newbie Ptephic Recipes 2 10-29-2011 01:14 PM
Question from newbie crazyken Calibre 3 07-14-2011 03:32 AM
another newbie question Brandobras Calibre 1 02-28-2010 05:49 AM
Newbie question just_jeepin Sony Reader Dev Corner 1 05-26-2009 11:26 AM


All times are GMT -4. The time now is 05:30 AM.


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