View Single Post
Old 04-05-2018, 10:09 AM   #155
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Oh well, nothing is ever that simple.

Zotero absolutely hates Calibre's naming of subdirectories for its books, and throws an error if a perfectly valid Path in Windows and in Calibre is used if a subdirectory has anything that Zotero could possibly interpret as part of a URI that it has to make "human readable".

Extracted from Zotero's Debug History:

GOOD: Translate: Got file S:\Calibre\CalibreZotero\Ackerman, Diane\The Zookeepers Wife (5557)\qs_basic_functionality_overview (1).pdf as absolute path


BAD: Translate: File at absolute path S:\Calibre\CalibreZotero\Ackerman, Diane\The Zookeepers Wife (5557)\qs_basic_functionality_overview (1).pdf does not exist.


This is a Zotero error, since in reality, "The Zookeeper’s Wife (5557)" in Calibre is actually spelled "The Zookeeper’s Wife (5557)", but Zotero tries to prettify it, thereby ruining it by changing "Zookeeper’s" to "Zookeeper's".

Using Qt or Python to create a valid local file URI does not help matters, since Zotero will do the same thing as shown above.


Later this week I will post a new version of ZMI that copies the selected Calibre ebooks to a temporary folder with a simple folder name and with a simple temporary file name, and then points the RIS attachments specified in RIS Tags L1 (pdf) and L3 (epub, etc.) to the appropriate simple temporary files.

RIS Tag M2 "Extras" will still default to the original Calibre book path for future reference.


DaltonST

Last edited by DaltonST; 04-05-2018 at 10:13 AM.
DaltonST is offline   Reply With Quote