Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2016, 04:01 PM   #1
Hon
Junior Member
Hon began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2016
Device: Android - Coolreader/Aldiko
Author sort corruption?

Warning, I am a total newbie to Calibre, just getting started. This question may have been answered already, but I did not find it, quite possibly because I didn't use the proper search terms. In which case I'll plead guilty to stupidity, but still would appreciate some help

I sofar purchase all my books from Amazon, and import them into Calibre. Then I convert them to epub. All my Calibre settings are default, I merely change a few settings each time I do a conversion to epub (add empty line between paragraphs and set split size to 0). Note I have a plugin to 'liberate' my Amazon ebooks.

I recently purchased the French edition of the collected works of Jules Verne. At the same time I 'purchased' the PD (free) editon of the French edition of Around the world in 80 days. Both were converted to epub, where the completed works required 6 hours to do so.

Now I am trying to export these as a backup, through the save to disc function. The complete works get stuffed in a folder 'VerneJules' and the single book in 'Verne, Jules'. In addition to this, the title of the complete works also gets parts of words removed, replaced by a 0 or nothing.

When I look at the metadata, everything looks ok, and the author and author_sort fields of both books are identical. To make sure I deleted the author, selected in the dropdown list the author again, and save this. No change. I also opened the opf file of the completed works in Notepad++, and this looks ok to me (title, author are properly written).

So please tell me where I'm going wrong, and how to rectify this. Thanks!

Edit: I've been messing around with just about every setting (and restoring it after seeing it didn't help) and stumbled upon the template for saving to disc:
{author_sort}/{title}/{title} - {authors}
If I remove the - {authors} part, it works correctly.

Now, I would like to understand why, and why the default template has this problematic entry? Thanks!

Last edited by Hon; 09-14-2016 at 04:40 PM.
Hon is offline   Reply With Quote
Old 09-14-2016, 04:50 PM   #2
higgs
Connoisseur
higgs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicinghiggs causes much rejoicing
 
higgs's Avatar
 
Posts: 77
Karma: 149999
Join Date: Aug 2008
Location: Ireland
Device: Kobo Glo, Kobo Touch, Kindle PW3
I'm guessing it has something to do with the length of the filepath+ filename. With the authors at the end the length is too long and so gets truncated in places. With authors removed the length must be okay.
Someone with more technical experience may provide a more accurate answer :-)

Sent from my MotoG3 using Tapatalk
higgs is offline   Reply With Quote
Advert
Old 09-14-2016, 05:33 PM   #3
Hon
Junior Member
Hon began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2016
Device: Android - Coolreader/Aldiko
Thanks for the reply! I checked the total path length and came out 236 characters. So there really isn't a need to truncate yet, even though it comes close to the limit of Windows/ntfs 255 characters. I can understand a truncating mechanism may be present.

So I did a search here and found an old thread that states Calibre truncates at 36 characters (edit: per section, not the entire path naturally): http://www.mobileread.mobi/forums/sh...d.php?t=220936

Is this still so in the current version? And if so, is this also true for Linux Calibre, since Linux has no such issues with their filesystems? I can always switch to Linux.

Last edited by Hon; 09-14-2016 at 05:36 PM.
Hon is offline   Reply With Quote
Old 09-14-2016, 05:34 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,065
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
why do you need a title FOLDER
Code:
{author_sort}/{title}/{title} - {authors}
The rest make some sense (why the Juels Verne, when the book is in the Verne, Jules folder)
theducks is offline   Reply With Quote
Old 09-14-2016, 06:11 PM   #5
Hon
Junior Member
Hon began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2016
Device: Android - Coolreader/Aldiko
I don't. Now that I know how this works, I have replaced it with {series}

However, I'd still like to know how the truncating works (limits and Windows vs Linux) so I can take this into account in future.
Hon is offline   Reply With Quote
Advert
Old 09-15-2016, 02:17 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: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Looking at calibre's code for save-to-disk, for windows the max allowed path length is 240. For linux it is 1000. In both cases calibre reserves 4 characters for the extension.

If a path is too long then (roughly) calibre shortens it by computing how many extra characters there are (X) and how many path segments there are (P), then removing X/P characters from the center of each path segment.

You can control truncation yourself using the formatter function shorten.
chaley is offline   Reply With Quote
Old 09-15-2016, 05:51 AM   #7
Hon
Junior Member
Hon began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2016
Device: Android - Coolreader/Aldiko
Thanks very much! That clears it up, I'll have a look at the formatter function to see if I can adapt it to my needs.
Hon is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
'Title Sort' & 'Author Sort' Search/Report Funkybassman Calibre 3 04-17-2016 12:31 PM
Update 'title sort' and 'author sort' through CLI wladdy Library Management 1 07-16-2015 05:12 PM
author → author sort ∀ books ⇒ long time! Geremia Calibre 2 04-17-2013 09:57 AM
Author and author sort fields and importing books guspasho Calibre 3 03-13-2013 11:07 PM
Minor bug with Author -> Author Sort guspasho Calibre 2 12-29-2012 05:54 AM


All times are GMT -4. The time now is 05:57 PM.


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