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-24-2013, 08:03 AM   #1
benwj
Junior Member
benwj began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2013
Device: Kindle Touch
Save to Disk Long Title Problem

Thanks to this forum I have sorted out a few of problems with calibre but am having difficulty finding a solution to this one:
When saving books with very long titles to disk, the directory for the author becomes truncated and first and last names joined. The sub-directories and book filename are good.
There are many answers regarding the title being truncated when adding to the library, and I now understand this not to be an issue.
Does anyone know of this saving to disk problem?
benwj is offline   Reply With Quote
Old 09-24-2013, 01:04 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
Calibre often truncate parts of the path in the calibre library. And adds a numerical ID to the path.

But typically you should not directly use the books that are stored in the calibre library. Instead you should use the save to disk or the send to device feature.

There are several reasons for this:

* The book files inside the calibre library may not have been updated with the latest metadata and cover.
* If you accidentally modify, rename or move a file inside the calibre library, calibre may loose track of it.
* You don't have control over the path and the filename.

When you use the save to disk feature calibre will update the book(s) with the latest metadata and you can also modify the path and the filename used when saving the ebook.

Some operating systems have limits on how long a filename and a path may be. That is a problem with the operating system, not calibre. Typically Windows. Try to save the books to a folder near the root to minimize the length of the path. Also there are functions in calibre that allows you to specify how the path or the filename should be truncated.

I use Linux and have never experienced any problems with long paths and filenames.

You can save yourself a lot of trouble if you regard the calibre library as a "black box" and don't even look inside it. Instead use only the calibre GUI to save books to disk or send to device, or even email.

Last edited by Adoby; 09-24-2013 at 01:11 PM.
Adoby is offline   Reply With Quote
Advert
Old 09-24-2013, 04:36 PM   #3
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,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by benwj View Post
... When saving books with very long titles to disk, the directory for the author becomes truncated and first and last names joined.

The sub-directories and book filename are good.

There are many answers regarding the title being truncated when adding to the library, and I now understand this not to be an issue.
Does anyone know of this saving to disk problem?
Can you give us an example - Author Name(s) and Title, and the path where you are saving the book?

BR
BetterRed is online now   Reply With Quote
Old 09-24-2013, 07:45 PM   #4
benwj
Junior Member
benwj began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2013
Device: Kindle Touch
Adoby,
agree with everything you say. But "save to disk" is not as fool proof as advertised.

BetterRed,
I am saving books to an external hard drive.

I don't have my hard drive handy, but heres an idea of what is happening:

Author: Joe Bloggs
Title: The life story of Joe Blogs: and how he became one of the most famous men of all time

Save to disk result

Directory: Blogoe
Sub-directory: The life story of Joe Blogs and how he became one of the most famous men of all time
Filename: The life story of Joe Blogs and how he became one of the most famous men of all time - Joe Bloggs.mobi

Not too many books have titles this long, so a workaround is to shorten the title, but I would prefer to use the title that is provided with the metadata.
benwj is offline   Reply With Quote
Old 09-24-2013, 10:21 PM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by benwj View Post
When saving books with very long titles to disk, the directory for the author becomes truncated and first and last names joined. The sub-directories and book filename are good.
...
Does anyone know of this saving to disk problem?
This is not a calibre issue it is an OS or file system limitation. What I mean by this is when you use the Save to disk feature calibre will never truncate the output in any way, shape, or fashion. The same can not be said for your OS or file system which if required will truncate the Path as needed to fit in under the Max Path limitation.

Google path or filename character limit for your OS or file system to learn more.

Quote:
Originally Posted by Adoby View Post
Calibre often truncate parts of the path in the calibre library. And adds a numerical ID to the path.
But typically you should not directly use the books that are stored in the calibre library. Instead you should use the save to disk or the send to device feature.
...~~~...
You can save yourself a lot of trouble if you regard the calibre library as a "black box" and don't even look inside it. Instead use only the calibre GUI to save books to disk or send to device, or even email.
As indicated by the title of this thread "Save to Disk Long Title Problem" the question by the OP has nothing to do with the internal calibre structure or how calibre truncates its internal file names.

Last edited by DoctorOhh; 09-24-2013 at 10:28 PM.
DoctorOhh is offline   Reply With Quote
Advert
Old 09-24-2013, 10:29 PM   #6
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,171
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Actually I believe calibre DOES shorten file names / directory names to ensure they stay under the O/S imposed maximum path length.
PeterT is offline   Reply With Quote
Old 09-24-2013, 10:36 PM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by PeterT View Post
Actually I believe calibre DOES shorten file names / directory names to ensure they stay under the O/S imposed maximum path length.
I would be surprised and I could be wrong, but I do not believe calibre truncates anything when using the Save to disk feature. Why would calibre care, path / file naming management at that point belongs to the OS.
DoctorOhh is offline   Reply With Quote
Old 09-24-2013, 10:42 PM   #8
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,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@benwj - I am using Windows 7

I just used your example verbatim

Author: Joe Bloggs
Title: The life story of Joe Blogs: and how he became one of the most famous men of all time

Just for the record, in the Library the path to the 'epub' is

Code:
E:\Calibre Libraries\Test\Joe Bloggs\The life story of Joe Blogs_ and how (52)\The life story of Joe Blogs_ an - Joe Bloggs.epub
I saved the epub to the root of the drive, and here's the full path

Code:
E:\Joe Bloggs\life story of Joe Blogs_ and how he became one of the most famous men of all time, The\life story of Joe Blogs_ and how he became one of the most famous men of all time, The - Joe Bloggs.epub
Author folder not truncated and everything else is just as I would expect it to be

And for extra measure I also saved it to the documents folder of my home directory, here's its path

Code:
C:\Users\BetterRed\Documents\Joe Bloggs\life story of Joe Blogs_ and how he became one of the most famous men of all time, The\life story of Joe Blogs_ and how he became one of the most famous men of all time, The - Joe Bloggs.epub
All of which appears to be testament to what DoctorOhh just said

BR
BetterRed is online now   Reply With Quote
Old 09-24-2013, 10:55 PM   #9
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,812
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
IMHO the example book was misfiled.

The book has a TITLE and a subtitle (which calibre has no place for by default). There should be no problem with the real title:
Title: The life story of Joe Blogs

But then I also trim out the series name (it goes into Series ) when it is included as part of the title on metadata downloads.
theducks is online now   Reply With Quote
Old 09-25-2013, 08:50 AM   #10
benwj
Junior Member
benwj began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2013
Device: Kindle Touch
Doc is correct.

I am using XP which has a 260 char limit and truncates the path to fit it in.

Here is a real life example that you can try:

Author: Arthur Herman
Title: How the Scots Invented the Modern World: The True Story of How Western Europe's Poorest Nation Created Our World and Everything in It

Problem solved, but looks like I need a new OS.

Geez, I didn't expect this to ever be an issue again since moving on from the dos 8 char limit.

Last edited by benwj; 09-25-2013 at 12:12 PM.
benwj is offline   Reply With Quote
Old 09-25-2013, 06:19 PM   #11
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,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by benwj View Post
I am using XP which has a 260 char limit and truncates the path to fit it in.
I suspected that might the case

Rather than getting a new OS you could add a custom column (eg. strapline).

Quote:
Originally Posted by benwj View Post
Here is a real life example that you can try:

Author: Arthur Herman
Title: How the Scots Invented the Modern World: The True Story of How Western Europe's Poorest Nation Created Our World and Everything in It
Louis XV and his successors might have had something to say about that proposition - especially in respect of how adept some Scots are at creating of property bubbles. They've been at it since John Law bankrupted the Banque Générale in 1720 thru to ex-Sir Fred Goodwin's doing the same to the Royal Bank of Scotland in 2001-09. Unlike Queen Elizabeth II, King Louis had no solvent taxpayers to bail out his bank.

BR
BetterRed is online now   Reply With Quote
Old 10-01-2013, 08:32 AM   #12
benwj
Junior Member
benwj began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2013
Device: Kindle Touch
BR,
I haven't read the book yet but the title certainly invites ridicule.
Thanks for the help.
Ben
benwj is offline   Reply With Quote
Reply

Tags
long title names


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
save to disk template and title info tsolignani Library Management 2 02-02-2013 10:44 AM
Title during 'save to disk' gets changed to title_sort miquele Library Management 2 09-02-2012 12:11 PM
Problem with Save to Disk JJToner Calibre 18 08-23-2011 03:33 AM
Save to disk problem Lokro Calibre 3 10-19-2010 01:28 PM
Save to Disk altering Title and Series RichieTheK Calibre 9 08-21-2010 05:19 PM


All times are GMT -4. The time now is 12:39 AM.


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