Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-18-2012, 03:25 PM   #1
Distorted Vision
Junior Member
Distorted Vision began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2012
Device: Amazon Kindle 4G
Save to Disc - Folder name / Filename Problems

I'm only got my Kindle yesterday and installed Calibre today. I'm having problems with the folder names / file names when using 'Save to Disc'.

In calibre->Preferences->Saving books to disc I have save template:

{title} - {authors} [{publisher}, {pubdate}]/{title} - {authors} [{publisher}, {pubdate}]

I have two issues as you can see below:
  1. A colon is replaced by an underscore
  2. Some of the folder names aren't named correctly






I appreciate the issue wth the colon is because it isn't allowed in filenames but is there a way for it to insert a dash instead or just ignore the colon?

I don't understand why some folders aren't named correctly, I had even greater problems when I was trying to use Author_Sort to create a directory etc. Eg, I have

"Quants_ How a New Breed of Math Whizzes Conquered Waloyed It, The - Scott Patterson [Crown Business, 2010]"

instead of

"Quants: How a New Breed of Math Whizzes Conquered Wall Street and Nearly Destroyed It, The - Scott Patterson [Crown Business, 2010]"

I really can't work out why it does this. Can anyone please help?

Also I want it to create a directory with the category name so I would have e.g.:

Finance\Liar's Poker - Michael Lewis [W. W. Norton, 1989]

I tried the following but it didn't work:

{category}/{title} - {authors} [{publisher}, {pubdate}]/{title} - {authors} [{publisher}, {pubdate}]

Is there any way I can implement this?

Many thanks for your help!

Last edited by Distorted Vision; 02-18-2012 at 03:34 PM.
Distorted Vision is offline   Reply With Quote
Old 02-18-2012, 04:10 PM   #2
BookJunkieLI
Addict
BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.
 
Posts: 261
Karma: 3136
Join Date: Jan 2010
Location: Long Island
Device: Nook, REB 1100, Ebookwise 1500, Jb-Lite, PRS-650, PB302, Asus T-90MT
Quote:
Originally Posted by Distorted Vision View Post

I don't understand why some folders aren't named correctly, I had even greater problems when I was trying to use Author_Sort to create a directory etc. Eg, I have

"Quants_ How a New Breed of Math Whizzes Conquered Waloyed It, The - Scott Patterson [Crown Business, 2010]"

instead of

"Quants: How a New Breed of Math Whizzes Conquered Wall Street and Nearly Destroyed It, The - Scott Patterson [Crown Business, 2010]"

I really can't work out why it does this. Can anyone please help?
For this issue I believe the problem is the rather long title. I had a similar issue with a couple of titles that were even longer but once I shortened the title the problem disappeared.


Quote:
Originally Posted by Distorted Vision View Post
Also I want it to create a directory with the category name so I would have e.g.:

Finance\Liar's Poker - Michael Lewis [W. W. Norton, 1989]

I tried the following but it didn't work:

{category}/{title} - {authors} [{publisher}, {pubdate}]/{title} - {authors} [{publisher}, {pubdate}]

Is there any way I can implement this?

Many thanks for your help!
For this I'm going to assume that {category} is a custom column that you created. In which case you need to list it as {#category}. Any custom column needs to have the # in front of the column look-up name otherwise it can't be called correctly. Once you fix that you should get the following returned to you - Finance\Liar's Poker - Michael Lewis [W. W. Norton, 1989]\Liar's Poker - Michael Lewis [W. W. Norton, 1989]
BookJunkieLI is offline   Reply With Quote
Old 02-18-2012, 04:47 PM   #3
Distorted Vision
Junior Member
Distorted Vision began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2012
Device: Amazon Kindle 4G
Many thanks BookJunkieLI. I tried:

{#category}/{title} - {authors} [{publisher}, {pubdate}]/{title} - {authors} [{publisher}, {pubdate}]

but it doesn't work. I created the categories with 'Manage User Categories' as in the screenshot:



Any ideas how to get this to work? Since I will be creating many categories to organise my ebooks.

Also with regard the long titles, is this a bug in Calibre? I don't see why it can't handle folder names that length. I edited the metadata in bulk and this is one of the main reason I decided to use Calibre. I really don't want to have to started manually editing folder / file names.

Do you have any suggestions re: colon / underscore issue?

Many thanks!
Distorted Vision is offline   Reply With Quote
Old 02-18-2012, 05:01 PM   #4
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
In Windows, there is a 260 character limit on the entire path. So that might be why Calibre shortens the filename. A way to test this would be to "Save to Disk" into a folder very close to the root, e.g. C:\eBooks. If this allows longer filenames, the Windows limit is your problem.
wallcraft is offline   Reply With Quote
Old 02-18-2012, 05:26 PM   #5
BookJunkieLI
Addict
BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.
 
Posts: 261
Karma: 3136
Join Date: Jan 2010
Location: Long Island
Device: Nook, REB 1100, Ebookwise 1500, Jb-Lite, PRS-650, PB302, Asus T-90MT
Quote:
Originally Posted by Distorted Vision View Post
Many thanks BookJunkieLI. I tried:

{#category}/{title} - {authors} [{publisher}, {pubdate}]/{title} - {authors} [{publisher}, {pubdate}]

but it doesn't work. I created the categories with 'Manage User Categories' as in the screenshot:



Any ideas how to get this to work? Since I will be creating many categories to organise my ebooks.

Also with regard the long titles, is this a bug in Calibre? I don't see why it can't handle folder names that length. I edited the metadata in bulk and this is one of the main reason I decided to use Calibre. I really don't want to have to started manually editing folder / file names.

Do you have any suggestions re: colon / underscore issue?

Many thanks!
The colon / underscore issue is a Windows issue. You can't use the followinf marks in file/folder names \ / : * ? " < > | Calibre automatically replaces it with the underscore. There might be a way in Tweaks to change what it automatically changes it too but I'm not overly familiar with that. The other method would be to do a Bulk Edit Search And Replace to either simply remove it from your titles or change it to something like the = sign.

On the Title length as Wallcraft said, again this is a Windows issue. Most of the time it wouldn't be an issue but you have it appearing as both part of the folder name *and* the filename therefor effectively doubling the length. My suggestion would be to drop it out of the Folder name if you don't want to edit the title.

Since you created the category using the User Categories Editor if you change the # to @ that should work. I don't use the User Categories Editor myself so I'm not 100% sure that will fix it for you.

Hope that helps.
BookJunkieLI is offline   Reply With Quote
Old 02-18-2012, 08:09 PM   #6
Distorted Vision
Junior Member
Distorted Vision began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2012
Device: Amazon Kindle 4G
Thanks. I tried:

{@category}/{title} - {authors} [{publisher}, {pubdate}]/{title} - {authors} [{publisher}, {pubdate}]

and it didn't work. I'm not sure where I'm going wrong.
Distorted Vision is offline   Reply With Quote
Old 02-18-2012, 08:16 PM   #7
theducks
Grand Sorcerer
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: 14,843
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
deleted
theducks is offline   Reply With Quote
Old 02-18-2012, 11:40 PM   #8
BookJunkieLI
Addict
BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.
 
Posts: 261
Karma: 3136
Join Date: Jan 2010
Location: Long Island
Device: Nook, REB 1100, Ebookwise 1500, Jb-Lite, PRS-650, PB302, Asus T-90MT
Quote:
Originally Posted by Distorted Vision View Post
Thanks. I tried:

{@category}/{title} - {authors} [{publisher}, {pubdate}]/{title} - {authors} [{publisher}, {pubdate}]

and it didn't work. I'm not sure where I'm going wrong.
I did some playing around and I'm going to guess that the result you got gave you Liar's Poker - Michael Lewis [W. W. Norton, 1989]\Liar's Poker - Michael Lewis [W. W. Norton, 1989] but not the category (Finance), correct?

I'm not a programmer so someone with more technical know-how can probably give you a better answer but I think that the categories created using the User Category Editor are essentially internal categories only, they're not exportable from Calibre.

I think what you want/need to set up is a custom column that either uses a single level tag system or one that uses a hierarchy system. Using option A you'd create a custom column called Categories by going to Preferences->Add Your Own Columns. Name your new column categories in both fields and then select (Text, column shown in the tag browser). Each book would then be labelled with a single tag - Finance, Economics, etc. You would then use {#categories} in your save to disk template and it would return Finance\Liar's Poker - Michael Lewis [W. W. Norton, 1989]\Liar's Poker - Michael Lewis [W. W. Norton, 1989].
Or if you wanted option B follow the same steps - Preferences->Add Your Own Columns, name the column Categories, only choose (Comma-separated text, like tags, shown in the tag browser). Click Okay, Apply, Close, and then restart Calibre. Go to Preferences -> Look and Feel -> Tag Browser and enter the lookup name #categories into the “Categories with hierarchical items” box. Press Apply, and you are done with setting up. You would then give your books tags like - Finance.Textbook. This time when you do the Save To Disk export it will return Finance.Textbook\Liar's Poker - Michael Lewis [W. W. Norton, 1989]\Liar's Poker - Michael Lewis [W. W. Norton, 1989]
If you're concerned at this point about having to go in and populate this custom column it's actually pretty easy. Once you have the column setup just select all books that you want to have a particular tag then click Edit Metadata and it will bring up the Bulk Edit screen. Click Custom Metadata at the top and then enter the tag into the correct column field. Click Okay and all of those books will now have that tag.

Hope that helps.
BookJunkieLI is offline   Reply With Quote
Old 02-19-2012, 03:37 AM   #9
chaley
"chaley", not "charley"
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: 5,626
Karma: 857074
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by Distorted Vision View Post
Many thanks BookJunkieLI. I tried:

{#category}/{title} - {authors} [{publisher}, {pubdate}]/{title} - {authors} [{publisher}, {pubdate}]

but it doesn't work. I created the categories with 'Manage User Categories' as in the screenshot: [screenshot removed]

Any ideas how to get this to work? Since I will be creating many categories to organise my ebooks.
User categories are not metadata, they are containers of other categories. There is currently no way to obtain by which user categories a book is referenced. (It would be possible to add this capability, but I am not convinced that it is generally useful.)

I am not sure what you want to have happen in your template but I (think I) agree with BookJunkieLI: it is similar to assigning books to one or more genres. The document Managing subgroups of books, for example “genre” might help you.
chaley is offline   Reply With Quote
Old 02-19-2012, 07:22 PM   #10
Distorted Vision
Junior Member
Distorted Vision began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Feb 2012
Device: Amazon Kindle 4G
BookJunkieLI, I fixed the issue with the underscores in the filenames by following your suggestion and dropping the foldername from the save template. I decided to abort trying to get the categories / columns to create the directory since its alot of effort to do something which I can do manually. I just do save to disc rather than send to device and copy it to the Kindle in Windows Explorer.

I have unchecked 'Save cover seperately' and 'Save metadata in OPF file' so I am just copying the pdf or mobi file. Am I correct that the cover image and .opf aren't used by the Kindle and so it serves no purpose in copying them onto the device?

Also still not been able to find a way to deal with the underscore in place of colon issue. I can rename the files easily all at once using Flash Renamer but the problem is that Calibre does not recognise that some of the books are on the device.

Also I had pretty disasterous results trying to convert all my textbooks to mobi format. I think this partly due to the fact that many contained complex mathematical equations, diagrams and tables etc.

The problem I have found is that the text in the pdf versions are too small to make reading anything more than a few paragraphs practical. Does anyone have any other suggestions. I read that there is a new PDF conversion for Calibre in development. Any news on this?

Many thanks for your help!
Distorted Vision is offline   Reply With Quote
Old 02-20-2012, 11:01 AM   #11
BookJunkieLI
Addict
BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.BookJunkieLI could sell banana peel slippers to a Deveel.
 
Posts: 261
Karma: 3136
Join Date: Jan 2010
Location: Long Island
Device: Nook, REB 1100, Ebookwise 1500, Jb-Lite, PRS-650, PB302, Asus T-90MT
Quote:
Originally Posted by Distorted Vision View Post
BookJunkieLI, I fixed the issue with the underscores in the filenames by following your suggestion and dropping the foldername from the save template. I decided to abort trying to get the categories / columns to create the directory since its alot of effort to do something which I can do manually. I just do save to disc rather than send to device and copy it to the Kindle in Windows Explorer.
True, you can do this manually once you export it from Calibre into Windows Explorer however if you get to a point where you have a large collection, more than 500 books, it's much easier to do it in Calibre. This way you don't have to worry later on if you did or didn't add the extra folder especially if you go to re-upload something. It's just easier to do it all in one place.

Quote:
I have unchecked 'Save cover seperately' and 'Save metadata in OPF file' so I am just copying the pdf or mobi file. Am I correct that the cover image and .opf aren't used by the Kindle and so it serves no purpose in copying them onto the device?
Actually I *think* what you are doing by unchecking those options is causing Calibre to store that information within the PDF or mobi file rather than separately. I don't have a Kindle so I have no idea if it would or would not ignore the cover and opf files.

Quote:
Also still not been able to find a way to deal with the underscore in place of colon issue. I can rename the files easily all at once using Flash Renamer but the problem is that Calibre does not recognise that some of the books are on the device.
If it's already on the device I wouldn't bother renaming it. At this point the only reason to rename a file already on the device would be if you were planning to update it in some way other than just the file name. If that is the case I would delete the original from the device then re-upload it.

Quote:
Also I had pretty disasterous results trying to convert all my textbooks to mobi format. I think this partly due to the fact that many contained complex mathematical equations, diagrams and tables etc.

The problem I have found is that the text in the pdf versions are too small to make reading anything more than a few paragraphs practical. Does anyone have any other suggestions. I read that there is a new PDF conversion for Calibre in development. Any news on this?
I'd ask about this in the Conversion forum. I haven't run into this issue *but* I avoid PDF whenever possible as there are a lot of inherent formatting issues with it. Particularly if the original file it was created from wasn't an actual text document but image scans of the pages grouped together. Now that is a PITA to deal with.
BookJunkieLI is offline   Reply With Quote
Old 02-20-2012, 01:51 PM   #12
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 979
Karma: 1382338
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro, Kindle 3/WiFi - Retired:Clie UX50, T415, ...
Quote:
Originally Posted by Distorted Vision View Post
...Am I correct that the cover image and .opf aren't used by the Kindle and so it serves no purpose in copying them onto the device?...
Correct. The Kindle will not use them. Kindle (MOBI, AZW, ...) files contain their own internal cover and what metadata the Kindle device or app will use.
dwig is offline   Reply With Quote
Old 03-10-2012, 07:28 PM   #13
Backi
Connoisseur
Backi has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead communityBacki has become a pillar of the MobileRead community
 
Backi's Avatar
 
Posts: 99
Karma: 15776
Join Date: Dec 2011
Device: PB912 Matt White
I have also a problem with inserting the character "+" into the file path.
Although it is a valid character for a folder name, Calibre replaces it with "_". I tried to escape or to quote it, but it didn't work.
Backi is offline   Reply With Quote
Old 03-10-2012, 08:37 PM   #14
theducks
Grand Sorcerer
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: 14,843
Karma: 5654321
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Backi View Post
I have also a problem with inserting the character "+" into the file path.
Although it is a valid character for a folder name, Calibre replaces it with "_". I tried to escape or to quote it, but it didn't work.
Plus is a special character in DOS
It means concatenate the 2 files
file1.txt+file2.txt>fileboth.txt
will result in a single (additional) file containing both
theducks is offline   Reply With Quote
Old 03-10-2012, 09:38 PM   #15
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 979
Karma: 1382338
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro, Kindle 3/WiFi - Retired:Clie UX50, T415, ...
Quote:
Originally Posted by Distorted Vision View Post
...

Do you have any suggestions re: colon / underscore issue?

Many thanks!
While its not a true "fix" to calibre's behavior ...

If this is something you need/want to change in a large number of files you could use Bulk Rename Utility. It can process a whole folder full of files and replace any pattern of characters with any other set. It can also do a large number of other bulk renaming functions. Its a handy tool to have in your kit.
dwig is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How and why to save Calibre books to Disc? polli Related Tools 12 01-12-2012 10:33 AM
Can't Save to Disc MickeyC Calibre 2 10-16-2011 09:54 AM
title in save to disc pcalv Library Management 9 08-04-2011 07:11 AM
marking books 'biography' and 'read' to put in same folder on 'save to disc' madeirabhoy Library Management 1 07-09-2011 12:59 PM
0.7.1 Save to Disc function fixed? grizedale Calibre 9 06-07-2010 04:49 PM


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


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