![]() |
#16 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
How do you know if 17px or 16px is correct? That's part of the problem.
|
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
|
![]() |
![]() |
![]() |
#18 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
>Merging multiple CSS classes that are "the same" or "pretty close" to each other.
I'll be glad to see that, thanks! |
![]() |
![]() |
![]() |
#19 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Merging classes that are the same is OK. Merging classes that are "pretty close" is not OK. Just because the classes seem pretty close, does not mean they should be merged. They could be different on purpose and you may not want them merged. So the pretty close feature needs to not be written.
|
![]() |
![]() |
![]() |
#20 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
After all, nothing is forcing you to use the pretty close feature if you don't want to. |
|
![]() |
![]() |
![]() |
#21 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#22 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,607
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
It's interesting reading these comments and wonder why it is even an issue? Don't you just replace all the garbage?
I get an ebook and the first thing I do is completely reformat it. Wipe the css and replace with my own, rename the html files, replace all the existing html tags and attributes to minimise the tags and match the new css code. Sometimes it is quite easy with some well placed Regex S&R, other books are a disaster and require a lot of work. When you get code that looks like that in the image, why would you keep it? (I had to stretch the window across my dual screens, hence the taskbar in the middle). What on earth is the point of that?? Last edited by Karellen; 07-29-2022 at 06:35 PM. Reason: Add image |
![]() |
![]() |
![]() |
#23 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,905
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 number of loops is the deepest nest, usually the last chapter. This mess seems to be done by Cocoa) Note: I hand adjust the class and ID values as they vary.Sigil type REGEX Code:
(?sm)<div class="calibre4" id="calibre_pb_\d+">\s+<p (.+)</p>\s+(<div class="calibre6" id="calibre_pb_\d+"></div>\s+)*</div> |
|
![]() |
![]() |
![]() |
#24 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#25 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 312
Karma: 3196258
Join Date: Oct 2015
Location: Madison, WI
Device: Kindle 5th Gen
|
Must be a mindset thing, because I too basically don’t care about preserving what the original CSS was trying to do once I’m in there anyway. I’d be a lot more likely to fix the markup and then add my own minimal styling.
Last edited by phillipgessert; 07-31-2022 at 12:20 PM. |
![]() |
![]() |
![]() |
#26 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I do have some CSS I add to all eBooks and whatever I don't use will get deleted when I remove unused CSS after the eBook is fixed. I also remove unused CSS after deleted any of the HTML files I don't want. |
|
![]() |
![]() |
![]() |
#27 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,607
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
@theducks
Thanks for the regex. I had already removed the div's with a simpler regex, but I'll add yours to my toolbox. Great to see I'm not the only one @phillipgessert @JSWolf I find the opposite. It will take a lot longer trying to figure out all those bloody "calibre1", "calibre_1", Calibre2" etc etc. I've seen some books with 40+ calibre tags. (I still don't get it!!! I am sure the conversion process can be tweaked.) The books I read are fiction. There are no technical manuals that require lots of formatting. Fiction is quite easy. A heading, opening parargraph/scene break, then the body paragraphs. Occassionally some quotes, a footnote. Then front and back matter. |
![]() |
![]() |
![]() |
#28 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,130
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I use Disp's Editing Toolbag editor plugin. I find it easier then the regex.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help with style settings and screen dpi to match my kindle reader style | Gaqs | KOReader | 3 | 05-13-2022 06:02 AM |
Forma Should I get the origami-style case or the simple one-fold-style for my Forma? | droopy | Kobo Reader | 8 | 08-25-2019 05:15 PM |
Inline STYLE attribute not converted to class | sherman | Conversion | 4 | 05-05-2016 08:11 AM |
Aura H2O MicroSDHC card class 4 or class 10? | chipro12 | Kobo Reader | 5 | 07-04-2015 02:24 AM |
Feature request: new CSS class from computed style | kat7 | Sigil | 23 | 01-02-2015 01:30 PM |