02-20-2014, 12:09 AM | #316 | |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
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. |
|
02-20-2014, 09:31 PM | #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. |
|
Advert | |
|
02-20-2014, 10:30 PM | #318 | |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
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. |
|
02-21-2014, 09:41 AM | #319 | |
Fanatic
Posts: 507
Karma: 60774
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? |
|
02-21-2014, 08:27 PM | #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? |
Advert | |
|
02-22-2014, 12:21 AM | #321 |
Grand Sorcerer
Posts: 12,103
Karma: 73447988
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Nope. Collections are not nestable
|
02-22-2014, 01:47 AM | #322 | |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
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'); |
|
02-22-2014, 12:27 PM | #323 | ||
Fanatic
Posts: 507
Karma: 60774
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 |
||
02-23-2014, 12:58 AM | #324 | |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
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'), ',', '.*', '') |
|
02-23-2014, 11:29 AM | #325 | |
Fanatic
Posts: 507
Karma: 60774
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. |
|
02-24-2014, 06:55 AM | #326 | |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
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. |
|
02-24-2014, 07:29 AM | #327 | |
Fanatic
Posts: 507
Karma: 60774
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. |
|
02-24-2014, 08:15 AM | #328 |
Grand Sorcerer
Posts: 24,908
Karma: 47303748
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. |
02-24-2014, 09:09 AM | #329 | |
Grand Sorcerer
Posts: 6,208
Karma: 11766195
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
03-20-2014, 03:27 PM | #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 Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Aura HD vs Touch vs Glo. | themikeyt | Kobo Reader | 35 | 07-24-2014 05:39 PM |
Aura HD calibre shelf management not working | rkr | Kobo Reader | 3 | 10-06-2013 10:28 PM |
Touch more slow than Glo and Aura? | Lucas Malor | Kobo Reader | 1 | 09-17-2013 05:54 AM |
Touch Shelf management on Touch | timss | Kobo Reader | 7 | 07-18-2013 12:24 AM |
Problem with Calibre Quick Start Guide! | Neil | Calibre | 9 | 02-20-2010 12:34 AM |