03-27-2018, 01:53 PM | #46 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Here are the rules I've added to the Transform section of Look and Feel:
Spoiler:
Most of these entries will remove many or most of the CSS codes that Calibre says are invalid, so they are never listed when I check the book after running the conversion--which saves a ton of time. Last edited by theducks; 03-27-2018 at 02:38 PM. Reason: Spoiler neede AGAIN |
03-27-2018, 01:55 PM | #47 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
The Transform rules can be copied and pasted into a file called rules.txt and then imported into your Transform section by clicking the Import button at the bottom of that screen.
The Extra CSS codes can be copied and pasted into the Styling section. These have all been added to my conversion settings periodically over the last several months, as I found each of them or thought of how to fix things, as I modified and converted thousands of files. So, it would be very quick and easy to add all of the above to your conversion settings. Then I would be interested to hear from anyone who thinks this has helped them at all. Last edited by deback; 03-27-2018 at 01:58 PM. |
03-27-2018, 02:04 PM | #48 |
Resident Curmudgeon
Posts: 76,395
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The extra CSS needs editing. There are things in it that most people won't need. Also, some of your rules need editing/deleting. Plus, your extra CSS is not going to work in a lot of cases. I've seen many eBooks where most of your extra CSS would be useless.This is why hand editing is easier. It works in ALL cases. Plus, once you know who to hand edit, it's not that difficult.
Last edited by JSWolf; 03-27-2018 at 02:06 PM. |
03-27-2018, 02:10 PM | #49 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Convert will ignore the classes that aren't in the current .css file, so if people don't need some of the things, then it doesn't matter, but most things that need to be fixed will be fixed by one or more of those extra CSS codes. As I've said before, there are times when something needs to be fixed manually, but mucho time can be saved by using all of these codes. The lists I posted are only to give people an idea of how to do things automatically and to save time. They can choose what they want and what they don't want.
Let me know what you think needs editing, please. I know of nothing that needs editing or deleting, since I've seen all of these things in books I've worked with in the past, and that's why they are included in the lists. Since I'm a perfectionist, I always proofread everything I do, so I'm fairly sure there are no errors in those two lists. I figured you would post something negative and useless, though, since that's what you do and is why you are called a curmudgeon. Arguing seems to be your life (and I also don't think you actually have read everything I've said). On the other hand, I'm here to help others save lots of time and make all of this go much quicker. Last edited by deback; 03-28-2018 at 10:12 AM. |
10-30-2021, 03:45 PM | #50 |
Morlock
Posts: 34
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
|
But remember, DO NOT CONVERT!
But, I just discovered Kovid's comments about using convert to break books at chapter headings. Some books have huge files that are broken in mid chapter and I was wasting a lot of time splitting them manually. Do I have to go back to that?
|
11-05-2021, 04:25 PM | #51 | |
Morlock
Posts: 34
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
|
Formatting all books in library
Quote:
I also create a specific user dictionary, if I have several books from the same author on the same theme. (Name the dictionary for the author or the theme) They usually have specialized words repeated in more than one book. Oh, and I also update the default user dictionary to include properly spelled words such as contractions or common colloquialisms. |
|
11-05-2021, 09:40 PM | #52 |
Running with scissors
Posts: 1,557
Karma: 14325282
Join Date: Nov 2019
Device: none
|
Instead of fixing the css for the p tag what I do is delete the class="whatever" for the p tag, in all of the html files. It's very rare for me to get a book that uses css for an unadorned p (a p with no dot in the css, or a p with no class in the html); they all have some class they use for the vast bulk of the paragraphs. By deleting the class="whatever" I can then search for "p class=" and find any remaining p tags with a class that may need fixing.
|
08-30-2024, 06:32 AM | #53 |
Groupie
Posts: 195
Karma: 1074916
Join Date: Jan 2021
Device: Likebook Ares
|
|
08-30-2024, 01:56 PM | #54 | |
Well trained by Cats
Posts: 30,443
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
If your REGEX Foo is strong, Right click the Chapter head code: split at Multiple locations |
|
09-02-2024, 07:08 AM | #55 | |
Wizard
Posts: 1,139
Karma: 1954142
Join Date: Aug 2015
Device: Kindle
|
Quote:
The Editor Chains plugin has an action (Inline styles to CSS) that can transform inline styles to CSS. This process should be straightforward for books that contains only inline styles, as in your use case. Note however, that in books that have both inline styles and CSS sheets (or style tags), this can lead to problems with formatting, because converting can clash with CSS rules of precedence, specificity .... etc which can make CSS cascade run different before and after conversion. So to guard against this problem, the plugin will calculate the effective style for each element before and after the conversion to CSS, and if they are not the same for every element, it will not go ahead with the conversion (there is an option to partially override this for only for elements that won't be affected). For people who are averse to conversion, the plugin can also automate a lot of things without changing the epub code, this includes things like: transform html, transform css, remove unused CSS, beautify, embed, subset, smarten .... etc. You can also run your automation on multiple books by using the Action Chains plugin together with Editor Chains. Last edited by capink; 09-03-2024 at 02:09 AM. |
|
Tags |
automatic, format, personalization, personlization |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Merge Formats library into Metadata library? Or, Add Format in bulk? | Sabardeyn | Library Management | 5 | 01-23-2013 07:00 AM |
Formatting from azw4 file format | mandrix | Conversion | 0 | 11-07-2012 02:44 AM |
Keeping books in library in the fb2.zip format | Eugene_ | Library Management | 2 | 09-19-2011 09:39 AM |
Are library books in Adobe Epub format readable on Kindle? | stygian | Amazon Kindle | 7 | 01-09-2011 04:35 PM |
[KOBO] Strip existing formatting to apply my own default formatting to all books | digital_steve | Calibre | 2 | 08-10-2010 07:34 PM |