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 07-12-2025, 05:09 PM   #3316
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Gorcsev View Post
In the KoboTouchExtended (KTE) plugin, users had the ability to customize how the 'kobo spans' were managed. Could you kindly point me to where this functionality is handled in the KoboTouch driver now that the KTE "functionality" have been integrated?

thank you
Go to Preferences > Output options Select KEPUB output. The options you want are on the right side.
JSWolf is offline   Reply With Quote
Old 07-12-2025, 09:22 PM   #3317
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: 46,220
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Go to Preferences > Output options Select KEPUB output. The options you want are on the right side.
If you meant Preferences => Conversion => Output Options? None of the options there seem to match with what @Gorcsev was asking about for controlling the span locations.

I suspect that since part of the design of the kepubify code for calibre was to give as close a match as possible to Kobo generated kepubs, those options did not make the cut.
DNSB is offline   Reply With Quote
Old 07-12-2025, 10:11 PM   #3318
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,525
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I wonder if the option Prefer improved text justification to proper highlighting might be appropriate?
PeterT is offline   Reply With Quote
Old 07-13-2025, 06:26 AM   #3319
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Gorcsev View Post
In the KoboTouchExtended (KTE) plugin, users had the option to change the Python code to control how "kobo spans" were handled (for example, deciding whether each paragraph or each node should get its own span, and how spaces were managed, trailng leading span adjustments).
Now that these features have been added into the main KoboTouch driver, could you point me to the part of the code where this functionality is currently being controlled?

thank you
If you want to change the code in calibre itself, it is in src/calibre/ebooks/oeb/polish/kepubify.py. You will be responsible for propagating your changes whenever you update calibre.

If what you want to do is sufficiently generic, you might consider submitting the changes along with the options to control them to Kovid. In this case your code must not only make the changes but also be able to remove them.
chaley is offline   Reply With Quote
Old 07-13-2025, 07:13 AM   #3320
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
If you meant Preferences => Conversion => Output Options? None of the options there seem to match with what @Gorcsev was asking about for controlling the span locations.

I suspect that since part of the design of the kepubify code for calibre was to give as close a match as possible to Kobo generated kepubs, those options did not make the cut.
That is how spans are managed. in the KEPUB output options there is an option for Prefer improved text justification to proper highlighting. That does dictate how spans are managed.

As far as a recall, there wasn't an option in the KoboTouchExtended driver on how the spans are managed. If I am wrong, please let me know.

Last edited by JSWolf; 07-13-2025 at 07:15 AM.
JSWolf is offline   Reply With Quote
Old 07-13-2025, 01:32 PM   #3321
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,631
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by JSWolf View Post
As far as a recall, there wasn't an option in the KoboTouchExtended driver on how the spans are managed. If I am wrong, please let me know.
Yes, please, I don't remember it either, and checking the oild configuration file, I don't find information about it either.
Terisa de morgan is offline   Reply With Quote
Old 07-13-2025, 01:57 PM   #3322
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
That is how spans are managed. in the KEPUB output options there is an option for Prefer improved text justification to proper highlighting. That does dictate how spans are managed.

As far as a recall, there wasn't an option in the KoboTouchExtended driver on how the spans are managed. If I am wrong, please let me know.
↑ ↑ ↑ ✔
(I tend to accept them as they worked. Not knowing all their usages is a good reason to not muck about)
theducks is online now   Reply With Quote
Old 07-14-2025, 07:29 AM   #3323
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,012
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Quote:
Originally Posted by JSWolf View Post
Go to Preferences > Output options Select KEPUB output. The options you want are on the right side.
The option wanted is "Prefer improved text justification to proper highlighting" in the above changes how spans are inserted for kepub.. This is most likely what you are looking for.
compurandom is offline   Reply With Quote
Old 07-16-2025, 06:10 AM   #3324
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by compurandom View Post
The option wanted is "Prefer improved text justification to proper highlighting" in the above changes how spans are inserted for kepub.. This is most likely what you are looking for.
You are repeating what's already been posted.
JSWolf is offline   Reply With Quote
Old 07-18-2025, 07:34 AM   #3325
jiembe
Zealot
jiembe began at the beginning.
 
Posts: 145
Karma: 10
Join Date: Sep 2016
Location: Montréal Québec
Device: Kobo Glo; Kobo Libra
KoboTouchExtended option:

Use Template for kepubification
_________________

My Win7 PC can't be upgraded. Anyway, it's my hob for all multimedia in the house and work perfectly well. Why changing what is not broke.

And I don't need the last version of Calibre.
jiembe is offline   Reply With Quote
Old 07-18-2025, 07:39 AM   #3326
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,757
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by jiembe View Post
KoboTouchExtended option:

Use Template for kepubification
_________________

My Win7 PC can't be upgraded. Anyway, it's my hob for all multimedia in the house and work perfectly well. Why changing what is not broke.

And I don't need the last version of Calibre.
Why can't you upgrade your Windows 7 to Windows 10?
JSWolf is offline   Reply With Quote
Old 07-18-2025, 08:01 AM   #3327
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: 46,220
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
Why can't you upgrade your Windows 7 to Windows 10?
Jon, Jon, Jon, just in case you didn't notice this before, Windows 10 has different minimum hardware requirements than Windows 7 did. There was a good chunk of older Windows 7 hardware that did not meet the minimum requirements for Windows 10 at it's release.

Heck, I've seen computers running early version of Windows 10 that can't update to Windows 10 22H2 due to their CPUs no longer being on the supported list.
DNSB is offline   Reply With Quote
Old 07-18-2025, 11:59 AM   #3328
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,525
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by jiembe View Post
KoboTouchExtended option:

Use Template for kepubification

That option is still in calibre 8 and above.

It's found in the Configure this device menu of the driver, on the tab labelled Collections, covers and uploads and is labelled Template to decide conversions. The help for the field reads
Quote:
Enter a template to decide if an EPUB book is to be auto converted to KEPUB.

If the template returns false or no result, the book will not be converted to KEPUB. For example to only kepubify books that have the tag as_kepub, use the template:
Code:
{tags:str_in_list(\,,as_kepub,true,false)}
or to only convert books that do not have the tag as_epub, use the template:
Code:
{tags:str_in_list(\,,as_epub,false,true)}
If no template is specified conversion to KEPUB is controlled only by the setting above to use the Kobo viewer.

Note that the setting above must be enabled for the template to be checked.'
PeterT is offline   Reply With Quote
Old 07-18-2025, 03:20 PM   #3329
Gorcsev
Enthusiast
Gorcsev began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
Quote:
Originally Posted by Gorcsev View Post
users had the option to change the Python code to control how "kobo spans" were handled
I’d like to clarify that it wasn’t simply a matter of checking or unchecking a box.
As I mentioned earlier, we could modify the Python code to manage the Kobo spans differently if we wanted to. For me, one of the main differences was keeping entire paragraphs in one span rather than splitting them into smaller chunks. Those of us who made the code changes chose this approach because we were not satisfied with the formatting of the original spans.

Similarly, the leading and trailing spaces within the spans were managed in my code with the aim of improving the overall formatting and making it cleaner and more polished. As far as I know, this wasn’t implemented in kePubify.

Given the new approach, is there any way I can use parts of my old code to achieve this?
Gorcsev is offline   Reply With Quote
Old 07-18-2025, 03:31 PM   #3330
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Gorcsev View Post
I’d like to clarify that it wasn’t simply a matter of checking or unchecking a box.
As I mentioned earlier, we could modify the Python code to manage the Kobo spans differently if we wanted to. For me, one of the main differences was keeping entire paragraphs in one span rather than splitting them into smaller chunks. Those of us who made the code changes chose this approach because we were not satisfied with the formatting of the original spans.

Similarly, the leading and trailing spaces within the spans were managed in my code with the aim of improving the overall formatting and making it cleaner and more polished. As far as I know, this wasn’t implemented in kePubify.

Given the new approach, is there any way I can use parts of my old code to achieve this?
I answered your question in this post: https://www.mobileread.com/forums/sh...10#post4524410
chaley is offline   Reply With Quote
Reply

Tags
error, kobo aura one


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Device Driver Update davidfor Devices 284 05-24-2019 05:24 PM
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod cryzed Plugins 7 10-28-2012 04:58 PM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 10:11 AM
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? EverC Kobo Reader 11 08-31-2011 11:47 PM
Touch Kobo Touch Extended Warranty Program SensualPoet Kobo Reader 1 07-17-2011 04:08 AM


All times are GMT -4. The time now is 03:05 PM.


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