Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 02-14-2025, 12:41 PM   #586
repilo
Connoisseur
repilo began at the beginning.
 
Posts: 77
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
New issue since version 3.7.0 (inclusive) onward.

The following snippet results in incorrect rendering on the Kobo Libra 2 in Kepub.Output version 3.7.0 and later:
Code:
<span class="nosep">C. B.</span> Horrall.
This is how it appears on the Libra 2 screen:
Code:
Text text text text text text text text text
                     C.
text text text text, B. Horrall. Text text
This issue does not occur in version 3.6.11. Additionally, if there is no period (".") inside the <span>, the problem does not appear in the latest versions either.

Below are excerpts from the Kepub conversions using Kepub.Output versions 3.7.0 (incorrect) and 3.6.11 (correct).

Kepub.Output 3.7.0:
Code:
<span class="nosep"><span class="koboSpan" id="kobo.109.1">C.</span> <span class="koboSpan" id="kobo.109.2">B.</span></span> <span class="koboSpan" id="kobo.110.1">Horrall.</span>
Kepub.Output 3.6.11:
Code:
<span class="nosep"><span class="koboSpan" id="kobo.109.1">C. </span><span class="koboSpan" id="kobo.109.2">B.</span></span><span class="koboSpan" id="kobo.110.1"> Horrall.
By the way, "nosep" is meant to prevent text separation:
Code:
.nosep { text-indent:0; display:inline-block; }
repilo is offline   Reply With Quote
Old 02-14-2025, 02:24 PM   #587
repilo
Connoisseur
repilo began at the beginning.
 
Posts: 77
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
I converted to kepub the same test file with versions 3.7.3 and 3.6.11, changed the extension to zip and then compared file by file.

Apart from the dates and version number, the only difference is in the 1.xhtml file.

More specifically, the changes are reduced to the position of the spaces in relation to the /span tags. For example:

In 3.7.3: elit.</span> <span class=“koboSpan” id=“kobo.1.2”>Nulla

In 3.6.11: elit. </span><span class=“koboSpan” id=“kobo.1.2”>Nulla
Attached Files
File Type: epub test.epub (2.3 KB, 76 views)

Last edited by repilo; 02-14-2025 at 03:05 PM.
repilo is offline   Reply With Quote
Advert
Old 03-28-2025, 06:29 AM   #588
repilo
Connoisseur
repilo began at the beginning.
 
Posts: 77
Karma: 10
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
I think it may be related to the following, taken from the latest version of Calibre, 8.1.1:
Quote:
KEPUB Output: Include leading whitespace in kobo sentence span tags. This prevents unsightly breaks when highlighting across formatted text on the Kobo
repilo is offline   Reply With Quote
Old 03-28-2025, 02:26 PM   #589
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,445
Karma: 167726581
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
KEPUB Output: Include leading whitespace in kobo sentence span tags. This prevents unsightly breaks when highlighting across formatted text on the Kobo
That would have nothing to do with the KePub Output plugin. calibre 8+ includes the ability to convert to kepub on the fly in the base KoboTouch plugin and the KoboTouchExtended, KePub Metadata Reader, KePub Metadata Writer, KePub Output and KePub Input plugins are now blacklisted and will not run in calibre 8+.
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
catalogue builder output columns are not in the same order in the output KWhytte Library Management 5 12-04-2012 02:03 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
Plugin which uses net as input and output medve Development 0 12-04-2011 03:20 PM
Creat new Output plugin (LaTeX and/or txt2tags) Lebewesen Development 3 11-22-2011 11:10 AM
AZW Conversion Output Plugin tylau0 Plugins 59 08-14-2011 10:36 PM


All times are GMT -4. The time now is 09:55 PM.


MobileRead.com is a privately owned, operated and funded community.