![]() |
#1036 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
![]() 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 |
![]() |
![]() |
![]() |
#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 | |
|
![]() |
#1038 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Rev. Bob thanks for the feedback, I can get by with DD's tool.
BR |
![]() |
![]() |
![]() |
#1039 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 977
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 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 :-) |
![]() |
![]() |
![]() |
#1040 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
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 | |
|
![]() |
#1041 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 977
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
|
|
![]() |
![]() |
![]() |
#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! |
![]() |
![]() |
![]() |
#1043 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
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 ![]() |
|
![]() |
![]() |
![]() |
#1044 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
|
![]() |
![]() |
![]() |
#1045 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
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 |
|
![]() |
![]() |
![]() |
#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.
|
![]() |
![]() |
![]() |
#1047 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
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> ![]() |
|
![]() |
![]() |
![]() |
#1048 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
|
![]() |
![]() |
![]() |
#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
|
|
![]() |
![]() |
![]() |
#1050 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
Tags |
modify epub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1251 | 07-07-2025 09:13 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Manage Series | kiwidude | Plugins | 167 | 07-28-2024 03:07 PM |
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 |