Quote:
Originally Posted by JSWolf
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.