View Single Post
Old 01-19-2018, 02:49 AM   #5
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: 21,745
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by HailCardassia View Post
I thought if Calibre renamed the files and I made hardlinks, or symlinks, of the original files I could point Calibre to the duplicate directory and let it rename those without changing the original files or doubling its size.
Calibre's not going to do any of that for you, but you could do in manually. I did an experiment using Win10 1703, out of the box calibre portable, the xplorer˛ file manager, and Hermann Shinagl's LSE gadget.

I chose Mary Wollestenecraft's "A Vindication of the Rights of Woman" deliberately, because I knew it would introduce the issue of calibre's truncation rules.

First up I used the Add empty book tool to create a book record and an empty epub, here you see the book list and the book folder:

Click image for larger version

Name:	1 create empty book.jpg
Views:	685
Size:	140.8 KB
ID:	161666

Then I went to where I had the original epub and right button dragged it into the book folder and selected LSE's Create Symbolic Link Here option

Click image for larger version

Name:	2 create symlink.jpg
Views:	1183
Size:	190.7 KB
ID:	161667

Here you see the result

Click image for larger version

Name:	3 the empty epub & the symlink.jpg
Views:	570
Size:	86.0 KB
ID:	161668

Next I copied the calibre truncated name of the empty epub to the clipboard, and then deleted the empty epub, then I renamed the symlink to the calibre truncated name - here's the result

Click image for larger version

Name:	4. symlink of a book in a library.jpg
Views:	580
Size:	93.5 KB
ID:	161669

And here the book is loaded into the viewer via the symlink.

Click image for larger version

Name:	5 view the symlink.jpg
Views:	634
Size:	231.9 KB
ID:	161670

I was also able to use the tool in Metadata edit to extract the cover image from the epub into the book folder. When I tried to edit the book the editor crashed. That's all I tried - which is barely scratching calibre's surface

So what you want can be done, after a fashion, but you will have to do it and sort out any problems when something doesn't work or when a symlink is invalidated because the target was moved or renamed etc etc.

BR
BetterRed is offline   Reply With Quote