03-04-2016, 09:18 PM | #1036 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Yes indeedy, I can do it there with
I'd still like it in Modify because a) I could do it in bulk and b) I always run Modify over new epubs to remove the crud like covers and non cd metadata. To use the Toolbag I have to fire up the editor, click a button and tell the toolbag what to do (every time - hint, hint DD). But at least now when they do irritate me, which is in the editor, I can get rid of them toot sweet Thanks for the tip. BR |
03-05-2016, 12:43 AM | #1037 | |
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:
I run into a similar situation all the time with CSS classes. As a result, sometimes I end up running my "cleanup" script (applying Modify with a certain profile, including strip-spans) multiple times while processing a particularly obnoxious book. It's annoying, but there's really no help for it. * Hee. Cheap puns are fun. |
|
Advert | |
|
03-05-2016, 01:05 AM | #1038 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Rev. Bob thanks for the feedback, I can get by with DD's tool.
BR |
03-23-2016, 07:25 AM | #1039 |
Guru
Posts: 928
Karma: 2146660
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, Marvin 3
|
Something I often find myself doing with purchased epubs is "normalising" the font sizes. It would be nice if this could be automated.
What I mean by this is that all the font-size declarations in the CSS are altered (almost always increased, what is it with publishers and small fonts?) so that the body text is all CSS "medium". So I'd normally do something like this: xx-small -> x-small x-small -> small small -> medium medium -> large large -> x-large x-large -> xx-large xx-large -> xx-large (not sure it matters) Of course there are also relative font sizes specified in percentages, which would be a similar sort of problem. Identifying "body text" is probably statistical - counting the declarations used by "most" divs and ps in the text will give a good idea. I just open a good-sized chapter in Sigil and look at the start of the source and have a stab :-) |
03-23-2016, 10:40 AM | #1040 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
font-size: 'medium' just gets removed, since that is my Base font size the I set in <body> BTW I run the 'chained' (Group) Saved Search feature in Sigil to do this Last edited by theducks; 03-23-2016 at 10:42 AM. Reason: added comment |
|
Advert | |
|
03-23-2016, 11:41 AM | #1041 |
Guru
Posts: 928
Karma: 2146660
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, Marvin 3
|
|
03-25-2016, 10:10 AM | #1042 |
Zealot
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
|
…and also larger right margins: they probably naively try to emulate paper books (with a larger right margin, all pages look like a right page, whilst they should only think of making the best use of the screen surface in order to make reading easier and faster. To my mind, ebooks and ereaders are often made by people who don't like reading.
I also would love such a function in Calibre. To the moment, I do the same as theducks, but I did not know the 'chained' (Group) Saved Search feature in Sigil either. Thanks, theducks! |
03-25-2016, 10:13 AM | #1043 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
The instructions were not wrong. I was not in Borg mode (a common problem. Failed to assimilate ) |
|
03-25-2016, 06:57 PM | #1044 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
|
|
03-25-2016, 08:01 PM | #1045 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
Body { font-size: 1.2em; } no need to touch the other places |
|
04-01-2016, 04:40 AM | #1046 |
Zealot
Posts: 106
Karma: 8300
Join Date: Jul 2012
Location: France
Device: Kobo Aura H2O, Kobo Touch, Kobo Mini
|
Of course: This is the first thing I try. But sometimes it does not work. Maybe my knowledge of HTML and CSS is not sufficient.
|
04-01-2016, 10:14 AM | #1047 | |
Well trained by Cats
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
There is some really unnecessary coding that publishers include because THEY don't understand (care) inheritance or native defaults. If you specify a font-size, it is an OVERRIDE of the previous-inherited size (no font-size: 1em; in a class, that cancels the <body> setting) In most cases, I only specify what I want to CHANGE. If I want a smaller font, I use a percentage (scales the body size) I also use a unique, class for clarity when it encompasses the whole paragraph, Code:
<p class="foo">Stuff</p> Code:
<p class="foo"><span class="bold"><span class=:big">Stuff</span></span></p> |
|
04-02-2016, 06:21 AM | #1048 |
Wizard
Posts: 1,161
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
|
04-04-2016, 07:37 AM | #1049 |
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
|
|
04-04-2016, 08:00 AM | #1050 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
Tags |
modify epub |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1184 | 04-17-2024 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 |