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

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 02-28-2014, 12:10 PM   #1
DrChiper
Bookish
DrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it is
 
DrChiper's Avatar
 
Posts: 306
Karma: 2358
Join Date: Jun 2011
Device: pc, prs-600, prs-t1, prs-t2, prs-t3, nexus 7, Kobo aura HD
Arrange into folders not working properly

Using calibre 1.26 I noticed that my e-reader did not show a picture. Via the "Check Book" function of the Book Editor, I discovered that the picture was unknown because it was located in a directory "/images/", instead of the expected "/Images/". I tried to solve that via the "Arrange into folders" function which seemed to work as thereafter the "Check Book" function did not reported any problems. So I saved the e-pub, but noticed the picture was still not showing. Opening the epub again with the Book Editor I discovered that the folder was still named "/images", while "Check Book" now reported again that the picture was unknown.

Apparently, the "Arrange into books" function does not actually rename the directory, but "somehow reports success to "Check Book" so the latter refrains from reporting errors until you save/close/re-open the epub.
DrChiper is offline   Reply With Quote
Old 02-28-2014, 12:40 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,465
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You are on a case insensitive filesystem. Trying to change the case of folder names will break on that, since the filesystem will report that the file exists regardless of the case. Someday I have to get around to implementing fixes for that, but in the meantime dont try to change the case of folder names if you are on a case insensitive filesystem.
kovidgoyal is offline   Reply With Quote
 
Advertisement
Old 02-28-2014, 01:45 PM   #3
DrChiper
Bookish
DrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it isDrChiper knows what time it is
 
DrChiper's Avatar
 
Posts: 306
Karma: 2358
Join Date: Jun 2011
Device: pc, prs-600, prs-t1, prs-t2, prs-t3, nexus 7, Kobo aura HD
Ok, I will keep that in mind. Luckily, it does not happen that often so I can live with it for the moment. Thanks!
DrChiper is offline   Reply With Quote
Old 02-28-2014, 02:27 PM   #4
signum
Connoisseur
signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.
 
Posts: 67
Karma: 45332
Join Date: Aug 2011
Device: none
Do it in two steps. First, change the name to something totally unrelated. "foo", say. Then change it to the properly capitalized name. "images" -> "foo". Then "foo" -> "Images".
signum is offline   Reply With Quote
Old 02-28-2014, 10:17 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,465
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Even that wont work. What will happen in that when calibre asks the OS to rename foo/image to Images/img, if the images folder already exists, the OS will rename it to images/image instead of Images/image. The only way to make it work is for calibre to check the actual path created by the os for every rename operation and then either:

1) Rename the folders in the path explicitly, individually, and then change the links to all files in the renamed folders

2) Alternately detect that there is a case mismatch on renaming the file and change the links for just that file to use the existing filesystem case.
kovidgoyal is offline   Reply With Quote
Old 03-01-2014, 02:10 PM   #6
signum
Connoisseur
signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.signum is that somebody.
 
Posts: 67
Karma: 45332
Join Date: Aug 2011
Device: none
Ah, I see. I wasn't considering the entire problem, just the one of changing the case a single folder or file.
signum 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
New Tool: Arrange into Folders eschwartz Editor 5 01-23-2014 11:55 PM
Links not working properly? dokkeynot Sigil 1 06-27-2012 03:04 PM
Kindle for pc not working properly bodhran Amazon Kindle 4 09-18-2011 02:45 PM
Classic Trook rev53 is not working properly with Calibre mos Nook Developer's Corner 12 03-26-2010 09:14 AM
lrf files not working properly munty LRF 4 01-25-2009 06:01 PM


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


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