View Single Post
Old 05-24-2022, 12:07 PM   #854
Barty
doofus
Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.Barty ought to be getting tired of karma fortunes by now.
 
Barty's Avatar
 
Posts: 2,553
Karma: 13089041
Join Date: Sep 2010
Device: Kobo Libra 2, Kindle Voyage
Quote:
Originally Posted by baskerville View Post
I'm not sure what you mean by current paragraph in selection?

The text layer doesn't have the classes. They are only present in the XML representation.

What are you trying to achieve?
What I want to do is long press somewhere inside a paragraph and have an option like "Normalize as indented paragraph". This will attach a custom rule to the stylesheet according to a user-defined template, such as

Code:
.indent {
    margin: 0;
    padding: 0;
    text-indent: 1.5em;
}
The idea is to lazily tweak CSS. I'm only interested in 2 cases: normal, indented paragraphs; and unindented paragraphs (such as at start of chapters). It's not possible to set the rule in epub-user.css since most of the time, the class name is something random like .calibre5 or .tx1, etc. The idea is to somewhat standardize the formatting w/o the nuclear option of "ignore document CSS".
Barty is offline   Reply With Quote