View Single Post
Old 06-02-2012, 02:28 PM   #27
PatNY
Zennist
PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.PatNY ought to be getting tired of karma fortunes by now.
 
PatNY's Avatar
 
Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
DiapDealer, thanks for your help. Your formula works well in Sigil, but not in EditPad Pro. It won't throw up an error message like before, but it doesn't give intended results. Instead, using the same replace string that Timur had provided, I will get this:

Code:
 <navPoint class="chapter" id="navpoint-2" playOrder="1">
      <navLabel>
        <t\Lext>TITLE\E P\LAGE\E</text>
      </navLabel>
      <content src="OEBPS/002-titlepage.html"/>
    </navPoint>
    <navPoint class="chapter" id="navpoint-3" playOrder="2">
      <navLabel>
        <t\Lext>DEDICATION\E</text>
      </navLabel>
      <content src="OEBPS/003-dedicationpage.html"/>
    </navPoint>
instead of this which Sigil will result in:

Code:
 <navPoint class="chapter" id="navpoint-2" playOrder="1">
      <navLabel>
        <text>Title Page</text>
      </navLabel>
      <content src="OEBPS/002-titlepage.html"/>
    </navPoint>
    <navPoint class="chapter" id="navpoint-3" playOrder="2">
      <navLabel>
        <text>Dedication</text>
      </navLabel>
      <content src="OEBPS/003-dedicationpage.html"/>
    </navPoint>
EditPad Pro seems to be using some finicky kind of Regex. I had no idea there were various forms of regex.

If someone can figure out a fix that works in EditPad Pro, great. Otherwise, I'll just continue to use Sigil to get title case in the metadata TOCs.
PatNY is offline   Reply With Quote