03-01-2012, 01:06 AM | #1 |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Subgroup Separator
Is there a tweak or option for setting the separator used for subgroups? I've tried looking in the preferences but couldn't find one. I'm now using custom columns in Calibre for creating hierarchical sub-collections for my Sony Reader. However, I don't want to use the default separator ('.') because a lot of the "tags" I'll be using have a period. Would like to be able to use the pipe character ('|') which is the PRS+ default separator for sub-collections.
Thanks! |
03-01-2012, 04:32 AM | #2 |
Grand Sorcerer
Posts: 11,951
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Sorry, there is no way to change the subgroup separator short of changing the calibre source code in several places.
|
Advert | |
|
03-01-2012, 02:52 PM | #3 | |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Anyhow, downloaded the source and tried to make the relevant changes. Got it working (at least it displays correctly in the Tag Browser). Just don't know if I broke anything else in the process. It seems to be working fine... Anyway, thanks! |
|
03-01-2012, 04:50 PM | #4 |
Grand Sorcerer
Posts: 11,951
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
IIRC there are places where '.' is checked in library.caches.py, gui2.tag_browser.[model, view, ui].py, util.formatter_functions.py, and gui2.dialogs.tag_categories.py. There could easily be more.
|
03-01-2012, 06:01 PM | #5 |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
I got:
Will go through the ones I missed. Oh well, it displays properly in the tag browser and that's all I really need it to do. I'm still using the official Calibre builds for library management. The instance running with modified source, I just use with a backup of my library to preview how collections will look like on PRS+, just to check for mistakes, cases (sub-collections in PRS+ is case sensitive), etc. I was getting tires of having to delete and add books to the reader every time I change sub-collections. Unfortunately, I haven't yet tested whether automatic metadata management might be an option (multiple libraries). Thanks again, for the help! |
Advert | |
|
03-02-2012, 03:25 AM | #6 |
Grand Sorcerer
Posts: 11,951
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
If you are willing to carry on with this, perhaps we can capitalize on your efforts and incorporate the changes into calibre.
It would need to be a per-library preference (dbprefs) for the character. There is no need at this point to build the GUI to set it. Instead, set the default to something other than period, change all the right places to use the preference instead of the character, and then test it (tag browser display & edit, main gui, content server, searching, template functions, and who-knows what else. ). Once it is working, we can change the default back to a period and add the GUI to change the preference. The tag browser preferences panel would be a good place. I would be willing to build this part. I already know how & where, and that stuff can be very confusing. If you create a repository on launchpad, we could exchange source and be sure that we don't lose anything. When done, I would merge the changes into an up-to-date repo and submit to Kovid. Or you could, if you wish. Do note that Kovid has an unofficial "you touched it last" bug fix policy. He would expect you to fix any bugs related to the changes. This may be more work than you are willing to sign up to do. |
03-02-2012, 12:15 PM | #7 |
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Looks like this is going to be extremely difficult to implement. Apparently, the '|' character is treated as a separator (same as comma) by Calibre for tag-like columns if manually entering metadata. Not even going to try to touch that one. Composite columns don't seem to be affected. I think I'll just keep to what I'm doing right now - run from source just for previewing sub-collections, normal Calibre for everything else.
|
03-03-2012, 07:57 AM | #8 |
Guru
Posts: 902
Karma: 1660722
Join Date: Nov 2009
Location: Maryland
Device: PRS-650, PRS-600, PRS-350
|
How do use Calibre to do hierarchical sub-collections on a Sony with PRS+.
This looks like a great thing with large libraries |
03-03-2012, 10:55 AM | #9 | ||
hopeless n00b
Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Quote:
|
||
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Use of comma as field separator and author_sort | meme | Development | 9 | 04-19-2011 04:26 PM |