Replace Fractions

Automatically replace custom-built with standard fractions.

Use the following regex to replace common fractions built by hand with the dedicated UTF8 character.

  1. Open Find/Replace in Files.
  2. Enter the following regex in Find:
    <hi\s+rend="superscript"\s*>\s*1\s*</hi>\s*\/\s*<hi\s+rend="subscript"\s*>\s*2\s*</hi>
  3. Use the following for Replace:
    ½
  4. Modify the regex as needed for ¼ and ¾.