Quote:
Originally Posted by Perkin
@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
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?