Go back to previous page
Forum URL: http://www.eyrie-productions.com/Forum/dcboard.cgi
Forum Name: The Legacy of Korra
Topic ID: 74
Message ID: 6
#6, RE: New Bits
Posted by Gryphon on Aug-06-14 at 09:11 AM
In response to message #5
>I don't know what text editor you work with, but Notepad++ on Windows
>has usefully robust regex search capabilities. I believe that using a
>search and replace with the regex option, using the text between the
>double quotes, would have the desired effect:
>
>Find: "(\s)-(\w+)-(\s)"
>Replace with: "\1<i>\2</i>\3"

Hmm, I'll have to try that; I don't use that editor, but the one I do use does regular expressions too (which is how I was able to semi-automate paragraph wrapping, albeit only to a point). The emphasis thing is only one of several tedious things about reformatting a long plaintext piece (it's an involved enough process that even with better automation, repackaging the whole giant back catalog's simply not going to happen), but it would certainly help. Thanks.

--G.
-><-
Benjamin D. Hutchins, Co-Founder, Editor-in-Chief, & Forum Mod
Eyrie Productions, Unlimited http://www.eyrie-productions.com/
zgryphon at that email service Google has
Ceterum censeo Carthaginem esse delendam.