Thread: Regex examples
View Single Post
Old 04-08-2012, 05:30 AM   #38
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 1,444
Karma: 846401
Join Date: Jan 2009
Device: KoboGlo
Thanks for your answers. Some needed comments maybe:

These two regex are about dropcaps, but I have others...

FR1 is to deal with the first letter of a paragraph named let (no indent). It begins after <p class="let"> and it creates a double span, finishing with </span></span> after the first capital letter.

FR2 specifies the number of words to use after the first letter (here 4). It begins with the characteristic </span></span> and builds itw own span. I have both A et V styles with different margin-left values.

@theducks I took good note of your remark.

There is no quotemark problem at least for me. When I select a paragraph to have a dropcap, I make sure it begins with a capital letter. :firstletter anyway does not work with ADE so there is no automatic mode for this.

text sample coming...

Last edited by roger64; 04-08-2012 at 05:58 AM.
roger64 is offline   Reply With Quote