<div dir="ltr"><span style="background-color:rgb(255,255,255)"><font face="tahoma, sans-serif" style="" color="#000000">Greetings Saints,</font></span><div><font color="#000000" face="tahoma, sans-serif"><span style="background-color:rgb(255,255,255)"><br></span></font><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif">I'm processing an OSIS Commentary in InDesign using GREP:<br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif"><br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="monospace"><b style="">Find: </b>((\d+ )?(\w+?.? \d+[:]\d+)(.\d+)?([, \d]+(.\d+)?)*)</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="monospace"><b style="">Replace:</b> <reference osisRef="$1">$1</reference></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif"><br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif">It partially accomplishes the task, but does not automatically convert the book names to the standard OSIS abbreviations. I also need help in figuring out how to add looking for Arabic and Roman numerals (1-2 instances of the letter "I"; or simply "1" or "2" ) to cover instances of something like I Corinthians or II Corinthians; 1 Corinthians or 2 Corinthians.</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif"><br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif">Could anyone be so kind enough as to provide a <b>grep</b> or <b>sed</b> script to <span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">auto</span> convert any kind of Bible <span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span> into this format:<br></font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000"><br style=""><<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span> osisRef="Gen.1.1">Genesis 1:1</<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span>><br></font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000"><<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span> osisRef="2Chr.1.1">2 Chronicles 1:1</<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span>></font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000"><<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span> osisRef="2Chr.1.1">II Chronicles 1:1</<span class="gmail-bold gmail-highlight gmail-search-highlight" style="font-weight:bold;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial">reference</span>><br style=""><br></font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="tahoma, sans-serif">In Christ Alone,<br></font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000"><br></font></div><div><font face="tahoma, sans-serif" style="background-color:rgb(255,255,255)" color="#000000">Maxwell.</font></div></div></div>