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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2009, 11:12 PM   #1
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 2,340
Karma: 3950000
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, Kobo Touch, Sony PRS T3, Nexus 7, iPad mini
Structure detection v5.5 and v6.2

I have an ebook which I converted successfully with Calibre 5.5 from HTML/CSS to mobi and have uploaded it to MobileRead - War is a Racket by Butler, Smedley D if it makes any difference.

The Title Page of the book has this HTML
<div id="titlepage">
<h1>War is a Racket</h1>
<h3>by</h3>
<h2>Maj.General Smedley D. Butler</h2>
<div class="photoholder">
<img src="SmedleyButler.jpg"
alt="Smedley Butler" width="300" height="376"/>
</div> <!-- End of photoholder div -->
</div> <!-- End of Title page div; page break in CSS -->

With the conversion using Calibre 5.5 all that fits nicely on one page of my Cybook.

But when I tried to convert the same HTML/CSS with Calibre 6.2 the page is broken after the 'by' so that 'War is a Racket' and 'by' are centred on one page and 'Maj.General Smedley D Butler' and the graphic are on the next page. This is not what I want.

I suspect that it has something to do with the Structure Detection section of the conversion section. I did not make any changes to the defaults on either conversion; I relied on the setup in the HTML/CSS to define the structure and pagination.

So two questions:
If it is the Structure Detection options which has caused the difference how to I turn this section off, or not use it? If not, what has caused the difference?
Why have this section at all? I've taken some pains to set up the structure of the book in the HTML/CSS; why require that I set it up in Calibre instead or as well?

Regards, Alex
AlexBell is offline   Reply With Quote
Old 07-29-2009, 01:14 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,463
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
By default in 0.6 calibre will insert page breaks before h1 and h2 tags. Easy to turn off, in Structure Detection just change Insert Page breaks before to

//h:h1

to have it only insert page breaks before h1 tags as your structure requires
kovidgoyal is offline   Reply With Quote
Old 07-29-2009, 11:11 PM   #3
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 2,340
Karma: 3950000
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, Kobo Touch, Sony PRS T3, Nexus 7, iPad mini
Quote:
Originally Posted by kovidgoyal View Post
By default in 0.6 calibre will insert page breaks before h1 and h2 tags. Easy to turn off, in Structure Detection just change Insert Page breaks before to

//h:h1

to have it only insert page breaks before h1 tags as your structure requires
Thanks, Kovid. I'm still experimenting, but have found the way to turn the structure thingy off by using just a / and that has solved this problem.

I really appreciate your program, and the hard work you and the other developers do. But I really, really, would like you to give the manual a higher priority - if only for inexpert people like me.

Regards, Alex
AlexBell 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
Structure Detection - Remove Header (or Footer) Regex DarkKipper Conversion 69 11-09-2013 01:21 PM
Trouble w structure detection jeff47 Calibre 1 10-13-2010 01:51 AM
epub - force a 2nd pass to improve structure detection ? cybmole Calibre 10 10-08-2010 02:00 AM
Structure Detection Ceased To Exist? radiofred Calibre 3 10-01-2010 01:33 AM
Device detection? totanus ePub 1 12-17-2009 08:05 AM


All times are GMT -4. The time now is 10:28 AM.


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