View Single Post
Old 08-11-2023, 09:59 AM   #1694
nabsltd
Fanatic
nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.nabsltd ought to be getting tired of karma fortunes by now.
 
Posts: 528
Karma: 9529956
Join Date: Aug 2013
Location: Hamden, CT
Device: Kindle Paperwhite (11th gen), Scribe, Kindle 4 Touch
Quote:
Originally Posted by DNSB View Post
For one of the people I mentioned, I modified an ePub ebook changing most of the <em> tags to <i>. Pretty mindless search for <em, check if it is a name or other item that is supposed to be italic, modify or leave and move on to the next.
My first pass is to look for <em>[A-Z] to find capital letters. This finds titles, ship names., etc.

Since those sorts of things are often repeated, I scan through the find results (Expression Web lists them all in a box) and add each unique one to a regex in a text editor:
Code:
<em>{(New York Times|Titanic|Star Wars)}</em>
The replace is:
Code:
<i>\1</i>
This leaves a lot fewer to check manually.

I'd really like the ability to search for a misspelled word in a em tag, to help find foreign words and phrases that should be italicized.
nabsltd is offline   Reply With Quote