epub in viewer?

A place for users to ask each other questions, make suggestions, and discuss Bookends.
Post Reply
ppnkg
Posts: 31
Joined: Fri Mar 23, 2007 12:12 am

epub in viewer?

Post by ppnkg »

Most certainly this will have been raised before, but I wondered if incorporating an epub (or more ebook formats) viewer into bookend would be possible. The pdf viewer is a fantastic convenience. As ebook formats are becoming increasingly used, an ebook viewer would be a brilliant addition.
Jon
Site Admin
Posts: 10048
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: epub in viewer?

Post by Jon »

You can attach an epub to a reference now and Bookends will open it in a compatible reader.

I looked into having Bookends read epubs a few years ago, and decided it wasn't worth the (very large) effort given how small the audience for this would be. And even that small audience they would be crazy to prefer a simple text field at the bottom of the reference list to a full fledged epub reader.


Jon
Sonny Software
macgarvin
Posts: 16
Joined: Mon Oct 15, 2018 9:44 am

Re: epub in viewer?

Post by macgarvin »

My workaround:

Short Answer:
Convert the [none-DRM] epub to a pdf using e.g. onlineconverter https://www.onlineconverter.com/epub-to-pdf
Import into Bookends
Proceed as for pdfs.


Longer Answer:
I've consumed some time on this and perhaps providing a note may save others doing the same!

I understand why Jon wouldn't want to spend time on this. But I also end up with occasional epubs, usually books, that I want to annotate as part of my usual workflow (Which is Bookends for managing pdfs and making notes; Devonthink for dredging up related papers, including those that I gathered years ago, using its fantastic concordance feature. In Devonthink I can also see pdf highlights and notes made in Bookends (or elsewhere); Tinderbox for working up ideas now including links to text highlights made in Bookends (thx Jon!); Scrivener for writing, including refs from Bookends).

The following comments are about epubs that can be opened in Calibre - i.e no DRM digital rights management.

You can highlight and make notes on ePubs in Calibre, but they are pretty much stuck there. If you put a copy of the ePub into your Bookends folder and click on it in Bookends, Calibre immediately imports a copy into the Calibre library, which means you end up with multiple copies there

Epubs in your Calibre library folder can all be sucked up and indexed in Devonthink (so if you open the epub you can see all the epubs and pdfs that are related to it using the concordance feature) but the comments and notes are not picked up- so this is not a viable option for my workflow.

So I convert the epubs into pdfs and import the pdfs into Bookends.

HOWEVER - there is an issue between Calibre pdf conversion and Bookends (at least). This happens both with the simple 'print' command from Calibre and outputting to pdf, and with the sophisticated 'Convert' Book module in Calibre.

The issue is that when the pdf created within Calibre is imported, opened in Bookends, and text is either selected and copied or highlighted the result is a lottery. It may:

a) Work without problems
b) Immediately show problems e.g text copied and pasted into Bookend fields, or highlighted to create a note. Text may (i) be reversed right to left (e.g. nodnoL instead of London, or (ii) you get '􏰜' (square with ? inside ) for each letter.
c) text highlighting works ok. for a while, but then starts doing b(ii).
d) Text highlighting seems to be working, you click away from that reference, and then reopen, or quit bookends and reopen and all or part of your highlighted notes have turned to ????????

So far - when I have looked - opening a Calibre-produced pdf always displays correctly in Adobe Acrobat Pro at first. But when problems appear in Bookends, the same issues are displayed when opening the same file in Acrobat Pro. Sometimes the text will no longer be selectable in Acrobat pro. It may offer the option of doing OCR on the file. The file can then be worked with normally in Bookends as well, but it takes ages to save the file when you click away from it in Bookends - not a healthy situation. There is no general 'repair pdf' option in Acrobat Pro (that I'm aware of).

Not being able to use the Calibre ability to format pdf output is a pity if you care about having nicely formatted files to work on.

Alternatives to exporting epubs to pdf are limited. However I have found that onlineconverter has always worked without problems in Bookends for me (doesn't mean that it always will). The formatting can be pretty horrible (or ok) but at least you can then get it into Bookends.

Cheers,
Malcolm
Jon
Site Admin
Posts: 10048
Joined: Tue Jul 13, 2004 6:27 pm
Location: Bethesda, MD
Contact:

Re: epub in viewer?

Post by Jon »

Out of curiosity, where does Calibre store the PDFs? if it is in a folder (even a folder in the Calibre bundle), you can put it there and then attach it to Bookends. Remember, Bookends can handle attachments in ad hoc folder (i.e. not in the default folder). And once you've attached a PDF this way (telling Bookends to NOT move it to the default folder), Bookends will find any PDF you attach from that folder in the future. This would allow you to attach epubs (in the Calibre folder) to Bookends and open them in Calibre without having them duplicated.

Jon
Sonny Software
macgarvin
Posts: 16
Joined: Mon Oct 15, 2018 9:44 am

Re: epub in viewer?

Post by macgarvin »

Jon wrote: Mon Mar 06, 2023 8:09 am Out of curiosity, where does Calibre store the PDFs?
I believe the default is immediately within the home directory, with the unique author subfolders as per the first screenshot.

Screenshot 2023-03-06 at 16.19.50.jpg
Screenshot 2023-03-06 at 16.19.50.jpg (54.18 KiB) Viewed 1173 times

However, I've just had a look at the Settings file and it turns out it is pretty accessible and modifiable (second screenshot),

Screenshot 2023-03-06 at 16.22.31.jpg
Screenshot 2023-03-06 at 16.22.31.jpg (90.17 KiB) Viewed 1173 times

So yes I think your solution works if the necessary adjustments are made within this Calibre settings dialogue and user is content with annotations being visible only within Calibre (assuming that is not adjustable).

Malcolm

EDIT - Jon I've just realised that you actually said 'pdfs' in your response Jon, which I subliminally read as 'epubs', probably correctly?
Post Reply