View Single Post
Old 05-30-2014, 03:57 AM   #1022
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 983
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
I noticed a small difference between what the plugin does to "kepub"ize an epub, and what a native kepub looks like. I've got two versions of the same book: one version originally with Adobe DRM, and the other version originally with Kobo DRM.

I was originally trying to see why the images at the start of each chapter didn't display immediately. Going forward a page and then backwards showed the image... I haven't worked out why yet, but I did notice a difference in the markup.

Essentially, a div which just contains an image gets wrapped in the kepub with a koboSpan; a kepubized epub does not.

Native decrypted kepub:

Quote:
<body><div id="book-columns"><div id="book-inner">
<h2 class="chapter_head"><a id="pg335"/><span class="koboSpan" id="kobo.1.1">C</span><span class="small"><span class="koboSpan" id="kobo.2.1">HAPTER</span></span><span class="koboSpan" id="kobo.3.1"> 22</span></h2>

<div class="centered_image"><span class="koboSpan" id="kobo.4.1"><img alt="image" height="128" src="../Images/chapter22.jpg" width="133"/></span></div>
Kepubized (grabbed from the .kepub.epub file on my Aura):

Quote:
<body>
<h2 class="chapter_head"><a id="pg335"></a><span class="koboSpan" id="kobo.1.1">C</span><span class="small"><span class="koboSpan" id="kobo.2.1">HAPTER</span></span><span class="koboSpan" id="kobo.2.2"> 22</span></h2>

<div class="centered_image"><img src="../Images/chapter22.jpg" alt="image" width="133" height="128"/></div>

Last edited by chrisridd; 05-30-2014 at 04:53 AM. Reason: Added markup from chapter start, which is also a bit different
chrisridd is offline   Reply With Quote