![]() |
#16 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
As for the title, when building collections I have the 'real' book information, not the Sony DB information. As such, I see what is in the book. You can fix this by adding a plugboard EPUB->PRS505 setting title_sort to the value you are putting into title. I will look to see if I can get the device_db values, but that might be complicated. |
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
In case you are willing, here is a copy of books.py that uses author sort instead of author. Use it instead of the one in the previous post.
This will (should) fix the by_author list, but won't have any effect on the by title list unless you have added the plugboard entry and resent the books. |
![]() |
![]() |
![]() |
#18 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
![]() Quote:
Can you clear up a little confusion with the 2 new Collections? To repeat some info from post #1, all my existing Collections (from tags only) sort by author_sort, series, series_index, title by using a custom composite column, #coll505sort, with template Code:
{author_sort:titlecase()} - {series}{series_index:0>2s| | - }{title} Code:
sony_collection_sorting_rules = [(['*'], '#coll505sort')] |
||
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Oops! we cross-posted. I will retest everything this evening and report back.
|
![]() |
![]() |
![]() |
#20 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Looking at code, I have figured out how to pass the device_db values into the collections code, so the answer becomes 'somewhat'. When I release the code (assuming Kovid approves), the new collections will be hard-coded to sort: by_author: device_db author_sort, then device_db title_sort. These will use plugboard values. by title: device_db title_sort, then device_db author_sort, again using plugboard values. I don't see any reason to provide user-settable sorting for these special collections, given their purpose. If someone wants something different from these, then they can do it with custom columns. |
|
![]() |
![]() |
![]() |
#21 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
OK, dinner's over.
I have hit a snag in Step 7 (connecting the device the first time). Here are the error msg and details: Error msg: Error communicating with device Details: Spoiler:
Purely as an aside, I had to type in the above details as the Copy to Clipboard button copied the error msg not the details |
![]() |
![]() |
![]() |
#22 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
At this point the testing process has become rather complex. I must construct versions of code that do not depend on any other parts of calibre.
I am going to submit the changes for release, and we can play again at that point. ![]() Thanks very much for your help! |
![]() |
![]() |
![]() |
#23 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
You're most welcome. I'll look forward to it.
![]() |
![]() |
![]() |
![]() |
#24 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The new collections are in the next release, made available through device customization, not tweaks.
What you (will) do: - Open preferences, plugins, device plugins, sony. - go to the collections box at the bottom. - to enable the all-by-title collection, enter 'abt:Collection Name' (without the quotes). The abt: part tells calibre you want the all-by-title collection. The Collection Name part is the name that appears on the device; make it whatever you want (no commas). - to enable the all-by-author collection, enter 'aba:Collection Name'. The abt collection is sorted by title_sort. You might need to ensure that your device_db -> PRS505 plugboard sets the title_sort value. The aba collection is sorted by author_sort, then title_sort. As before, if you want something non-standard in these fields, use a plugboard. For sorting, these collections use, in order: - the author_sort/title_sort values set by the device_db->PRS505 plugboard - the metadata values stored in calibre's library The values set by a EPUB->PRS505 plugboard affect only the metadata stored in the book, and are not used when manipulating collections. |
![]() |
![]() |
![]() |
#25 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
OK. I'll download the next release as soon as available and let you know.
Just a quick question, when setting the 2 new Collection names, are embedded spaces allowed? i.e. is the following a valid entry in the Collections box (assuming I also wish to retain my tags Collections) : Code:
aba:All by Author, abt:All by Title, tags |
![]() |
![]() |
![]() |
#26 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Yes. I name mine 'aba:%All by author' (note the %) so that it is guaranteed to sort at the head of the list.
|
![]() |
![]() |
![]() |
#27 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Good. Thank you
![]() |
![]() |
![]() |
![]() |
#28 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
I do believe you've fixed it. Let joy be unconfined!
![]() ![]() ![]() For completeness I've attached screencaps of the 2 new special Collections, %All by Author and %All by Title I hope you have a very Happy Christmas ![]() |
![]() |
![]() |
![]() |
#29 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,452
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You are welcome. Glad it works in a real situation!
Quote:
It is very nice for us parents to have him around, but the situation hasn't been at all good for his Christmas plans. |
|
![]() |
![]() |
![]() |
#30 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help!, PRS650, Plugboard, book sort order rearranged into a new title | Glubbish | Calibre | 11 | 11-30-2010 03:38 PM |
Problem with Metadata Plugboard | cheveguerra | Calibre | 3 | 10-05-2010 12:00 PM |
For Charles/Chaley Merging user defined metadata | Starson17 | Calibre | 20 | 07-22-2010 10:27 AM |
Sony PRS505 loosing metadata | idt1971 | Calibre | 2 | 11-22-2008 06:52 PM |
Sony PRS505 loosing metadata | idt1971 | Sony Reader | 3 | 11-22-2008 07:35 AM |