View Single Post
Old 02-11-2014, 07:18 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,733
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Jpax View Post
Anyone here knows any program where I can do automation for <idx:entry> tagging.
You can use any text editor with regular expression support, for example, Notepad Plus.
Select Regular Expressions as the search mode and use the following parameters:

Find what:

Code:
<p class="rev"><span class="textStyle12">(.*?)</span>\s+<span class="textStyle25">(.*?)</span> <span class="textStyle13">(.*?)</span></p>
Replace with:

Code:
<idx:entry>\n<p class="rev"><span class="textStyle12"><idx:orth>\1</idx:orth></span> <span class="textStyle25">\2</span> <span class="textStyle13">\3</span></p>\n<idx:key key="\1">\n</idx:entry>
Doitsu is offline   Reply With Quote