08-21-2012, 08:10 AM | #1 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
[GUI Plugin] Ex Libris
This plugin allows you to insert an ex libris into your eBooks in EPUB format.
The source code is available in this GitHub repo. In particular, this is the Calibre plugin version of the CLI tool described in this discussion. You can select a single ebook or your entire Calibre library, and have the same ex libris applied to all of them! You can both replace the existing eBooks or create a copy. You must supply an XHTML file containing the ex libris to be inserted, and --- optionally --- any other resource needed (images, CSS files, fonts, etc.). If you select a single EPUB book, the main window will show you its spine and TOC, to help you specify the insertion points of the ex libris page. If you select multiple EPUB books, you can only specify "1" or "first" or "last" as insertion points, both for the spine and for the TOC. You can overrule this limitation (at your own risk!) unchecking the respective checkbox in the configuration window. The current version can replace placeholders in the XHTML page (written as [%key%]) using the eBook metadata (e.g., [%title%]), Calibre metadata (e.g., [%calibre-title%]) or user-provided strings ([%yourMessageHere%]). The set of supported metadata tags can be found on the configuration window. In the latter case, the user can define her own keys. Main Features as in v. 1.0.19
Special Notes
Installation Steps
Paypal Donations: If you like this project, I ask you to consider supporting the eBook Club Italia (http://ebci.it/), a non-profit association that promotes reading, especially using digital devices. You can help through a donation (there is a PayPal button on the right column of the home page) or by becoming a member. Version History Spoiler:
Last edited by AlPe; 09-02-2014 at 03:56 PM. |
08-21-2012, 08:12 AM | #2 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
I attach some screenshots from v. 1.0.9.
|
Advert | |
|
08-21-2012, 01:50 PM | #3 |
Junior Member
Posts: 5
Karma: 18
Join Date: Aug 2012
Device: iPad 3
|
Amazing, weirdly enough I was going to ask if anybody had thought of doing something like this, I will give it a shot later
|
08-25-2012, 04:21 AM | #4 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Hi, I have just attached v. 1.0.10, fixing two bugs, one in the main exlibris library (thanks to Terisa de morgan for reporting it and providing me with an EPUB), the other one in the exception handling (thanks to lucbolo in the SBF forum for reporting it).
|
08-25-2012, 04:49 AM | #5 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
I am currently planning the following new features:
1) Align the shortcut management with the Calibre centralized one. 2) If you use the copy function, mark the copy EPUB (containing your ex libris) in some way, for example by setting its date to "today" instead of the currrent date. Is it possible to define custom fields in the metadata, so that I can add that column to my library view? 3) If I try to insert the ex libris and the eBook already contains one, just overwrite it. 4) Ex libris removal function. 5) Use calibre metadata (e.g., user-modified title) instead of book metadata when substituting string placeholders. (Thanks to gnomik from SBF forum for suggesting some of them.) |
Advert | |
|
08-25-2012, 05:43 AM | #6 |
Grand Sorcerer
Posts: 6,421
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Now I have a different problem. The log is:
Spoiler:
The same book works OK with the command version. Sorry for being a spoilsport |
08-25-2012, 05:50 AM | #7 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
No, there is absolute no problem; given my knowledge of Python and the several different ways of formatting EPUBs, I am surprised that exlibris *works* in many cases :P
Are you using the EPUB file you sent me or another one? On the one you sent me, I do not get the same error. In the main window, are the spine/TOC lists visible? |
08-25-2012, 05:55 AM | #8 |
Grand Sorcerer
Posts: 6,421
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
No, it's another one, I apologize I'll try the other... And no, the spine/TOC lists are visible.
And yes, I agree that ePub can be a mess (I don't talk about python knowledge, mine is not very great, I can debug and modify some things, not going much further ). |
08-25-2012, 05:56 AM | #9 |
Grand Sorcerer
Posts: 6,421
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Checked. It doesn't work with that either. I'll try to explore a bit more (working knolewdge at hand )
Last edited by Terisa de morgan; 08-25-2012 at 05:57 AM. Reason: typos |
08-25-2012, 06:07 AM | #10 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
That's quite strange.
The error says that the field "spine_max_index" (= maximum index in the toc) has not been initialized. It should be set when you try to insert the ex libris on a single EPUB file, after getting the spine list. So, if you see the spine list in the window, "spine_max_index" should be set. I am confused. What are your Calibre version and your OS ? |
08-25-2012, 06:40 AM | #11 |
Grand Sorcerer
Posts: 6,421
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Windows 7 64 bits and calibre 0.8.66. This evening I'll make more tests.
|
08-25-2012, 06:42 AM | #12 |
Grand Sorcerer
Posts: 6,421
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
And my mistake. I DON'T see the chapter list.
|
08-25-2012, 08:22 AM | #13 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
Ok, that's makes sense. Probably the main exlibris library is not able to read the spine from the EPUB for some reason.
I got reports from fellow Italian users, using Windows/Linux machines, and almost always the plugin was working properly. However, in one case the plugin was not behaving correctly, and it was a portable version of Calibre. I suspect that it is due to the exlibris attempt to create a temporary directory for unpacking the EPUB and examining its content, but I have to better explore the issue. (I assume you upgraded correctly the plugin to the new version 1.0.10 --- please check the 'About' dialog out --- and restarted Calibre, right?) |
08-25-2012, 09:43 AM | #14 |
Grand Sorcerer
Posts: 6,421
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
It's already checked. I'll try to look at temp dir, perhaps the properties.
|
08-26-2012, 03:41 PM | #15 |
Digital Amanuensis
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
|
I am interacting with a user of the SBF forum, who has the same problem (on OS X, though.) and he seems to confirm that the problem relies on the attempt to create a tmp directory to unpack the EPUB.
I am planning to have a better look at the issue tomorrow, and I guess the solution involves taking advantage of the standard Calibre function that gives you a temp dir. Another user confirmed that the plugin runs well on another Linux machine, with Calibre version 0.8.61 (which is different than mine). EDIT: Terisa, would you mind 1) uninstalling the plugin; 2) installing from this file; 3) restarting Calibre; 4) trying to apply your ex libris? It should work now. Last edited by AlPe; 08-26-2012 at 05:03 PM. |
Tags |
ex libris |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 551 | 01-05-2025 07:56 PM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 495 | 10-19-2024 07:06 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 09:39 AM |
[GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 3985 | 05-09-2015 12:18 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |