<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      Please see my answer below.<br>
      <br>
      Best regards,<br>
      Alex<br>
      <br>
      On 26-Oct-13 5:50 AM, Robert Nagle wrote:<br>
    </div>
    <blockquote
cite="mid:CAP2RqWOe5LUa=+0+GpDHdmLi_z-zVW6yW_jvhYK_8CUyvfSw4w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>Hi, there, I was happy to notice that in version
                    15 you now have Autocorrect Preferences for
                    autocorrecting smart quotes. <br>
                    <br>
                  </div>
                  But I'm not sure how to use it properly. <br>
                  <br>
                </div>
                First, does this autocorrect option only work in Author
                Mode? When you go in Author Mode, will it automatically
                change all existing quotes appearing in rendered text
                (as opposed to elements) into smart quotes? <br>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    The feature is only available in author mode and only when typing in
    text content. When the user types a single or double quote it will
    be replaced automatically with a substitute (the smart quote). This
    smart quote support is disabled by default but can be enabled and
    configured from Preferences-&gt;Editor / Edit modes / Author /
    AutoCorrect. If a smart quote was inserted but you don't want one
    there you can just hit UNDO (Ctrl+Z) and it will be replaced with
    the standard quote.<br>
    <blockquote
cite="mid:CAP2RqWOe5LUa=+0+GpDHdmLi_z-zVW6yW_jvhYK_8CUyvfSw4w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <br>
              </div>
              Second, a more basic question. Can I assume that whenever
              I am editing an attribute of an element that this
              Autocorrect option will not change it? <br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    The support will not alter attribute values.<br>
    <blockquote
cite="mid:CAP2RqWOe5LUa=+0+GpDHdmLi_z-zVW6yW_jvhYK_8CUyvfSw4w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div><br>
            </div>
            Actually, a third question which is even more elementary. If
            I were to do a global substitution which resulted in
            attribute quotes as having smart quotes instead of normal
            quotes, would the parser still process it normally? <br>
          </div>
        </div>
      </div>
    </blockquote>
    The quotes that surround an attribute value must not be changed into
    smart quotes as the parser will not process such attributes. But I
    think that if you want to do such a global substitution there are
    ways you can stop that from happening. For example in Oxygen's "Find
    and Replace" dialog you can use an XPath to restrict the scope to
    text nodes : //text() . Then you can use Regular expressions to
    replace the quotes:<br>
    - the start quote. Text to find:&nbsp; (\s)" and Replace with: $1\u201c <br>
    - the end quote. &nbsp; Text to find: (\S)" and Replace with: $1\u201d<br>
    <blockquote
cite="mid:CAP2RqWOe5LUa=+0+GpDHdmLi_z-zVW6yW_jvhYK_8CUyvfSw4w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <br>
          </div>
          I publish a lot of fiction by myself and others. I often do a
          lot of writing and editing both in editor mode as well as
          author mode. (I often don't notice what mode I am in). <br>
        </div>
      </div>
    </blockquote>
    I'll add a feature request to support the smart quote feature in
    text mode too.<br>
    <blockquote
cite="mid:CAP2RqWOe5LUa=+0+GpDHdmLi_z-zVW6yW_jvhYK_8CUyvfSw4w@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        Thanks for your help.<br>
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div><br>
                    <h1 class=""><br>
                    </h1>
                    <br clear="all">
                    <div><br>
                      -- <br>
                      Robert Nagle<br>
                      6121 Winsome Ln #56C, Houston TX 77057-5581<br>
                      (H) 713 893 3424/ (W) 832-251-7522 Carbon Neutral
                      Since Jan 2010<br>
                      <a moz-do-not-send="true"
                        href="http://www.robertnagle.info"
                        target="_blank">http://www.robertnagle.info</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
oXygen-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-user@oxygenxml.com">oXygen-user@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-user">http://www.oxygenxml.com/mailman/listinfo/oxygen-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>