View Single Post
Old 07-16-2010, 10:10 AM   #1
JulianL
Junior Member
JulianL began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2010
Location: London, UK
Device: iPhone & iPad
Problems with PML Conversions - Is it a bug?

Since this is my first real post apart from my introduction (https://www.mobileread.com/forums/showthread.php?t=90175) I should start out by saying a big thank you to Kovid for Calibre - what a fantastic program.

I'm converting some books from my old Palm eReader days so that I can copy them into my iBooks library on my recently purchased iPhone. So far I'd say I've been 95% successful and have done quite a few conversions that look really good but I am having one generic issue that seems to be impacting many of my conversions. I wonder if it's a bug or whether someone can suggest a workaround.

My issue is with the \x and \Xn PML directives (http://www.ereader.com/ereader/help/dropbook/pml.htm). Calibre sees these as chapters to be added to the TOC but the problem is that it doesn't seem to differentiate the different levels so where I have something like:

Code:
\x\vPART I\v\x
\X1\vChapter One\v\X1
I would expect the TOC to look like:

Code:
PART I
   Chapter One
but what I actually get is

Code:
PART I
Chapter One
I tried changing \x to be explicit \X0 but I still got the same results.

I still have all the books that I'm converting loaded into eReader on my previous mobile phone so I can see what the original unconverted files are supposed to look like and the TOCs all show the correct indenting when viewing the originals.

Is this a Calibre bug? Is there anything I can do about it?

By the way, I am aware how far PML is down the list of prefered input formats that Calibre likes to work with so my expectations are suitably tempered but PML files are what I have to work with so I would like to try and get things as close to perfect as possible if I can.

- Julian
JulianL is offline   Reply With Quote