Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-15-2011, 09:16 AM   #16
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Sounds like you're getting it.

The epub special case will be going away in the near future, along with some other enhancements to preprocess.
ldolse is offline   Reply With Quote
Old 01-15-2011, 09:40 AM   #17
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
Quote:
Originally Posted by ldolse View Post
Sounds like you're getting it.

The epub special case will be going away in the near future, along with some other enhancements to preprocess.
sounds good.

there's a warning taken onto structure detect - something like

"use with care- this may make things worse "

under what circumstances does that happen ?
cybmole is offline   Reply With Quote
Advert
Old 01-15-2011, 11:20 AM   #18
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
I have sound some books in a series where the above structure detection appraoch is not working. chapters are not being detected. ...
I am going from mobi to epub and in the epub I see
Code:
    <p class="calibre9"><span class="calibre3"><span class="bold">Chapter 1</span></span></p><br class="calibre1" />  

...  

 <p class="calibre9"><span class="calibre3"><span class="bold">Chapter 2</span></span></p><br class="calibre1" />
I will now try to put them into the bug tracker system for you, please confirm that I've have done that correctly.

UPDATE - seems to be a case of preprocess not running on mobi source, despite having reset convert options to default.I did the extra step of copy the epub created by the failed attempt, renamed it as zip, add back to library, reconverted - then I do get chapters found, files split etc..

that's still pretty slick when I think of how long I spent fixing vol 1 & 2 of this series by hand ! but check it out please - should the preprocess have worked on the .mobi source ?

Last edited by cybmole; 01-15-2011 at 11:31 AM.
cybmole is offline   Reply With Quote
Old 01-15-2011, 11:39 AM   #19
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
See the bug, will make sure these scenarios are covered.
ldolse is offline   Reply With Quote
Old 01-15-2011, 11:10 PM   #20
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by cybmole View Post
I have sound some books in a series where the above structure detection appraoch is not working. chapters are not being detected. ...
I am going from mobi to epub and in the epub I see
Code:
    <p class="calibre9"><span class="calibre3"><span class="bold">Chapter 1</span></span></p><br class="calibre1" />  

...  

 <p class="calibre9"><span class="calibre3"><span class="bold">Chapter 2</span></span></p><br class="calibre1" />
I will now try to put them into the bug tracker system for you, please confirm that I've have done that correctly.

UPDATE - seems to be a case of preprocess not running on mobi source, despite having reset convert options to default.I did the extra step of copy the epub created by the failed attempt, renamed it as zip, add back to library, reconverted - then I do get chapters found, files split etc..

that's still pretty slick when I think of how long I spent fixing vol 1 & 2 of this series by hand ! but check it out please - should the preprocess have worked on the .mobi source ?
Mobi wasn't fully integrated into preprocess, as I didn't really have any mobi sources that required this sort of processing when I implemented the feature. The work that's underway now will have all file formats going through preprocess if it's enabled.

Regarding 'making things worse', the feature just uses common patterns. False positives are possible, though a lot of logic exists to prevent this, they can't be completely eliminated. It also removes all non-breaking spaces from the document to facilitate processing - if there were some in place for formatting reasons they'll be eliminated.
ldolse is offline   Reply With Quote
Advert
Old 01-16-2011, 02:41 AM   #21
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
thanks - I'll be happy to test on mobi sources for you, and/or to search my unchecked books for other types of chapter headers in mobi. meantime the mobi to epub; copy & rename to to zip, zip to epub to mobi route will do me.

the copy, rename, add back to calibre steps could probably done with a little dos script
cybmole is offline   Reply With Quote
Old 01-16-2011, 02:45 AM   #22
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
PS actually we never totally nailed the original thread question -

aside from going via structure detection, is it possible to tell calibre to add a page break and/or file split at each toc entry point, working directly from the existing toc ?

the reason for asking is that a book can have an obscure, hard to detect way of starting chapters but can also have a good-to-go TOC already. in that case, after convert to mobi - K3 will skip to next/prev toc entry OK, but will not start each chapter with a page break
cybmole is offline   Reply With Quote
Old 01-19-2011, 11:39 AM   #23
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
Quote:
Originally Posted by ldolse View Post
T


With the default ( preprocess) settings your file WILL be split into a single file per chapter - .

I thought I'd understood this , & bought into the above, but after filing a bug report re one obstinate book I get 2 contradictory responses:

1 - you saying - resolved - will be fixed in next release
"resolution: => fixed"

then

2, Kovid saying invalid bug report
resolution: => invalid
"Comment:
calibre does not recombine split files."

well does it or doesn't it ???


I thought that was a preprocess feature & it has worked OK on many books, once I got my preferences sorted , and grasped that currently, the file has to be re-imported as a zip for that preprocess to work OK???
cybmole is offline   Reply With Quote
Old 01-19-2011, 11:44 AM   #24
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
You're talking about two entirely different things. If a file is already split into multiple flows, Calibre won't re-merge it into a single flow, it will convert it as is, possibly adding new split points if configured to.

If a file IS a single flow, there are a variety of ways you can get Calibre to split it during conversion, one of which is the preprocess option combined with page break settings. The bug I fixed was to split files, not put them back together.
ldolse is offline   Reply With Quote
Old 01-19-2011, 11:53 AM   #25
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
ok - got it - so to combine files I would need to do somteing like epub to rtf to filtered html - reimport....

unfortunately, because the source is crap, calibre creates an invalid .rtf!

( as you have the buggy book already - any chance you call tell me why the rtf fails & whether I should register that as a different bug, please )

I could go via .txt but then I'd have to start over with tagging the chapter points !

Last edited by cybmole; 01-19-2011 at 01:50 PM.
cybmole is offline   Reply With Quote
Old 01-19-2011, 11:55 AM   #26
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
I don't support the rtf output plugin. Try txt instead, you can try to export the text using markdown to preserve some of the original formatting if there is any. Markdown will preserve any chapters already in the doc.
ldolse is offline   Reply With Quote
Old 01-19-2011, 03:28 PM   #27
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,925
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 cybmole View Post
ok - got it - so to combine files I would need to do somteing like epub to rtf to filtered html - reimport....

unfortunately, because the source is crap, calibre creates an invalid .rtf!

( as you have the buggy book already - any chance you call tell me why the rtf fails & whether I should register that as a different bug, please )

I could go via .txt but then I'd have to start over with tagging the chapter points !
Sigil will combine (xHTML)files
theducks is online now   Reply With Quote
Old 01-19-2011, 03:34 PM   #28
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: 79,303
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Does anyone know who is in charge of the Mobipocket output or the ePub input?

I've found a bug converting an ePub to Mobi that a page was converted to three mobi pages.
JSWolf is online now   Reply With Quote
Old 01-19-2011, 07:28 PM   #29
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by JSWolf View Post
Does anyone know who is in charge of the Mobipocket output or the ePub input?

I've found a bug converting an ePub to Mobi that a page was converted to three mobi pages.
Just open a bug with the file attached, someone will look at it.
ldolse is offline   Reply With Quote
Old 01-20-2011, 02:44 AM   #30
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
Quote:
Originally Posted by ldolse View Post
I don't support the rtf output plugin. Try txt instead, you can try to export the text using markdown to preserve some of the original formatting if there is any. Markdown will preserve any chapters already in the doc.
ok - i went that route and got the book into as good a shape as is practical.

I will not file a bug on rtf right now, I do not use rtf much, and the times is has given invalid results are with poor quality sources
cybmole is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing Chapter PageBreaks in .MOBI on Kindle XRaySpeX Calibre 7 12-10-2010 05:29 AM
Unwanted Pagebreaks Timoleon Calibre 3 09-19-2010 07:53 PM
Pagebreaks for RTF to mobi question mputtr Calibre 1 03-17-2010 04:20 AM
Chapters showing unwanted pagebreaks and < h1 > text raltman Calibre 2 10-05-2009 04:50 PM
Epub and pagebreaks mtravellerh Calibre 3 11-02-2008 05:30 PM


All times are GMT -4. The time now is 08:41 PM.


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