Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 11-20-2011, 04:25 AM   #1
salines
Zealot
salines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enough
 
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'}
salines is offline   Reply With Quote
Old 11-20-2011, 07:18 AM   #2
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: 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'}
However, the above will produce "Albion (.Reihe)", so you might want instead
Code:
sony_collection_name_template = '{value:|.|} {category:| (|)}'
sony_collection_renaming_rules = {'series': 'Reihe'}
which will produce ".Albion (Reihe)".
chaley is offline   Reply With Quote
Advert
Old 11-20-2011, 07:41 AM   #3
salines
Zealot
salines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enough
 
Posts: 127
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
Quote:
Originally Posted by chaley View Post
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?
I only want to put a "." point in front of a series.
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:
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'}
However, the above will produce "Albion (.Reihe)", so you might want instead
Code:
sony_collection_name_template = '{value:|.|} {category:| (|)}'
sony_collection_renaming_rules = {'series': 'Reihe'}
which will produce ".Albion (Reihe)".
This produces also ".Fantasy" ".History"


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.
salines is offline   Reply With Quote
Old 11-20-2011, 09:02 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: 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':''}
2. Create a composite custom column that adds the period in front of the series name, then create your series collections from that. The template for the column would be something like {series:|.|}
chaley is offline   Reply With Quote
Old 11-20-2011, 10:03 AM   #5
salines
Zealot
salines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enough
 
Posts: 127
Karma: 744
Join Date: Oct 2011
Device: Sony PRS-T1
Quote:
Originally Posted by chaley View Post
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':''}
2. Create a composite custom column that adds the period in front of the series name, then create your series collections from that. The template for the column would be something like {series:|.|}
I want to use the second.
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.
salines is offline   Reply With Quote
Advert
Old 11-20-2011, 10:38 AM   #6
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: 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:| [|]}
You probably also will want to change the tweak that controls how the collections are sorted: "Specify how SONY collections are sorted". Something like
Code:
sony_collection_sorting_rules = [(['#new_col_lookup_key'],'series_index')]
And you are welcome.
chaley is offline   Reply With Quote
Old 11-20-2011, 01:50 PM   #7
salines
Zealot
salines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enoughsalines will become famous soon enough
 
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.
salines is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 11:55 AM.


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