View Single Post
Old 04-05-2014, 06:24 PM   #618
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by Perkin View Post
@Rev. Bob
This is a modified 'modify epub' plugin that contains the changes.
Please note that I haven't tested it as I haven't got a file that needs modifying.
Quote:
Originally Posted by PeterT View Post
Just tried the plugin on a genuine kEpub and then loaded it into Edit and did a check which reported several occurences opening and ending tag mismatches.

If you'd like to PM me an eMail address I'll supply a copy of the book I am testing with.
Having received the book in question and run some tests on it, the problem seems to stem from the entity-match routine getting thrown out of sync by a self-closed A tag:

Quote:
Originally Posted by Before
<p class="indent"><span id="kobo.8.9">Blue and white self-seeded <a id="page_208"/>campanulas totter.</span> Hollow-stemmed <em>Galega</em>, all knees and elbows, capsizes over the path. The white ox-eye daisies, for a few weeks a wonderful swaying sea of white, have collapsed into an untidy straggle.</p>
Quote:
Originally Posted by After
<p class="indent">Blue and white self-seeded <a id="page_208"/>campanulas totter.</span> Hollow-stemmed <em>Galega</em>, all knees and elbows, capsizes over the path. The white ox-eye daisies, for a few weeks a wonderful swaying sea of white, have collapsed into an untidy straggle.
The latest code (still with the de-Kobify and <span> stripping as one routine) is attached. Perkin, can you take a look?
Attached Files
File Type: zip Modify ePub - stripspans.zip (150.6 KB, 217 views)
Rev. Bob is offline   Reply With Quote