Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 02-28-2014, 11:10 AM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
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, 11:40 AM   #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: 45,331
Karma: 27182818
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
Advert
Old 02-28-2014, 12:45 PM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
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, 01:27 PM   #4
signum
Zealot
signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.
 
Posts: 119
Karma: 64428
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, 09: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: 45,331
Karma: 27182818
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
Advert
Old 03-01-2014, 01:10 PM   #6
signum
Zealot
signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.signum calls his or her ebook reader Vera.
 
Posts: 119
Karma: 64428
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


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Tool: Arrange into Folders eschwartz Editor 5 01-23-2014 10:55 PM
Links not working properly? dokkeynot Sigil 1 06-27-2012 02:04 PM
Kindle for pc not working properly bodhran Amazon Kindle 4 09-18-2011 01:45 PM
Classic Trook rev53 is not working properly with Calibre mos Nook Developer's Corner 12 03-26-2010 08:14 AM
lrf files not working properly munty LRF 4 01-25-2009 05:01 PM


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


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