![]() |
#316 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The other example used is the "series" column. But, it could be most columns in calibre. A numeric column, like I would expect a word count to be, will work. |
|
![]() |
![]() |
#317 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jul 2013
Device: Kobo Glo
|
Quote:
How would I go about this? (And if this is beyond the knowledge of this thread, please tell me to post it else-where). Thanks again. |
|
![]() |
![]() |
#318 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
To do something like this, you need a custom column that uses a template to generate the name of the shelf. The following should work: Code:
Lookup Name: wordsshelfname Column Heading: Words Shelf Name Type: Column built from other columns Template: {#words:'cmp($, 100000, cmp($, 50000, cmp($, 20000, '', 'Greater than 20,000 words', 'Greater than 20,000 words'), 'Greater than 50,000 words', 'Greater than 50,000 words'), 'Greater than 100,000 Words', 'Greater than 100,000 Words')'} You can change the names to what you want. And the "#words" is the lookup name of your word count column. If you want to add more divisions of the shelves, it isn't hard. But, it might be an idea to look at a slightly different way of doing it. The templates can be put elsewhere, so that they can be reused more easily. |
|
![]() |
![]() |
#319 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Quote:
There is this thing though. When I have the formating like this: {0:,} I get a "TEMPLATE ERROR invalid literal for float(): 54,916" It works only if I change the formating to {0}, but then, the word count number is more difficult to be read. There is this "re()" function I've read about, but since I don't know anything about programing, I don't know how to implement it. I'm experimenting, but ... Any thoughts? |
|
![]() |
![]() |
#320 |
Groupie
![]() Posts: 171
Karma: 94
Join Date: May 2010
Location: Brisbane, Australia
Device: Pocketbook 302
|
I setup my Kobo Aura HD using the settings on the first post in this thread. That works just fine as far as it goes. What I REALLY want to do though is emulate the folder structure of my Pocketbook, which is like this....
author_sort[1] / author_sort/ series / series_no - title ie C / Cussler, Clive / Numa Files / 01 - Sahara.epub ie at the top level I have the collections A - Z. Inside each letter I have all the authors with names that start with that letter. Inside the folder for each author I have a folder for each series, plus all the books that are not in a series. In the Kobo I have no problem making up a Shelf (Collection) for any one or all of these. But that is no good at all as you then get hundreds of collections. What needs to happen (I presume) is that you need to be able to create a collection inside another collection. Is this possible? |
![]() |
![]() |
#321 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,528
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Nope. Collections are not nestable
![]() |
![]() |
![]() |
#322 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
![]() I had a look through the list of template functions and found "raw_field". That returns the raw value of a column. Using that, the following works: Code:
{:'cmp(raw_field('#words'), 40000, cmp(raw_field('#words'), 17500, cmp(raw_field('#words'), 7500, '', 'Novelette', 'Novelette'), 'Novella', 'Novella'), 'Novel', 'Novel')'} Code:
program: words=raw_field('#words'); shelf_name=cmp(words, 40000, cmp(words, 17500, cmp(words, 7500, '', 'Novelette', 'Novelette'), 'Novella', 'Novella'), 'Novel', 'Novel'); Code:
program: words=raw_field('#words'); shelf_name=cmp(words, 7500, '', 'Novelette', 'Novelette'); shelf_name=cmp(words, 17500, shelf_name, 'Novella', 'Novella'); shelf_name=cmp(words, 40000, shelf_name, 'Novel', 'Novel'); |
|
![]() |
![]() |
#323 | ||
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Quote:
Quote:
And since we are at this, do you have any idea about a way to convert the values of this column (or any column) to tags? Not a way to send them to a Kobo device, but in the tag column inside Calibre. I did a search and didn't came up with anything useful... TIA |
||
![]() |
![]() |
#324 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Good to hear.
Quote:
Code:
list_re(src_list, separator, search_re, opt_replace) Code:
program: list_re(field('#words'), ',', '.*', '') |
|
![]() |
![]() |
#325 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Quote:
Maybe I didn't express it very well, or maybe you already answer me and I can't understand it because of my programming ignorance. Sorry about that. |
|
![]() |
![]() |
#326 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The following will return a list like you want. Code:
program: list_union(field('tags'), list_re(field('#words'), ',', '.*', ''), ',') When you send the book to the device, the tags in the metadata will be updated. You can also use this for save to disk. I'm not sure if that is what you want. I'm also not sure if there is any real point doing it. The Kobo devices do not use the tags. |
|
![]() |
![]() |
#327 | |
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 529
Karma: 64554
Join Date: Aug 2013
Device: Kobo Glo, GloHD
|
Quote:
Not a big deal, because I can add that manually. I was just thinking the "auto way" (lazy?) Thank you for your help. |
|
![]() |
![]() |
#328 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
In that case, the plugboard will work. The version of the book in the calibre library won't have it in the file. But, using send to device or save to disk will update the tags for any reader that does show the tags.
An alternative is to add a jacket. These are added as a page after the cover with a copy of the metadata. I haven't done it, but I believe the template used can be customised to include different metadata fields. For that, have a look at the calibre help, or ask in the calibre forum. |
![]() |
![]() |
#329 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,635
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
![]() |
![]() |
#330 |
Zealot
![]() Posts: 130
Karma: 40
Join Date: May 2012
Location: Paris, France
Device: Kobo Aura 6", Kobo Forma 32G
|
Hello,
Is there a way to have the bookshelves (which become "collections" in the Kobo Aura) show up in alphabetical order on the Kobo Aura. When I do it, the order seems totally random, making it hard to search. I use the bookshelf feature in calibre to, in effect, make folders to classify the books by their author. Thank you. |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Newer kernel on Kobo Mini/Touch/Glo? | BaronPampa | Kobo Developer's Corner | 0 | 12-24-2019 06:08 AM |
Aura HD vs Touch vs Glo. | themikeyt | Kobo Reader | 35 | 07-24-2014 05:39 PM |
Touch more slow than Glo and Aura? | Lucas Malor | Kobo Reader | 1 | 09-17-2013 05:54 AM |
Kobo Storage Upgrade Service (Wifi, Touch, Mini, Glo, Vox) | jefftheworld | Kobo Reader | 14 | 10-24-2012 01:20 PM |
Adding books to Kindle with Calibre mini-guide | tapar | Amazon Kindle | 7 | 12-28-2009 06:29 AM |