View Single Post
Old 04-06-2022, 10:52 PM   #7001
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by JimmXinu View Post
Calibre's convert settings for 'Structure detection' is looking for tags with class="chapter". Which starslibrary.net (and all Base eFiction sites ) have marking the <div> tag containing the chapter text. By default (I assume--I don't remember changing that), Calibre is adding a 'pagebreak' there, apparently implemented as a break between files. Which it puts between the chapter title and the chapter text.

Trying to update such an epub gives me "FanFicFare doesn't recognize chapters in existing epub...". Which makes sense--it doesn't match FFF's file structure anymore.
FYI, I've just bumped into a different, but related issue to the one above from late 2021.

Calibre's Convert 'Structure detection' also has a "Insert page breaks before (XPath expression)" which defaults to an XPath of 'any h1 or h2 tag'.

I've just found a story where the author elected to put their own h1 tag titles in each chapter's text--in addition to the site provide chapter titles. Which Convert inserted page breaks before.

For me, it was a minor irritation when my book was converted to AZW3. Someone doing epub->epub like the original problem above would end up with broken epubs as far as FFF update is concerned.

Put / by itself in the "Insert page breaks before (XPath expression)" setting to disable it (from the setting tooltip).
JimmXinu is offline   Reply With Quote