![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,806
Karma: 13399999
Join Date: Aug 2007
Location: US
Device: Nook Simple Touch, Kobo Glo HD, Kobo Clara HD, Kindle 4
|
Anthology authors
I have a number of anthologies where when I download the metadata, it turns it into editor & author & author & author ... & author, which is nice for searching for short stories by an author, but it causes problems when trying to save the ebook if the number of authors is long. Is there some way to have the long list of authors available for searching, but at the same time only save the book in the name of the editor?
|
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I use
Code:
{author_sort:sublist(0,1,&)} |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@eschwartz -- that was a little too brief for me; could you expand on it a little please?
Like where do you use it, and maybe a pointer to the manual that explains the options? |
![]() |
![]() |
![]() |
#4 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
It is the template for author-sort, but modified with the sublist function. sublist shortens lists and takes 4 parameters; here it is used to sublist only the first author in author_sort:
the first parameter is implied in template mode, it is the template field which was previously defined as author_sort. That is what we are operating on. the second and third are the start through end indices of the list (here, author_sort) which should be returned. using "0,1" returns the zeroth through first elements of the list. The fourth parameter is the divider. In this case, "&" divides each author in author_sort The documentation for templates is at http:/manual.calibre-ebook.com/template_lang.html |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,806
Karma: 13399999
Join Date: Aug 2007
Location: US
Device: Nook Simple Touch, Kobo Glo HD, Kobo Clara HD, Kindle 4
|
My primary Calibre library is on FreeBSD, but when I try to rsync it to Linux, it fails to copy a few files because the file name is too long, so it's not just when I copy the files to my ereader.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Report a bug. It should be truncated to a length that works everywhere; if not, calibre is deviating from Kovid's design.
The workarounds like saving to a sublist, or saving extra authors in a custom column for usage with the library files, are meant for prettying the filenames. You could solve your problem that way but Kovid should still know about this. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,171
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre truncates all paths in the library to less than 500 characters (relative to the top level folder) on non-windows operating system. That is well within linux file length limits. Though of course, as with everything on linux, there is no well defined file length limit, since it varies with filesystem, kernel and mount options. I'm guessing the OP is copying files to some unusual filesystem on linux, like a network share or a windows filesystem.
|
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
I use sublist as in eschwartz's post in a custom column built from other columns.
I then use the column to build collections on my readers from instead of author_sort. Helen |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,806
Karma: 13399999
Join Date: Aug 2007
Location: US
Device: Nook Simple Touch, Kobo Glo HD, Kobo Clara HD, Kindle 4
|
This is ubuntu, the file system is ecryptfs and I see this:
rsync: recv_generator: failed to stat "/home/bruce/Calibre2/C. S. Claremont; Gregory Benford; George Alec Effinger; William M. Lee; Joseph Green; Robert F. Youn/The Magazine of Fantasy and Science Fiction, April 1973_ Psimed; Icarus Descending; City on the Sand (1874)/The Magazine of Fantasy and Science Fiction, April 1973_ Psimed; Icarus Descending; City on the Sand - C. S. Claremont; Gregory Benford; George Alec Effinger; William M. Lee; Joseph Green; Robert F. Youn.epub": File name too long (36) |
![]() |
![]() |
![]() |
#10 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,075
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Lost Children: A Charity Anthology (30 authors, 2 great causes) | tpluck | Self-Promotions by Authors and Publishers | 0 | 11-10-2011 08:43 AM |
Anthology Featuring MobileRead Authors | jaxx6166 | News | 15 | 01-25-2010 12:52 PM |
Horror Authors, Various: Horror Anthology Vol II. v1, 20 Aug 2008 | Madam Broshkina | Kindle Books | 0 | 08-20-2008 10:38 AM |
Horror Authors, Various: Horror Anthology Vol I. v1, 20 Aug 2008 | Madam Broshkina | Kindle Books | 0 | 08-20-2008 10:35 AM |
Horror Authors, Various: Horror Anthology Vol II. v1, 18 Aug 2008 | Madam Broshkina | BBeB/LRF Books | 0 | 08-18-2008 08:35 PM |