|
|
Thread Tools | Search this Thread |
08-29-2023, 05:52 AM | #1 |
Enthusiast
Posts: 32
Karma: 164
Join Date: Oct 2021
Location: Finland
Device: Kobo Libra 2
|
Is there a possibility to bulk edit custom ebook formatting to all ePubs?
As the topic says.
Is there a possibility to do so? I'm using KOReader and every book has their own embedded style. When I turn the embedded style off it seems all the books have different formatting styles even though I've tried to inject custom CSS rules through conversion. Is there a possibility to somehow modify ePub files so all of them have the same custom formatting style while not using the embedded style on KOReader? |
08-29-2023, 06:03 AM | #2 | |
Wizard
Posts: 1,161
Karma: 4917718
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
Quote:
You would need to manually edit each epub. There are too many variables between books. |
|
08-29-2023, 06:10 AM | #3 | |
Enthusiast
Posts: 32
Karma: 164
Join Date: Oct 2021
Location: Finland
Device: Kobo Libra 2
|
Quote:
It seems that even though I edit that CSS to the stylesheet.css only linespacing from the beginning of the book chapter changes and nothing else. |
|
08-29-2023, 06:23 AM | #4 |
null operator (he/him)
Posts: 20,655
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Vakke - a combination of the Editor Chains and Action Chains plugins perhaps.
See Integration with Action Chains: in Editor Chains I don't use either plugin, just know of their existence. BR |
08-29-2023, 06:55 AM | #5 | |
Enthusiast
Posts: 32
Karma: 164
Join Date: Oct 2021
Location: Finland
Device: Kobo Libra 2
|
Quote:
It seems to do what I want but I have no idea how to do it. I think I really took a bite of something way too big and I have no clue how to do and edit. |
|
08-29-2023, 07:14 AM | #6 | |
Resident Curmudgeon
Posts: 74,542
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
08-29-2023, 07:41 AM | #7 |
Enthusiast
Posts: 32
Karma: 164
Join Date: Oct 2021
Location: Finland
Device: Kobo Libra 2
|
|
08-29-2023, 12:56 PM | #8 |
Well trained by Cats
Posts: 29,945
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Every Publisher is KING. They do it THEIR WAY (AKA 'House styles').
You need to reverse engineer every book. And just because a House has Rules (The House stylesheet), does not mean the person (lowest bidder?) used it correctly I have seen a whole book mostly coded class="frontmatter" because that was the first CSS entry that looked OK to the coder. A House stylesheet may have a dozen styles that are currently the same. The Theory is, 'I can change the look of any page type later.' |
08-29-2023, 05:50 PM | #9 | |
Resident Curmudgeon
Posts: 74,542
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Using that CSS you found here won't work. You will not be able to match the classes in the CSS of the eBooks with the classes in that CSS. As is said above, you have to look at the CSS code for what's going on in the HTML and then fix it to do what you want if it's not doing what you want. I install my small set of CSS classes and they work for me. but then, I know what I'm doing to be able to use some of them. I don't always use all of them and the ones that don't get used to get erased when I am done. My CSS is not a put in place and it's fixed. They are a fix for some things depending on what's in the CSS of the eBook. But I have to change some classes to use mine instead. It's not a drop in and done. |
|
08-29-2023, 07:12 PM | #10 | |
null operator (he/him)
Posts: 20,655
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
08-29-2023, 07:25 PM | #11 |
Grand Sorcerer
Posts: 10,401
Karma: 225537496
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
I edit every ebook manually. There's no other way, as the previous posters said. Mass insertion of a piece of code will never work on all ebooks, or even most of them, because there's no telling how an individual ebook is coded without looking at the code in that book. There are literally hundreds of ways something can be coded.
|
08-29-2023, 07:49 PM | #12 |
Well trained by Cats
Posts: 29,945
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Which is why the Jump to Style or link feature is in the editor.
Even then, the results are not always what it looks like, CSS. Cascade A ripple down might be in play. The Editor also includes View: Inspector A tool that allows backtracking/examining. This is not a tool for one with no knowledge of how to use a CSS to begin with. EPUB is blocks within Blocks. This tool allows you to select and expand a block to see what is being done. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bulk delete custom metadata inside epubs | senhal | Library Management | 8 | 02-17-2016 12:01 PM |
iPad Possibility to sync bookmarks through side loaded ePubs (Any iOS software?) | andsoitgoes | Apple Devices | 12 | 04-13-2012 07:38 PM |
Bulk metada edit error trying to edit tags | Purple Lady | Calibre | 8 | 02-17-2011 06:09 PM |
Bulk metadata edit, set cover from ebook file | Stampercam | Calibre | 2 | 01-13-2011 04:43 PM |
Bulk Meta Data Edit Resetting Custom Field | toomuchreading | Calibre | 8 | 10-22-2010 10:19 PM |