View Single Post
Old 07-25-2012, 12:03 PM   #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,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by femgeek View Post
I mean a user-defined category in the tag browser, yes. For user-defined categories, it's possible to have hierarchical categories, e.g. I could have a category "Authors", with a subcategory "British", and then tags for each British author. Ideally, I'd like those to appear on the Reader as collections "Authors: British: [author name]".

Does that make more/any sense?
Yes, but ...

User defined categories aren't real metadata. They are useful for organizing within calibre, but cannot be generally used as metadata items.

I think that what you want to do is use hierarchical categories. See this tutorial for an example. If you set up a multi-level genre column matching your example, then with some template magic you can get these to build collection the way you want. Jumping way ahead, the tweak sony_collection_name_template would be defined as:
Code:
sony_collection_name_template = '{value:'re($, '\.', ': ')'}'
This replaces every period in the hierarchical item with a colon followed by a space.
Quote:
... Okay, running into additional problems, now. Augh.

The example you gave should work for predefined categories like Series or Languages ... except I just tried it, and it does nothing. o_O
Probably you have not turned on automatic metadata management. Go to preferences -> sending books to devices and check what is in the "Metadata management" box. Note: if you change this box, calibre will take total control of your collections. All your personally-defined collections will be nuked. Be sure that you have set up those collections in calibre before changing this box.

The advantage of using auto management is that your collections are updated from current metadata every time you connect your device to calibre. Edit some metadata, connect the device, and voila. This is really very convenient, especially when you are still experimenting with a system.
chaley is offline   Reply With Quote