11-20-2011, 04:25 AM | #1 |
Zealot
Posts: 127
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
|
PRS-T1: collection name for series
I recognized that the T1 sort the collections with "." or "_" at the end of the collection-list. So I want all genres at top and the series at the end.
There I want to have my series. I wanted to rename the collection via calibre (SONY-rename collection - I have a German calibre) like: ".Albion (Reihe)" which is in English ".Albion (series)" But I get an error: GET_CATEGORY Format specifier missing precision My rename looks like this: sony_collection_name_template = '{value} {category:.| (|)}' sony_collection_renaming_rules = {'series': 'Reihe'} |
11-20-2011, 07:18 AM | #2 |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Sorry, I am confused. Are you trying to put a period in front of all collection category names (e.g. Reihe) or in front of all collection values (e.g. Albion)? And you want this to happen for all collections, regardless of the column from which the collection is built?
Regarding the specific error: you can't put constant text (the period) at that position in a template item. That is where the 'format specification' goes, which tells the formatter how numbers are to be rendered, how many characters to print, etc. Given what you did, my guess is that you want Code:
sony_collection_name_template = '{value} {category:| (.|)}' sony_collection_renaming_rules = {'series': 'Reihe'} Code:
sony_collection_name_template = '{value:|.|} {category:| (|)}' sony_collection_renaming_rules = {'series': 'Reihe'} |
Advert | |
|
11-20-2011, 07:41 AM | #3 | ||
Zealot
Posts: 127
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
|
Quote:
Because the point "." is therefore that I want to set the series at the end of my collections. The collections made of genres/tags are listed first - without a point in front. Like: Fantasy History Science-Fiction .Albion (series) .Star Wars (series) Quote:
Maybe it is easier if I say what I want: 1) All collections made from genres should be first 2) At the end I want all series in my collection list. |
||
11-20-2011, 09:02 AM | #4 |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I can think of two ways to accomplish what you want:
1. Put the category in front and (possibly) remove the category label for everything except series. Use .Reihe as the category label for series. You don't say where genre comes from, but assuming that genre is a custom column, something like: Code:
sony_collection_name_template = '{category:||: }{value} ' sony_collection_renaming_rules = {'series':'.Reihe', '#genre':''} |
11-20-2011, 10:03 AM | #5 | |
Zealot
Posts: 127
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
|
Quote:
I create composite custom col. I used {series:|.|} as template Then I get the series name with a starting point like: ".Star Wars" BUT without the series number. |
|
Advert | |
|
11-20-2011, 10:38 AM | #6 |
Grand Sorcerer
Posts: 11,734
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Add the series number to the template
Code:
{series:|.|}{series_index:| [|]} Code:
sony_collection_sorting_rules = [(['#new_col_lookup_key'],'series_index')] |
11-20-2011, 01:50 PM | #7 |
Zealot
Posts: 127
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
|
Thanks.
I experemented but my T1 doesn't create the series from the new column - and I adjusted the SONY T1 driver in calibre to create collections also from the new column. The collections of that series column aren't created. So I decided to make all more simple: Only a point "." at the start of a series-collection like ".Star Wars" - without the extra word "(series)". That function very well. ---- I also saw that the guy who makes the root wanted to create a special view for series: http://code.google.com/p/sonyprst1ho...es/detail?id=2 ----- I want to thank you very much for helping me! This forum is really great! Maybe in future I also can help people - I hope so. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Series/Collection | sikm | Calibre | 7 | 10-28-2011 03:44 PM |
Book in Calibre Series is not being added to collection in Sony PRS 300 | Sean0 | Devices | 6 | 08-14-2011 12:57 PM |
Sort collection by series number? | rp272 | Plugins | 2 | 08-05-2011 01:50 AM |
Is there a way to make a collection in the kindle sort by series #? | havenw | Amazon Kindle | 4 | 12-30-2010 03:44 PM |
How do I get Collection/Series data on SD card on PRS-505 | helliaff | Calibre | 12 | 08-11-2009 12:30 AM |