Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-25-2013, 03:52 PM   #1
Plextor
Junior Member
Plextor began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2012
Device: Kindle PW
File names truncated at 31 characters

File names and directory names are now truncated at 31 characters when saving. Exists in version 1.0 a new setting for this?

Plextor
Plextor is offline   Reply With Quote
Old 08-25-2013, 04:21 PM   #2
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
No. When saving books the filenames are not truncated. (Not that I have noticed at least.)

When adding and storing books inside the calibre library, the paths and filenames may very well be truncated, but you should really not be looking up the skirts of calibre like that!

Limitations of the filesystem and operating system may make truncated names and paths necessary. But in the GUI you can still access the books using the full names.

Last edited by Adoby; 08-25-2013 at 04:25 PM.
Adoby is offline   Reply With Quote
Advert
Old 08-25-2013, 07:09 PM   #3
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: 29,802
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Plextor View Post
File names and directory names are now truncated at 31 characters when saving. Exists in version 1.0 a new setting for this?

Plextor
Listen to Adoby
AND
move your library close to root (\) with a short pathname so the remains CAN be available for long titles

eg.
Code:
C:\mylib
theducks is offline   Reply With Quote
Old 08-25-2013, 07:26 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
In Windows the author and book folder names are shortened to 36 characters or thereabouts, and the format file names are shortened to 66 characters or thereabouts

I use the words 'shortened & thereabouts' because I'm not sure its always simple truncation.

I think Calibre has always done this on Windows, or at least it has since I started using it in 2011. AFAIK its a means of overcoming the limitations that Windows places on path name lengths.

BR
BetterRed is online now   Reply With Quote
Old 08-26-2013, 02:12 PM   #5
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 768
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Quote:
Originally Posted by Plextor View Post
File names and directory names are now truncated at 31 characters when saving. Exists in version 1.0 a new setting for this?

Plextor
I am seeing the same thing. Filenames that used to be 36 characters are now being truncated at 31 characters in Calibre on Windows 64. This seems to be new behavior for either Calibre or Windows, and it is causing me headaches. Yes, I know one shouldn't peek under the hood, but it means duplicate filenames in some cases, and I end up having to work around it.
icallaci is offline   Reply With Quote
Advert
Old 08-26-2013, 02:33 PM   #6
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
One possibility is that you at some time recently moved the calibre library or renamed it. Afterwards you experienced problems and added all the books in the library to the library again. Then you could end up with duplicates in the calibre library. One book that calibre knows about, and one that calibre has lost their track of.

The library maintenance functions should be able to fix the problem.

If you moved the calibre library so the path became a little longer, then the files would have to be more truncated now, just as you describe.

I seem to recall an update some time ago when the length of the paths/filenames were updated. Shortened. If it was long ago since you updated calibre that might have something to do with it as well. But it shouldn't cause any problem, except when trying to rebuild the calibre library. Then the new filenames/paths would be shorter.

To avoid this problem avoid having the calibre library at a place with a long path. Preferably just use the C:\mybooks or something like that, like theducks suggests.

I don't use Windows so I don't experience this problem and I am not sure how you can best avoid the his problem in the future. The safest way to move the calibre library from one Windows computer to another could be to use exactly the same paths on both computers. If that isn't possible, make sure that the new path is shorter. If you need to use a longer path, use the GUI and copy the books from one library to another.

Another way to avoid problems with Windows and limitations for the paths is that you could start using Linux to run calibre. Perhaps in a VM. VirtualBox is nice, and free.

Last edited by Adoby; 08-26-2013 at 02:57 PM.
Adoby is offline   Reply With Quote
Old 08-26-2013, 03:45 PM   #7
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 768
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
Quote:
Originally Posted by Adoby View Post
One possibility is that you at some time recently moved the calibre library or renamed it. Afterwards you experienced problems and added all the books in the library to the library again. Then you could end up with duplicates in the calibre library. One book that calibre knows about, and one that calibre has lost their track of.
Nope, haven't done anything except upgrade Calibre to v1.0. Not a huge deal, but annoying. For example, I sometimes transfer books to my iPad, but with duplicate filenames, only the last one ends up on the iPad unless I rename the files, which I am now doing.

Of course, this only happens on very long filenames, so it's not a huge problem, but still...

Last edited by icallaci; 08-26-2013 at 03:48 PM.
icallaci is offline   Reply With Quote
Old 08-26-2013, 04:12 PM   #8
Plextor
Junior Member
Plextor began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2012
Device: Kindle PW
I'm back on 0.9.44. For me, the long filenames are more important than the cover grid and the faster loading of the database. My library has many titles with long names.

Something must have been changed in the storage routine. I hope, that this will be reversed soon.

Plextor

PS: This happens in Win XP, Win 7 and Win 8 since the update to version 1.0
Plextor is offline   Reply With Quote
Old 08-26-2013, 06:05 PM   #9
AnotherCat
....
AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.AnotherCat ought to be getting tired of karma fortunes by now.
 
Posts: 1,547
Karma: 18068960
Join Date: May 2012
Device: ....
I have tested loading files into Calibre 1.0 (Windows) and am not having the same experience. As before the file names are truncated to keep within the Windows path length restriction but I get file names in the Calibre library folder way longer than 31 characters; just taking one random example the file name length was 49 characters when truncated.

Along the lines Adoby suggested already, I do have my libraries in their own folder straight off the root of the drive though which will result in shorter paths, and hence less truncation, than if one uses the default Calibre library location. It is so long since I have used the default, but if recall correctly the default is somewhere in the C:\User\username\etc\etc path?? which is long; much longer than it appears in Explorer if one is just looking at the Windows Libraries path directly under the Desktop.

Maybe the algorithm that shares the path length restriction truncation between the author folder name length and the book file name length has changed but it does not, for me anyway, result in file lengths being restricted to 31 characters. In fact I have noticed nothing yet that grabs my attention at all, compared to the truncations of earlier versions.
AnotherCat is offline   Reply With Quote
Old 08-26-2013, 06:46 PM   #10
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@AnotherCat -

Windows 7-SP1 64bit
Calibre 1.0 64bit

I still have Author folder names being truncated at 36
I still have Book folder names being truncated at 36 then appended with ' (book.id)'.

Maybe it depends on process used when adding books.

Many of my books start out with meaningless file names and either no or meaningless metadata. So I have Add Books configured to use the filename for the metadata. After I add a book I enter the correct Title and Author directly into the spreadsheet cells. Hence my Author and Book folder names are almost always the result of renames.

BR
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	886
Size:	289.5 KB
ID:	110053  

Last edited by BetterRed; 08-26-2013 at 06:51 PM. Reason: forgot attachment
BetterRed is online now   Reply With Quote
Old 08-26-2013, 07:09 PM   #11
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
Posts: 768
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
I should have been more explicit. The title of the book, as it shows in Calibre's interface, is being truncated when naming the file. For example, say the title of the book in Calibre is "This Is One Heck of a Long Filename and Will Demonstrate the Problem", and the author of the book is "I. M. Author." When Calibre saves the file, it truncates the name of the book to "This Is One Heck of a Long File" and then adds the author name, so that the file ends up being called something like "This Is One Heck of a Long File - I_ M_ Author.epub". The part of the filename that is created from the book title is now truncated to 31 characters, whereas previously it used (approx.) 36 characters (I believe it was 36 characters, but I haven't counted in a while. It was definitely more than 31 characters.). Anyway, I have ended up with duplicate filenames because of this, but only on l-o-n-g book names.

Last edited by icallaci; 08-26-2013 at 07:11 PM.
icallaci is offline   Reply With Quote
Old 08-26-2013, 07:26 PM   #12
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
Why do you care about how the book is named inside the calibre library?

And why did you add the same books twice to the library?
Adoby is offline   Reply With Quote
Old 08-26-2013, 07:29 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by icallaci View Post
I should have been more explicit. The title of the book, as it shows in Calibre's interface, is being truncated when naming the file. For example, say the title of the book in Calibre is "This Is One Heck of a Long Filename and Will Demonstrate the Problem", and the author of the book is "I. M. Author." When Calibre saves the file, it truncates the name of the book to "This Is One Heck of a Long File" and then adds the author name, so that the file ends up being called something like "This Is One Heck of a Long File - I_ M_ Author.epub". The part of the filename that is created from the book title is now truncated to 31 characters, whereas previously it used (approx.) 36 characters (I believe it was 36 characters, but I haven't counted in a while. It was definitely more than 31 characters.). Anyway, I have ended up with duplicate filenames because of this, but only on l-o-n-g book names.
@icallaci

Its been like that for the 2 years I've been using Calibre.

But I cant see any difference between latest and earlier versions of Calibre, which is what the OP seemed to be implying in his first post.

BTW when I save the two Stiglitz books in my example to disk they still get the same name and Part 2 overwrites Part 1 <sigh>

Code:
Lessons of the North Atlantic Crisis for Economic TheoStiglitz Professor of Economics at Columbia University.epub
Its mainly a problem with academic publications written by a prof and a phalanx of PhD students

BR

Last edited by BetterRed; 08-26-2013 at 07:32 PM.
BetterRed is online now   Reply With Quote
Old 08-26-2013, 07:48 PM   #14
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Adoby View Post
Why do you care about how the book is named inside the calibre library?

And why did you add the same books twice to the library?
If you are asking me, firstly I would have thought Blind Freddy could figure out that the attachment was to illustrate my observations, rather than reality. And they are not the same book - they are blah blah Part 1 and blah blah Part 2

And see my prior post about Save to Disk - I do care about that.

And please don't tell me how to manage my data on my disks

BR
BetterRed is online now   Reply With Quote
Old 08-26-2013, 07:55 PM   #15
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
Would running calibre in Linux allow calibre to save the file correctly?

Quote:
Originally Posted by BetterRed View Post
And please don't tell me how to manage my data on my disks
My questions wasn't directed at you, but at icallaci.

Also I suspect that there are two different problems discussed. How calibre store books in the calibre library and how calibre saves books outside the library. At least I am a little confused. I will refrain from commenting any more.

Last edited by Adoby; 08-26-2013 at 08:02 PM.
Adoby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File names in File explorer vvilmos Onyx Boox 5 10-05-2012 07:40 AM
toc.ncx truncated at 100 characters garygrosso Conversion 2 03-08-2011 01:08 PM
Truncated file crutledge Sigil 11 09-13-2010 03:37 PM
HTML file added to library is truncated unexpectedly seth123abc Calibre 3 10-31-2009 03:57 PM
File Names Vulcan Sony Reader 4 01-02-2009 04:03 PM


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


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