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 03-01-2021, 10:28 PM   #2476
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I was able to get rid of the dummytemplatetest subtitles by emptying the subtitle field, letting it update, and then putting my template code back.
ownedbycats is online now   Reply With Quote
Old 03-01-2021, 11:03 PM   #2477
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ownedbycats View Post
I was able to get rid of the dummytemplatetest subtitles by emptying the subtitle field, letting it update, and then putting my template code back.
I suppose that should work. You are basically setting the template to an empty string and that should do the same on the device. Though it will be doing this for all subtitles.

But, that should work the same with the previous template. Unless that is returning None or something like that when the condition returns false. You could try adding an else to return an empty string (just two quotes together).

I'll have to experiment and see. And check the code. I might have deliberately decide to not change the subtitle if the template doesn't return anything.
davidfor is offline   Reply With Quote
Old 03-01-2021, 11:43 PM   #2478
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by davidfor View Post
But, that should work the same with the previous template. Unless that is returning None or something like that when the condition returns false. You could try adding an else to return an empty string (just two quotes together).
I wondered if the gpm might be messing things up? I just have "IF #fanficcat exists, THEN use this" but no "ELSE use an empty string" that would overwrite the existing subtitles.
ownedbycats is online now   Reply With Quote
Old 03-02-2021, 01:30 AM   #2479
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ownedbycats View Post
I wondered if the gpm might be messing things up? I just have "IF #fanficcat exists, THEN use this" but no "ELSE use an empty string" that would overwrite the existing subtitles.
Actually, I think you are thinking about this incorrectly. The template should always return the subtitle you want to use for a each book. If you don't want a subtitle it should return an empty string or nothing (have to check the code). The driver check if this is different to what is on the device and update if it is different. That includes removing an existing subtitle if the template says the book does not have one.

This is how all the metadata updating in the driver works. It compares the current library value (after applying plugboards or templates) with what is in the database on the device. Then it updates the database with the differences. And that includes clearing the metadata value in the database.

If you just want to set the subtitle for a few books, I would not use the driver for the subtitle. Disable the option in the driver. Then use the metadata update in the Kobo Utilities plugin. You can select the books you want to set the subtitle on, which will make the template simpler. But, this should work in the same way as the driver, just on the selected books and when you want to run it.
davidfor is offline   Reply With Quote
Old 03-02-2021, 01:56 AM   #2480
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Ah that makes sense. I have a lot of fanfics that would be annoying to manually update so if it becomes a problem again i can add an ELSE for empty string.
ownedbycats is online now   Reply With Quote
Old 03-15-2021, 03:44 AM   #2481
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,974
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Small UI bug: In the configuration, the tooltip for Ignore Collections seems to be wrong. it shows information about Create Collections instead.
ownedbycats is online now   Reply With Quote
Old 03-15-2021, 09:38 AM   #2482
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by ownedbycats View Post
Small UI bug: In the configuration, the tooltip for Ignore Collections seems to be wrong. it shows information about Create Collections instead.
I think you are seeing the tooltip for the full collections group. There is a separate tooltip for the ignore collection entry field and that seems to be correct. This should probably be on the label for the field as well. I'll have to fix that. Which means I'll have to check all the others

And for the record, anything in the first three tabs of the configuration of the KoboTouchExtended driver is inherited from the built-in KoboTouch driver. All the function comes from their. The actual configuration is stored separately for the two drivers. Changing from one to the other does not copy these parts of the configuration.
davidfor is offline   Reply With Quote
Old 03-15-2021, 05:18 PM   #2483
Dfaure
Enthusiast
Dfaure began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Jan 2013
Device: Kobo Libra 2 & Aura HD, Cybook Muse
I fear I triggered an unhandled corner case in the KTE conversion:

Last day, a friend gave me an epub to read, that I put into my Calibre and transfered onto my Kobo using KTE driver in order to get all the bell & whistle from the kepub format.

Then, I noticed that each time I powered on the kobo and resumed reading this book, the reading app couldn't set me back to my last reading position and let me at a chapter start.

So, I decided to open the original epub in the Calibre editor and found that the book was already a kepub, with the kobo.js script and the "koboSpan" spans.

I think that KTE's kepub generation isn't handling very well the case and is building a kepub with self-enclosed "koboSpan" spans or such, which definitely can't be handled as expected by the reader application.

Last edited by Dfaure; 03-15-2021 at 05:19 PM. Reason: typo
Dfaure is offline   Reply With Quote
Old 03-16-2021, 01:23 AM   #2484
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Dfaure View Post
I fear I triggered an unhandled corner case in the KTE conversion:

Last day, a friend gave me an epub to read, that I put into my Calibre and transfered onto my Kobo using KTE driver in order to get all the bell & whistle from the kepub format.

Then, I noticed that each time I powered on the kobo and resumed reading this book, the reading app couldn't set me back to my last reading position and let me at a chapter start.

So, I decided to open the original epub in the Calibre editor and found that the book was already a kepub, with the kobo.js script and the "koboSpan" spans.

I think that KTE's kepub generation isn't handling very well the case and is building a kepub with self-enclosed "koboSpan" spans or such, which definitely can't be handled as expected by the reader application.
The driver should be handling that. It definitely has code to check in each internal file for the spans before applying them again. It has been a while since I checked, so I'll test it.

You say this happens after powering the device off. Losing reading positions when powering of is a common sign of a corrupt database on the device. What happens if you close the book and reopen it? That will be working from the what is in memory. If it opens in the right place, it is most likely the database.

Otherwise, what you describe is a symptom of missing the spans or an error in how they are setup. There could also be an issue if the ToC did not match the book. This could be in the original book or if you edited it and resent it. It would help to see the both versions of the book. If it is legal to post, you can attach them here. Or you can use the ScrambleEbook plugin to produce a version you can post. Or upload them somewhere and PM me a link to them.
davidfor is offline   Reply With Quote
Old 03-16-2021, 04:05 PM   #2485
Dfaure
Enthusiast
Dfaure began at the beginning.
 
Posts: 31
Karma: 10
Join Date: Jan 2013
Device: Kobo Libra 2 & Aura HD, Cybook Muse
Quote:
Originally Posted by davidfor View Post
You say this happens after powering the device off. Losing reading positions when powering of is a common sign of a corrupt database on the device. What happens if you close the book and reopen it? That will be working from the what is in memory. If it opens in the right place, it is most likely the database.
That's what I was also initially fearing, and the first thing I did was to use the consistency check of Kobo Utilities which found the database OK.
In fact, the reading position was not fullly lost between open/close : I only had to restart from the beginning of the chapter I was in.

Quote:
Originally Posted by davidfor View Post
Otherwise, what you describe is a symptom of missing the spans or an error in how they are setup. There could also be an issue if the ToC did not match the book. This could be in the original book or if you edited it and resent it. It would help to see the both versions of the book. If it is legal to post, you can attach them here. Or you can use the ScrambleEbook plugin to produce a version you can post. Or upload them somewhere and PM me a link to them.
I was suspecting KTE, because when I opened the epub in Calibre editor to remove "manually" the offending <span class="koboSpan">...</span> and related style definitions and finally transferred back the result onto the reader, I got back to the usual book reading behaviors.
Dfaure is offline   Reply With Quote
Old 03-19-2021, 11:17 PM   #2486
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Dfaure View Post
I was suspecting KTE, because when I opened the epub in Calibre editor to remove "manually" the offending <span class="koboSpan">...</span> and related style definitions and finally transferred back the result onto the reader, I got back to the usual book reading behaviors.
The problem is that the spans are incomplete. They should have an id. What you have is:

Code:
<span class="koboSpan">
But, it should look like:

Code:
<span class="koboSpan" id="kobo.1.1">
The ids are used when storing the location. For the reading location, it is just the id. For annotations, it also has the a character count within the span.

I'd love to know where these came from. The spans without the ids are useless.

I'm not sure if adding support for this in the driver is worth it. It is a very unusual case. Or at least I hope it is. The check for the spans is simplistic and just checks that spans with this class or ids like the above exist. It doesn't check that they are valid. Adding something that fixes this would be beyond what I think is intended in the plugin. And I'm not sure how hard it would be or what risk of producing a bad result would be.

You can fix this with the editor. You can use Diap's Editing Toolbag plugin to remove them easily. The Modify ePub plugin can also remove spans. I can't remember if it has code to handle the kepubs spans or not. I know it was discussed, but, I don't remember whether it was added or not.
davidfor is offline   Reply With Quote
Old 03-21-2021, 01:35 AM   #2487
psychogator
Member
psychogator began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2020
Device: Kobo Libra H2O
I keep reading that I can convert to kepub before transferring to my Kobo and it will discard the file after transfer. I have been able to convert it, but not automatically as far as I know and it keeps the kepub in my library. Is there some seeing I am missing. Right now I select a book and use the transfer specific format, then select kepub. It converts and transfers as expected but the file remains. Do I need to just transfer and not use the specific format. Is there a setting I'm missing or need to enable? Thanks in advance.

Sent from my SM-G930V using Tapatalk
psychogator is offline   Reply With Quote
Old 03-21-2021, 02:47 AM   #2488
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,056
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
If you 'Convert' (before), it stays as part of the library.
If you just transfer with the Plugin active, it does not keep it

Unless you have a slow machine, the on-the-fly (from EPUB) conversion happens pretty fast
theducks is offline   Reply With Quote
Old 03-22-2021, 12:26 AM   #2489
psychogator
Member
psychogator began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Oct 2020
Device: Kobo Libra H2O
Quote:
Originally Posted by theducks View Post
If you 'Convert' (before), it stays as part of the library.

If you just transfer with the Plugin active, it does not keep it



Unless you have a slow machine, the on-the-fly (from EPUB) conversion happens pretty fast
Thanks I'll give that a try.

Sent from my SM-G930V using Tapatalk
psychogator is offline   Reply With Quote
Old 03-30-2021, 12:29 PM   #2490
troro
Junior Member
troro doesn't feed trollstroro doesn't feed trollstroro doesn't feed trollstroro doesn't feed trollstroro doesn't feed trollstroro doesn't feed trollstroro doesn't feed trollstroro doesn't feed trollstroro doesn't feed trollstroro doesn't feed trollstroro doesn't feed trolls
 
Posts: 7
Karma: 81728
Join Date: Nov 2017
Location: Austria
Device: Kobo Glo HD
Genre, Pages, Year as subtitle - KoboTouchExtended

Hi guys, thanks to all of you for your amazing work on mobileread.com!
Sorry, if this is the wrong forum, this is my first posting...
My problem: I added some additional information (genre, number of pages and the year of publishing) as a subtitle to the ebooks on my Kobo Glo HD (Firmware 4.24.15676) see (Fig.1). In Calibre (5.14 64bit) I created custom columns #genre, #seiten and #year. I'm using the KoboTouchExtended-Driver (3.4.4) to send the books from Calibre to the device, I select "subtitle" and enter the code {#genre} - {#seiten} Seiten {#year:| (|)} see (Fig.2)
When the ebooks have been sent to the device, the subtitles are missing (screenshot in Fig.1a). I need to plug it off, then plug in again, then open Kobo Utilities -> "Update metadata in device library" -> then select "subtitle" and "Use Plugboard" and put that code there (Fig.2b). When plugging the device off, the subtitles are there (Fig.1b).
Is there a way to achieve the desired result by sending the ebook via Kobo-driver only and skip step two (sending metadata via Kobo Utilities)?
I tried the metadata-plugboard, but there is no destination "subtitle"...
Thanks in advance!
Attached Thumbnails
Click image for larger version

Name:	Fig.1.png
Views:	297
Size:	158.9 KB
ID:	186234   Click image for larger version

Name:	Fig.2.png
Views:	308
Size:	384.4 KB
ID:	186235  
troro 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 05:53 PM.


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