11-05-2016, 09:18 PM | #1066 | |
Wizard
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
Quote:
Traditionally, there is a cover - a single full-page image for the outside of a book - which is carried in a document that Calibre calls the title page, and which is the beginning (first page) of the ebook. There is also a title page - the book's title and author's name, usually as black text on white, sometimes as a logo - that appears as one of the first pages inside the book. Thus, your post leaves me confused about what you want to do - because it sounds like you simultaneously want to keep the cover as-is and add a new cover. Can you clarify? |
|
11-06-2016, 03:56 AM | #1067 | |
Resident Curmudgeon
Posts: 73,877
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
11-11-2016, 10:36 PM | #1068 | |
Fanatic
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
|
Quote:
But then again, just being able to add a new cover and retain the old one also makes sense sometimes. There are some books that I would not mind having two different covers (it would make the uk and us title being different easier to deal with. Just add a second cover and you have all the info right there with no need for wordy tags etc. that may never be read). I would really like to be able to select an option to add a cover without replacing anything. |
|
11-11-2016, 10:39 PM | #1069 | |
Fanatic
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
|
Quote:
I figure I'm not the only one who would like to be able to choose to add a cover(and not replace) occasionally. I am not saying that the majority of the time I prefer to "replace" but maybe between 10 and 5 percent of the time I want to add only. |
|
11-12-2016, 01:01 AM | #1070 | ||
Wizard
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
Quote:
Quote:
Now, if I were doing this by hand, here's how I'd go about it. In this example, suppose I have the "real" cover as a prepped JPG image... 1. Open the EPUB in the Calibre editor. 2. Open the cover page, probably named titlepage.xhtml. 3. Click somewhere in the HTML code and hit Control-A Control-C to select everything and copy it to the clipboard. 4. At the bottom of the HTML preview panel on the right, look for the "split" icon and click that button. Hovering over the preview should result in a colored line showing up above the pointer. 5. Click somewhere in that preview - doesn't matter where - to split the existing page. You should now have two open HTML pages, and you're looking at the code for one of them - the new one, I think. 6. Hit Control-A Control-V to replace the "split" code with the original code, then close the tab. You should now be back in the original document's tab. 7. Hit Control-A Control-V again. You now have two identical "cover pages" - but only one's the real cover, and it should be the one that's open, the first one in the list. (You can identify it by the little "book" icon next to the filename.) If that's not true, right-click the first page in the file list (which should be bold and italic, as it's the active tab) and make it the cover page. 8. Rename the new, not-cover page to something like tp.xhtml and the not-cover image to something similar. Doesn't really matter what you call 'em, as long as the names don't match anything else in the book, but "tp" for "title page" makes sense and is short. 9. Import the new cover image into the book and rename it if you need to. Right-click it and mark it as the cover image. 10. Look back up at the code in the open tab. See where it's got the title image's name? Change that to the newly-added image's name. If all goes well, you should see the preview pane change to show the new cover image. (If you see an empty box instead, there may be a folder problem to sort out. If there was a folder or path before the not-cover image's filename, rename the real-cover image to start with that same path. Alternately, erase the real-cover filename from the code and start typing it. Calibre should auto-complete it and handle the path stuff on its own.) 11. Save the book and try it out in your favorite reader! There may be a plugin that'll take care of that for you, but if nothing else, now you know why this isn't as simple as you might've thought. Last edited by Rev. Bob; 11-12-2016 at 01:12 AM. |
||
11-18-2016, 06:50 PM | #1071 | |
Fanatic
Posts: 515
Karma: 1470724
Join Date: Jul 2013
Location: Quebec CA
Device: android 4 (samsung tablet and asus tablet)
|
Quote:
It is only by putting out a desire for a plugin or plugin mod that we see if others have a similar desire and if there is a demand for that kind of functionality. And I see what you mean about it being outside of modify epub's scope. It would change the structure of the epub itself. |
|
11-18-2016, 09:24 PM | #1072 |
null operator (he/him)
Posts: 20,544
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@LadyKate - FWIW:- firstly, I have no interest in having multiple covers within an ePub, in fact I use the Modify plugin to remove any 'covers' etc
However I am interested in keeping a copy of any extra covers within the library. I achieve that by putting the all the covers (in their original size, resolution etc) into a multipage TIFF file with IrfanView, I have Preference->Tweaks->Image file types to treat as ebooks when dropping onto the Book Details panel set to 'TIFF, TIF'. If a book has a TIFF file I indicate its presence with a 'camera' icon. If I happen to find another cover for a book I can add it to the TIFF, again with IrfanView. BR Last edited by BetterRed; 11-18-2016 at 09:28 PM. |
01-02-2017, 02:44 AM | #1073 | |||||
Guru
Posts: 743
Karma: 619508
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
Possible to remove fixed linebreaks <br/>?
I got some ebooks where every line is ended with a
Code:
<br/> Code:
bla bla blub bla bla<br/> bla bla blub bla bla, bla bla blub bla bla<br/> bla bla blub bla bla.<br/> <br/> bla bla blub bla bla.<br/> Till now I was using "Edit book", doing a search and replace in 3 steps to fix the problem: 1) search and replace (regex) for: Quote:
Quote:
Quote:
3) 1) search and replace (regex) for: Quote:
Quote:
Last edited by nhedgehog; 01-02-2017 at 06:51 AM. |
|||||
01-02-2017, 03:16 AM | #1074 |
Wizard
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
There's not currently a way to do that with Modify, no. Including such a feature could be hazardous, as that kind of layout can be used deliberately - for instance, to display poetry or addresses - and doing such a blanket replacement would ruin those cases.
|
01-02-2017, 05:42 AM | #1075 |
Resident Curmudgeon
Posts: 73,877
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Where did these eBooks come from? I've never seen any retail eBooks with that sort of coding. Doesn't mean they aren't out there. Just never seen and I'm interested where they came from.
|
01-02-2017, 06:48 AM | #1076 |
Guru
Posts: 743
Karma: 619508
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
Possible to remove fixed linebreaks <br/>?
@JSWolf: Books are coming from a firefox plugin I use to download webpages as ebooks. Often these were text files which ended like this.
@Rev. Bob: Thanks for the clarification. I had a look at the code and changed the plugin myself, so that unpretty is now doing exactly what I was looking for me. Last edited by nhedgehog; 01-02-2017 at 06:59 AM. |
01-02-2017, 09:27 AM | #1077 |
Resident Curmudgeon
Posts: 73,877
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
It's very easy to replace the <br /> with something else using the Calibre eBook editor.
|
01-02-2017, 10:07 AM | #1078 |
Guru
Posts: 743
Karma: 619508
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
|
03-07-2017, 11:09 AM | #1079 |
Enthusiast
Posts: 43
Karma: 70238
Join Date: Jun 2014
Device: none
|
base64 encoding support
I have noticed that "data-uris" are detected as broken links and removed by this plug-in.
Would it be possible to fix this behavior? (see attachment for an example where images are being removed) |
03-07-2017, 02:17 PM | #1080 |
Wizard
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
Who on Earth is building ebooks that way, instead of using image files like a sane person? There are times when text-encoded images make sense on the web, but in a static ebook file? That's just plain inefficient.
|
Tags |
modify epub |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1184 | Yesterday 06:17 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] Manage Series | kiwidude | Plugins | 166 | 02-13-2024 11:31 AM |
Modify ePub plugin dev thread | kiwidude | Development | 346 | 09-02-2013 05:14 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |