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 06-03-2011, 04:15 AM   #1
sciurius
Enthusiast
sciurius doesn't littersciurius doesn't litter
 
sciurius's Avatar
 
Posts: 49
Karma: 102
Join Date: Sep 2010
Location: 52.88504N 06.85904E
Device: PC
Title cut-off

I noticed in the library of a friend of mine that her titles are cut off to 40 characters. E.g.,

H. de Roos/Kameleon 31 - Met de Kameleon op avontuu (5120)/Kameleon 31 - Met de Kameleon op avontuu - H. de Roos.epub

This does not happen with my calibre:

H. de Roos/Kameleon 31 - Met de Kameleon op avontuur (22)/Kameleon 31 - Met de Kameleon op avontuur - H. de Roos.epub

We both use 0.8.3 (she on Windows, me on Linux).

Any idea why we get different file names? I've checked the settings but I cannot find anything related to this.
sciurius is offline   Reply With Quote
Old 06-03-2011, 04:46 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
The file/folder names in Calibre are designed for Calibre usage - not human usage so the names should not really matter. Calibre applies various algorithm's to the internal names its uses to try and ensure that the names do not break any file system limits or restrictions which is probably why you are seeing this behavior. If you simply manipulate the files via the calibre GUI (which is what Calibre is designed to assume) then you never see this level so then you do not even notice what names have been used internally by Calibre within its library database.
itimpi is offline   Reply With Quote
Advert
Old 06-03-2011, 05:53 AM   #3
sciurius
Enthusiast
sciurius doesn't littersciurius doesn't litter
 
sciurius's Avatar
 
Posts: 49
Karma: 102
Join Date: Sep 2010
Location: 52.88504N 06.85904E
Device: PC
Thanks for the excellent explanation.

Quote:
The file/folder names in Calibre are designed for Calibre usage - not human usage so the names should not really matter.
Good point. In this case, I'd expect them to be something similar to b4b078fb64008a0fe1f020acb5311e9ecd5e50af.

By having them almost look like human understandible this is confusing.

Also, sometimes people exchange files from their libraries. Having truncated titles makes it hard to perform filename searches.

Quote:
Calibre applies various algorithm's to the internal names its uses to try and ensure that the names do not break any file system limits or restrictions which is probably why you are seeing this behavior.
You mean that Windows gets a different treatment than Linux?

And: Is is possible to tweak calibre to use full-title filenames?
sciurius is offline   Reply With Quote
Old 06-03-2011, 06:03 AM   #4
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
Windows restricts the total path length to 255 (or something around that). Calibre shortens components to make them respect that restriction.
chaley is offline   Reply With Quote
Old 06-03-2011, 06:08 AM   #5
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by sciurius View Post
Good point. In this case, I'd expect them to be something similar to b4b078fb64008a0fe1f020acb5311e9ecd5e50af.
They could be and there has been talk of changing to a naming scheme that would mean users are less tempted to meddle inside calibre's library. The only part that really matters to Calibre is the number in brackets as that is the database record ID. However having relatively readable names makes debugging much easier for developers.

Quote:
lso, sometimes people exchange files from their libraries. Having truncated titles makes it hard to perform filename searches.
If you use the Calibre "Save to Disk" to get a book out of Calibre then you can supply the mask (set under Preferences) you want for constructing the exported name so that you get completely readable file/folder names. Also Calibre has far better search facilities for books in its library than you get from using a file system search.

Quote:
You mean that Windows gets a different treatment than Linux?
Not as far as I know as libraries are completely interchangeable between Calibre on different OS. However it may be something like you have different ID's (the numeric part) for a given book in your library so that the algorithm gives different results on the two machines.

Quote:
And: Is is possible to tweak calibre to use full-title filenames?
Not wihtout MAJOR change to the Calibre source code. The sticky at the top of this forum area on folder structure covers this.

Note however my comment about being able to use the full filename if you export a book from Calibre using the Save to Disk feature which is probably all you really need.
itimpi is offline   Reply With Quote
Advert
Old 06-03-2011, 06:35 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
Quote:
Originally Posted by itimpi View Post
Not as far as I know as libraries are completely interchangeable between Calibre on different OS. However it may be something like you have different ID's (the numeric part) for a given book in your library so that the algorithm gives different results on the two machines.
Unfortunately not completely true. Calibre sets the component length limit using:
PATH_LIMIT = 40 if 'win32' in sys.platform else 100

Thus books with very long title/author strings added under linux/mac might not be usable on windows. The inverse is not true, because a windows path will always fit within the linux/mac limit.
chaley is offline   Reply With Quote
Old 07-30-2023, 08:38 PM   #7
sterned
Junior Member
sterned began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2021
Device: Ipad. kindle for pc
Quote:
Originally Posted by chaley View Post
Windows restricts the total path length to 255 (or something around that). Calibre shortens components to make them respect that restriction.
A long long time ago it did in windows but not anymore but Calibre still enforces this standard.
Work around is save it to a short name root folder then move it where you want to store it path can be more than 255 long now no issues.
sterned is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Cut PDF? wellwet Amazon Kindle 10 05-03-2011 12:57 AM
Can I auto enter numbers to title/title sort? blu- Library Management 19 02-16-2011 01:01 PM
Text Cut Off jthedwalker Calibre 1 11-13-2010 12:15 PM
505 will not cut off Atagahi Sony Reader 6 07-28-2009 02:08 AM
Cut off Headers barney111 Bookeen 9 07-25-2008 04:15 AM


All times are GMT -4. The time now is 08:22 AM.


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