Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-27-2022, 07:28 AM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
New Feature Kobo driver: Allow using templates to generate collections

This feature was mentioned for the latest version 5.43.0
Are there any pointers on how this is supposed to work?
DrChiper is offline   Reply With Quote
Old 05-27-2022, 09:09 AM   #2
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
It came out of a discussion between @chaley and myself in https://www.mobileread.com/forums/sh...d.php?t=346321. I think everything important is covered in that.

The main thing is that you can specify a template to return a list of names to use as collections. The list has to be separated by ":@:". This will work with the existing template columns. Or you can use it by itself. Or just stick to the columns. The template is entered in the driver configuration.

That's is about it. There are some more details in the thread plus some examples. @chaley gives an example of a template that uses the device's serial number to decide on the collections to be created.
davidfor is offline   Reply With Quote
Advert
Old 05-28-2022, 04:53 AM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
Thanks for the pointer. Unfortunately I do not monitor every thread (life is way too short ) so I confess I missed that.

What I'm missing in your & Chaley's discussion is the intended net result on the Kobo side: IAW what is Kobo supposed to show on its collections pages after using the templates? A screen dump would be helpful.

I know, you and Chaley can certainly dream in Python code and do have intimate knowledge about calibre's inner works: being a mere mortal, I cannot.
DrChiper is offline   Reply With Quote
Old 05-28-2022, 05:49 AM   #4
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 DrChiper View Post
Thanks for the pointer. Unfortunately I do not monitor every thread (life is way too short ) so I confess I missed that.

What I'm missing in your & Chaley's discussion is the intended net result on the Kobo side: IAW what is Kobo supposed to show on its collections pages after using the templates? A screen dump would be helpful.

I know, you and Chaley can certainly dream in Python code and do have intimate knowledge about calibre's inner works: being a mere mortal, I cannot.
Assuming the output of the template is correct then you see the results as collections, similar to what you see if you put a column such as tags in the collections box. The template permits you to build collections that aren't in a column. For example I build collections for the first letter of an author's last name, "Authors: A", "Authors: B", etc. This saves me lots of scrolling on the author's page.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Directory Templates Irian Library Management 6 02-09-2022 04:02 PM
Latest Kobo driver feature in calibre 5.12 DrChiper Kobo Reader 7 02-27-2021 11:34 AM
V3.23: Cannot find new Kobo driver feature DrChiper Devices 9 05-04-2018 10:29 AM
PRS-T2 script to generate collections stegro Sony Reader Dev Corner 8 01-05-2018 03:58 AM
feature request - switch templates kgn Calibre 8 07-23-2010 09:17 AM


All times are GMT -4. The time now is 02:47 AM.


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