View Single Post
Old 01-09-2011, 06:40 AM   #2
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,795
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
I dont think thats possible

What are your source files for generating epubs
normally calibre just checks H1 and H2 tags but most books I acquire use H3 for chapter heading so I use this for chapter detection

Quote:
//*[((name()='h1' or name()='h2' or name()='h3') and re:test(., 'chapter|book|section|part\s+', 'i')) or @class = 'chapter']
and this for page breaks before every chapter

Quote:
//*[name()='h1' or name()='h2' or name()='h3']
If chapters are still not detected I try to use notepad++ to add <h3> tags to the source files and use this in level 1 Toc as a last option never fails
Quote:
//h:h3
Dopedangel is offline   Reply With Quote