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