Thread: Regex examples
View Single Post
Old 05-02-2019, 05:29 PM   #572
famfam
Connoisseur
famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.famfam ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 2178856
Join Date: Oct 2013
Device: Kobo Clara HD
Quote:
Originally Posted by Doitsu View Post
If your reading app supports pseudo elements, you don't need to use any regular expressions at all. Simply add the following code to your main style-sheet:

Code:
p::first-letter {font-size: 2em; font-weight: bold; }
@ Doitsu
I'm not sure if it works on my Kobo Clara HD or not, and if so, how? I think it worked once or twice, but most of my examples do not seem to work. But it works on Sigil and the Calibre Editor. Any idea?

@ Klecks
What you think about it? Your solution works nearly perfect for the most sentences within the texts, but not for the first letters [A-Z] or numbers [0-9] of paragraphs. Is that so?
If yes, what about a regex-solution for it? Any idea?

Last edited by famfam; 05-02-2019 at 05:33 PM.
famfam is offline   Reply With Quote