<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    What are you doing exactly? If you try to convert the ref to osisRef
    Dominique wrote an awk script which works pretty good.<br>
    See the attached file.<br>
    <br>
    <div class="moz-cite-prefix">Le 01/02/2020 à 18:06, Maxwell Murunga
      a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMYRk0H1ygRmiWdtTM_7uyAkMk-12e4mUEp=0Txeyh5q+eG6rg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr"><span style="background-color:rgb(255,255,255)"><font
            style="" face="tahoma, sans-serif" color="#000000">Greetings
            Saints,</font></span>
        <div><font face="tahoma, sans-serif" color="#000000"><span
              style="background-color:rgb(255,255,255)"><br>
            </span></font>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000">I'm processing
              an OSIS Commentary in InDesign using GREP:<br>
            </font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000"><br>
            </font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="monospace" color="#000000"><b style="">Find: </b>((\d+
              )?(\w+?.? \d+[:]\d+)(.\d+)?([, \d]+(.\d+)?)*)</font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="monospace" color="#000000"><b style="">Replace:</b> &lt;reference
              osisRef="$1"&gt;$1&lt;/reference&gt;</font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000"><br>
            </font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000">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 style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000"><br>
            </font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000">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 style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000"><br style="">
              &lt;<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"&gt;Genesis
              1:1&lt;/<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>&gt;<br>
            </font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000">&lt;<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"&gt;2 Chronicles 1:1&lt;/<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>&gt;</font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000">&lt;<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"&gt;II
              Chronicles 1:1&lt;/<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>&gt;<br
                style="">
              <br>
            </font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000">In Christ Alone,<br>
            </font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000"><br>
            </font></div>
          <div><font style="background-color:rgb(255,255,255)"
              face="tahoma, sans-serif" color="#000000">Maxwell.</font></div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page</pre>
    </blockquote>
    <br>
  </body>
</html>