You're welcome!
This is how I usually use Regex to add the "dropcap" code (be sure to check the "case sensitive" box and change the class to whatever is used in your file for the first paragraph in each chapter and change the "h1" to whatever is used in your file):
Search:
</h1>\s+<p class="noindent">([A-Z])
Replace:
</h1> <p class="noindent"><span class="dropcap">\1</span>
Then I also do this (to add the beginning quotation mark, if any):
Search:
</h1>\s+<p class="noindent">([“])
Replace:
</h1> <p class="noindent"><span class="dropcap">\1</span>
Then click the "Beautify Files" icon to arrange all the codes in the file to be spaced nicely.
I'm sure someone probably has a better way to do this, but I try to keep things simple. The above codes won't work if <h?> is not used for the chapter heading. In that case, you would need to do something a little different using Regex, or you might not be able to add a dropcap using Regex (as far as I know...like when "calibre1" or similar class is used for the class for every line in the file, including the chapters, etc).
|