View Single Post
Old 06-21-2020, 07:57 PM   #2228
seanbob
Enthusiast
seanbob is on a distinguished road
 
Posts: 27
Karma: 52
Join Date: Jun 2009
Device: Sony PRS-650
Thanks for all the efforts to provide support for Kobo devices in Calibre!

I believe that I've found at least two other tag-related bugs (similar to the recent <br/> issue) that haven't been discussed yet. Unneccessary </p> tags are being added prior to some <a> and <span> tags during EPUB to KEPUB conversion. I'll post example snippets below that illustrate a single paragraph, but can also provide scrambled EPUBs if necessary.

I'm running Calibre v4.19 and the latest plugin version (KTE v3.2.11). Each has been present since at least KTE v3.2.7. If it matters, the formatting appears correct when testing the conversion with kepubify.

Examples
Spoiler:
<a> Example (Original HTML):
<p class="indent"><em>I had fully determined at the conclusion of</em> The Memoirs <em>to bring Holmes<a id="GBS.1670.02"/> to an end, as I felt that my literary energies should not be directed too much into one channel. That pale, clear-cut face and loose-limbed figure were taking up an undue share of my imagination. I did the deed, but fortunately no coroner had pronounced upon the remains, and so, after a long interval, it was not difficult for me to respond to the flattering demand and to explain my rash act away.<a id="GBS.1670.03"/> I have never regretted it, for I have not in actual practice found that these lighter sketches have prevented me from exploring and finding my limitations in such varied branches of literature as history, poetry, historical novels, psychic research, and the drama. Had Holmes never existed I could not have done more, though he may perhaps have stood a little in the way of the recognition of my more<a id="GBS.1670.04"/> serious literary work</em>.</p>

<a> Example (KTE Converted):
<p class="indent"><em><span class="koboSpan" id="kobo.50.1">I had fully determined at the conclusion of</span></em><span class="koboSpan" id="kobo.51.1"> The Memoirs </span><em><span class="koboSpan" id="kobo.52.1">to bring Holmes</span><a id="GBS.1670.02"></a></em></p><em><a id="GBS.1670.02"><span class="koboSpan" id="kobo.55.1"> to an end, as I felt that my literary energies should not be directed too much into one channel. </span><span class="koboSpan" id="kobo.55.2">That pale, clear-cut face and loose-limbed figure were taking up an undue share of my imagination. </span><span class="koboSpan" id="kobo.55.3">I did the deed, but fortunately no coroner had pronounced upon the remains, and so, after a long interval, it was not difficult for me to respond to the flattering demand and to explain my rash act away.</span></a><a id="GBS.1670.03"></a><span class="koboSpan" id="kobo.57.1"> I have never regretted it, for I have not in actual practice found that these lighter sketches have prevented me from exploring and finding my limitations in such varied branches of literature as history, poetry, historical novels, psychic research, and the drama. </span><span class="koboSpan" id="kobo.57.2">Had Holmes never existed I could not have done more, though he may perhaps have stood a little in the way of the recognition of my more</span><a id="GBS.1670.04"></a><span class="koboSpan" id="kobo.59.1"> serious literary work</span></em><span class="koboSpan" id="kobo.61.1">.</span><p></p>

<a> Example (Kepubify Converted):
<p class="indent"><em><span class="koboSpan" id="kobo.5.1">I had fully determined at the conclusion of</span></em><span class="koboSpan" id="kobo.5.2"> The Memoirs </span><em><span class="koboSpan" id="kobo.5.3">to bring Holmes</span><a id="GBS.1670.02"></a><span class="koboSpan" id="kobo.5.4"> to an end, as I felt that my literary energies should not be directed too much into one channel. </span><span class="koboSpan" id="kobo.5.5">That pale, clear-cut face and loose-limbed figure were taking up an undue share of my imagination. </span><span class="koboSpan" id="kobo.5.6">I did the deed, but fortunately no coroner had pronounced upon the remains, and so, after a long interval, it was not difficult for me to respond to the flattering demand and to explain my rash act away.</span><a id="GBS.1670.03"></a><span class="koboSpan" id="kobo.5.7"> I have never regretted it, for I have not in actual practice found that these lighter sketches have prevented me from exploring and finding my limitations in such varied branches of literature as history, poetry, historical novels, psychic research, and the drama. </span><span class="koboSpan" id="kobo.5.8">Had Holmes never existed I could not have done more, though he may perhaps have stood a little in the way of the recognition of my more</span><a id="GBS.1670.04"></a><span class="koboSpan" id="kobo.5.9"> serious literary work</span></em><span class="koboSpan" id="kobo.5.10">.</span></p>


<span> Example (Original XHTML):
<p class="indent">Todd smiled as the homework assignments were wiped away. The Ultimate Test was canceled. His name was removed from the discipline <span class="right_1" epub:type="pagebreak" id="page_7" title="7"/>list, and even the word DISCIPLINE soon disappeared.</p>

<span> Example (KTE Converted):
<p class="indent"><span class="koboSpan" id="kobo.86.1">Todd smiled as the homework assignments were wiped away. </span><span class="koboSpan" id="kobo.86.2">The Ultimate Test was canceled. </span><span class="koboSpan" id="kobo.86.3">His name was removed from the discipline </span><span epub:type="pagebreak" title="7" class="right_1" id="page_7"></span></p><span class="koboSpan" id="kobo.88.1">list, and even the word DISCIPLINE soon disappeared.</span><p></p>

<span> Example (Kepubify Converted):
<p class="indent"><span class="koboSpan" id="kobo.48.1">Todd smiled as the homework assignments were wiped away. </span><span class="koboSpan" id="kobo.48.2">The Ultimate Test was canceled. </span><span class="koboSpan" id="kobo.48.3">His name was removed from the discipline </span><span class="right_1" epub:type="pagebreak" id="page_7" title="7"></span><span class="koboSpan" id="kobo.48.4">list, and even the word DISCIPLINE soon disappeared.</span></p>
seanbob is offline   Reply With Quote