09-26-2012, 05:34 AM | #271 | |
Guru
Posts: 655
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
See posts 263->265
Quote:
In convert options -> epub settings, SVG cover (I also had preserve AR) and in viewer use 'old' scroll mode. If I then edit the epub' cover (titlepage.xhtml) and change so it's Code:
height="98%" |
|
09-26-2012, 07:18 PM | #272 |
calibre/Sigil Developer
Posts: 4,604
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@Perkin - I tend to defer to Kovid's calibre logic in these situations as a starting point anyways. This plugin does the same as calibre does as far as height is concerned, which is for non SVG covers to specifically code it at 100%. Perhaps Kovid may have some thoughts as to why it is at that setting in calibre - clearly if he thinks it is worthwhile changing in calibre I will certainly follow suit with this plugin.
|
Advert | |
|
09-27-2012, 01:03 AM | #273 |
creator of calibre
Posts: 43,779
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If you dont set it to 100% then in the viewer's paged mode, the top and bottom margins will not be the same for the cover page. And of course the same will apply to any other viewer whose paged mode works the same as calibre's viewer.
|
09-27-2012, 10:29 PM | #274 |
Connoisseur
Posts: 63
Karma: 10
Join Date: Jul 2011
Device: Sony Touch, Nook Simple Touch, Kobo Aura, Android w/CoolReader
|
Removing Java - Use Mod ePub Plug-In?
Hello folks! I hope I'm posting this on the right place. I'm trying to clean up a bunch of older books and I'm coming across a lot of defunct java in the books, no doubt from previous conversion. Find/ Replace in calibre's conversion doesn't even recognize the code. Here's an example of what I'm seeing:
Code:
<p class="calibre1">Color-- <a href="javascript:BGColor('white')" class="calibre2">-1-</a> <a href="javascript:BGColor('lightgrey')" class="calibre2">-2-</a> <a href="javascript:BGColor('silver')" class="calibre2">-3- </a><a href="javascript:BGColor('beige')" class="calibre2">-4- </a><a href="javascript:BGColor('antiquewhite')" class="calibre2">-5- </a><a href="javascript:BGColor('navajowhite')" class="calibre2">-6-</a> <a href="javascript:BGColor('wheat')" class="calibre2">-7-</a> <a href="javascript:BGColor('burlywood')" class="calibre2">-8- </a><a href="javascript:BGColor('tan')" class="calibre2">-9- </a></p> As often as I have seen this stuff in books, I'm thinking it's probably addressed somewhere here and I've missed it. I highly doubt I'm the first person to see this. The reason I'm posting here is because I see that the Modify ePub plug-in here removes java artifacts and I was wondering if this is the right way to handle it. Am I in the right place? My experience with plug ins in calibre is pretty much non-existent. Thanks for your trouble. Suz |
09-27-2012, 11:10 PM | #275 | |
Well trained by Cats
Posts: 29,691
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I use Sigil (and REGEX) when I need that level of refined cleanup. |
|
Advert | |
|
09-28-2012, 07:49 AM | #276 | |
Connoisseur
Posts: 63
Karma: 10
Join Date: Jul 2011
Device: Sony Touch, Nook Simple Touch, Kobo Aura, Android w/CoolReader
|
Quote:
I actually see that stuff at the beginning of the books. Usually between the cover and title page, TOC (usually defunct), or first chapter. I'm thinking that it was placed at the front of the book in whatever conversion process it was previously put through and then calibre or some other conversion process slapped a cover on it in front of that. But that java is always at the beginning of the book, and calibre can never recognize it to clean it off. Ok. I will mark it for further formatting. Thanks for saving me some time installing a plug in, dealing with a learning curve, and then being frustrated when it didn't work! |
|
09-28-2012, 08:58 AM | #277 |
Well trained by Cats
Posts: 29,691
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Just so I am sure we are on the same page
I believe the PI will clean Java before the <body> tag, but not after. BTW This kind Editing (in Code View) with Sigil is easy if you know REGEX Sigil 6 (now in beta) is really, really |
09-28-2012, 10:09 AM | #278 | |
Connoisseur
Posts: 63
Karma: 10
Join Date: Jul 2011
Device: Sony Touch, Nook Simple Touch, Kobo Aura, Android w/CoolReader
|
Quote:
I'm not even sure what the difference between Sigil and REGEX Sigil is. I can pick up tags fairly quickly, and although I generally don't memorize stuff if I can find a cheat sheet I can often muddle my way through. Would the learning curve be significant and would I need more than an old Thinkpad with a 1.6ghz processor and 1.24gig of RAM (winxp sp3)? I have hundreds, possibly a thousand or more, of books to do and there is no end in sight to new ones coming. Much of what I end up with are old books that started life as scans and have been through many incarnations. I can see LIT, MSWORD, AMBERLIT, PDF in their code history, often all in one book. It's too much for calibre to do automated and I'm pretty sick of trying to edit a line at a time manually in calibre, particularly when it's the excessive garbage code that's causing calibre to not be able to do what it needs to do. Don't get me wrong, I LOVE calibre and sing about it to everyone, but it can't handle a lot of this stuff (or if it can I haven't figured out how yet). I may try this PI anyway, but if I'm going to end up installing and learning Sigil I may hold off on the PI. Decisions, decisions. |
|
09-28-2012, 10:48 AM | #279 | |
Well trained by Cats
Posts: 29,691
Karma: 54369090
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
XP SP3 is not an issue. 1.24G RAM is only an issue if you leave lots of other stuff open 1.6 GHz just means slower (you really will like Sigil 6's speed improvements) |
|
09-28-2012, 10:56 AM | #280 | |
Connoisseur
Posts: 63
Karma: 10
Join Date: Jul 2011
Device: Sony Touch, Nook Simple Touch, Kobo Aura, Android w/CoolReader
|
Quote:
I don't see Sigil 6, or even 5.9, for download anywhere. I saw on the Sigil forum you mentioned they took the beta down to tweak but that was a month or more ago. Is it still unavailable? Should I just find 5.3 and use it or go for 5.9/ 6 since I'm learning it from scratch anyway? Last edited by MizSuz; 09-28-2012 at 10:56 AM. Reason: ETA: Typos |
|
09-28-2012, 11:01 AM | #281 | |
Addict
Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
|
Quote:
I have been using 0.5.905 (x64) for a few days, I haven't had problems with it at all. For a beta it seems quite reliable. It's also an immense improvement feature- and usability-wise over 0.5.3 |
|
09-28-2012, 11:02 AM | #282 | |
Connoisseur
Posts: 63
Karma: 10
Join Date: Jul 2011
Device: Sony Touch, Nook Simple Touch, Kobo Aura, Android w/CoolReader
|
Quote:
Here I go, off the cliff... |
|
09-28-2012, 11:13 AM | #283 |
calibre/Sigil Developer
Posts: 4,604
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@theducks - you are merciless at times with your acronyms . Explaining what REGEX is by substituting it with "pcre"... lol
@MiSuz - As theducks says this Modify ePub plugin will only strip two things when it comes to javascript: actual .js javascript files contained in the epub, and any inline <script> blocks that are javascript. I have never seen an html file abuse javascript like the example you gave, that is horrible. The Modify ePub plugin has other uses for helping automate cleaning things up, inserting/replacing covers etc. But if your sources are not ePub to begin with you will be doing a calibre conversion as your first step, which negates the purpose of probably 75% of this plugin. You might find it handy to install the Open With plugin to most quickly launch Sigil with the tap of a key from calibre for an ePub you want to edit. And as mentioned please do use the latest Sigil 0.5.9 beta version rather than the 0.5.3 version, the beta is infinitely more powerful and light years more stable. We intend to have the next Sigil beta iteration out extremely soon (as in a few days) which should speed some important things up massively and polish some areas to really show off the massive effort gone into the 0.6 release... |
09-28-2012, 11:13 AM | #284 |
Addict
Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
|
Since we're way off topic anyway, I'd like to point you to this thread: https://www.mobileread.com/forums/sho...d.php?t=191617. There is a discussion of the new features, and you'll pick up some tips that might not have made it to the user guide yet.
And now, back to our regular schedule |
09-28-2012, 11:38 AM | #285 | |||||
Connoisseur
Posts: 63
Karma: 10
Join Date: Jul 2011
Device: Sony Touch, Nook Simple Touch, Kobo Aura, Android w/CoolReader
|
Quote:
Quote:
Quote:
Quote:
I've also already bookmarked the Sigil forums (especially the sticky thread with helpful expressions!) I'll try not to be too much of a pain over there while I deal with my learning curve. Quote:
Thanks to you all for allowing me to hijack the thread a bit, but also for giving me some direction and expounding on the plug-ins, too (not entirely off topic!) Suz |
|||||
Tags |
modify epub |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1171 | 03-23-2024 05:18 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 402 | 03-16-2024 11:44 PM |
[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 |