|
|
#1 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 478
Karma: 1167803
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
[GUI Plugin] Ex Libris
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.16
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; 11-14-2012 at 12:02 PM. |
|
|
|
|
|
#2 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 478
Karma: 1167803
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
I attach some screenshots from v. 1.0.9.
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 5
Karma: 10
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
|
|
|
|
|
|
#4 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 478
Karma: 1167803
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
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).
|
|
|
|
|
|
#5 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 478
Karma: 1167803
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
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.) |
|
|
|
|
|
#6 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,492
Karma: 1233494
Join Date: Jun 2009
Location: Madrid, Spain
Device: Pink Sony Prs-350, Kobo Mini, iPhone, iPad
|
Now I have a different problem. The log is:
Spoiler:
The same book works OK with the command version. Sorry for being a spoilsport
__________________
Ciao Terisa de Morgan
|
|
|
|
|
|
#7 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 478
Karma: 1167803
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
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? |
|
|
|
|
|
#8 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,492
Karma: 1233494
Join Date: Jun 2009
Location: Madrid, Spain
Device: Pink Sony Prs-350, Kobo Mini, iPhone, iPad
|
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 ).
__________________
Ciao Terisa de Morgan
|
|
|
|
|
|
#9 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,492
Karma: 1233494
Join Date: Jun 2009
Location: Madrid, Spain
Device: Pink Sony Prs-350, Kobo Mini, iPhone, iPad
|
Checked. It doesn't work with that either. I'll try to explore a bit more (working knolewdge at hand
)
__________________
Ciao Terisa de Morgan
Last edited by Terisa de morgan; 08-25-2012 at 04:57 AM. Reason: typos |
|
|
|
|
|
#10 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 478
Karma: 1167803
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
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 ? |
|
|
|
|
|
#11 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,492
Karma: 1233494
Join Date: Jun 2009
Location: Madrid, Spain
Device: Pink Sony Prs-350, Kobo Mini, iPhone, iPad
|
Windows 7 64 bits and calibre 0.8.66. This evening I'll make more tests.
__________________
Ciao Terisa de Morgan
|
|
|
|
|
|
#12 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,492
Karma: 1233494
Join Date: Jun 2009
Location: Madrid, Spain
Device: Pink Sony Prs-350, Kobo Mini, iPhone, iPad
|
And my mistake. I DON'T see the chapter list.
__________________
Ciao Terisa de Morgan
|
|
|
|
|
|
#13 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 478
Karma: 1167803
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
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?) |
|
|
|
|
|
#14 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,492
Karma: 1233494
Join Date: Jun 2009
Location: Madrid, Spain
Device: Pink Sony Prs-350, Kobo Mini, iPhone, iPad
|
It's already checked. I'll try to look at temp dir, perhaps the properties.
__________________
Ciao Terisa de Morgan
|
|
|
|
|
|
#15 |
|
Digital Amanuensis
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 478
Karma: 1167803
Join Date: Dec 2011
Location: Padova, Italy
Device: Kindle3, Odyssey, eDGe, A60, PRS-T1, iPad3, KoboGlo
|
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 04:03 PM. |
|
|
|
![]() |
| Tags |
| ex libris |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 1428 | Yesterday 07:34 PM |
| [GUI Plugin] EpubMerge | JimmXinu | Plugins | 79 | 05-23-2013 06:19 PM |
| [GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 140 | 05-04-2013 11:27 AM |
| [GUI Plugin] Open With | kiwidude | Plugins | 183 | 04-22-2013 02:25 PM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |