View Single Post
Old 11-18-2020, 07:44 PM   #12
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Quote:
Originally Posted by JSWolf View Post
It's a lot better to learn to do this yourself. Then you can do it properly and have font sizes as you want them. And by doing it yourself, you learn CSS.
That is how I learnt.

I then moved on to using transform.

Now I first run Remove unused CSS in Calibre editors . . It can be surprising how many unused rule it deletes It also stacks identical rules, again stacks can be surprisingly large.

Now I am able to look at the CSS Rules and say, that one is redundant, that styles text in a way I do not like, and that one boils down to make the text italic. Then I delete the unwanted style rules and run Remove unused CSS in Calibre editors again. This will now remove styles from the html that had style rules in the CSS but they have been deleted.

I then check what each of the remaing CSS rules do and look at their use in the html. If it does something I want, I change the rule name in the html to the name I use for the rule in my stylesheet I then delete the rule from the original stylesheet. Often these original rules only apply to a single word or letter. Eventually I often end up with a blank stylesheet.

I then paste my standard CSS into the blank stylesheet. I love clips and snippets.

I then just need to eyeball the code/preview to see if I have missed something somewhere. I finally run Remove unused CSS again to remove the unused rules from my stylesheet. Normally I am left with four or five rules.

If there are tables, lists and/or lots of pictures in an eBook I do not touch the styling for these items and paste my CSS rules above them in the stylesheet.

For a siimple novel this process can take about 20 to 30 minutes. For a complicated book where almost every word is individually styled it can take anything from 2 to 4 hours.

Last edited by Thasaidon; 11-18-2020 at 07:49 PM. Reason: Multiple typos
Thasaidon is offline   Reply With Quote