View Single Post
Old 07-14-2010, 11:50 PM   #1
jUgGsY
Junior Member
jUgGsY began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2010
Device: Aldiko App - Android 2.1 HTC Hero
Detecting Chapters in PDF -> ePub conversion

Ok.. So I've searched the forums for the past couple hours, and I can't seem to get a good answer, or find one that solves my particular problem.

The PDF file I have doesn't have the Chapters tagged as h1 or h2, or at least Calibre isn't detecting them as such when I convert them to ePubs. So when I just throw the ePub onto my phone, the loading is unbearable, as the ePub is only split into 6 xhtml files in the end (and not split in any logical spots).

Is there an Xpath expression that somebody could cook up that would detect the chapters and split them properly? I know there are more tedious ways of doing it myself (opening the epub in Sigil, and inserting chapter breaks.. but for 100+ chapters, thats would take a while)

From what I can tell, the Chapters are just bold-faced ex. "Chapter 12"



If you need any more information, I'll try and give it.
jUgGsY is offline   Reply With Quote