<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Samuel<br>
      <br>
      Good points with the "rich" text. I don't know how to locate
      these.<br>
      <br>
      If Scinotes / Scilab 6.0 is sensitive to this, could it maybe
      include a "cleaner" for such stuff?<br>
      <br>
      Best regards,<br>
      Claus<br>
      <br>
      On 08-09-2017 00:25, Samuel Gougeon wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:8be601c5-f6cb-307f-03d0-31aca7fada64@free.fr">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-text-html" lang="x-western">
        <div class="moz-cite-prefix">Le 07/09/2017 à 23:14, Samuel
          Gougeon a écrit :<br>
        </div>
        <blockquote
          cite="mid:1287dd59-fbf4-2c77-9c19-451234393ce5@free.fr"
          type="cite">
          <div class="moz-cite-prefix">Le 06/09/2017 à 21:33, Claus
            Futtrup a écrit :<br>
          </div>
          <blockquote
            cite="mid:3e8abc85-aa3b-dc79-62dc-b1822c663c4a@gmail.com"
            type="cite">
            <p>Hi there</p>
            <p>I've started to use the prettify functions by Pierre
              Vuillemin. So far so good in Scilab 5.5</p>
            <p>Now I've started to look into Scilab 6 (not least because
              graphics is much faster), but I get a weird error.</p>
            <p>If I start Scilab, first time I execute the code, I get
              an "Invalid buffer." message.</p>
            <p>Second time I execute the code then I get a bad message:</p>
            <p><br>
            </p>
            <p>-->
              exec('C:\Users\claus\Documents\Scilab54\z3mfit.sce', -1)<br>
              at line    93 of executed file
              C:\Users\claus\Documents\Scilab54\z3mfit.sce<br>
              <br>
                                          'labels_font_size'  ,  3,...<br>
                                          ^^<br>
              Error: syntax error, unexpected "'", expecting "," or )<br>
            </p>
            <p><br>
            </p>
            <p>When I run my script, the first thing my code does - it
              clears all variables, all graphics and clears console, so
              it's not "old" stuff from previous run that is the
              problem. Or ???</p>
            <p>The "line 93" is part of the default options in Prettify,
              where it says labels_font_size. It looks like this:</p>
            <pre style="font-family:Monospaced;font-style:normal;font-size:16.0;"><span style="color:rgb(0,0,0);">default_options</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">struct</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">title_font_size</span><span style="color:rgb(188,143,143);">'</span>   <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">4</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">labels_font_size</span><span style="color:rgb(188,143,143);">'</span>  <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">3</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">thicks_font_size</span><span style="color:rgb(188,143,143);">'</span>  <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">2</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">num_format</span><span style="color:rgb(188,143,143);">'</span>        <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">leg_font_size</span><span style="color:rgb(188,143,143);">'</span>     <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">3</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">line_thickness</span><span style="color:rgb(188,143,143);">'</span>    <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">2</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(255,170,0);">...</span>
                         <span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">xstring_font_size</span><span style="color:rgb(188,143,143);">'</span> <span style="color:rgb(0,0,0);">,</span>  <span style="color:rgb(188,143,143);">2</span><span style="color:rgb(74,85,219);">)</span></pre>
          </blockquote>
          <br>
          Weird errors sometimes occur after copying/pasting some code
          from a rich text formated document to Scinotes or the console.
          Some usual characters like the space or quotes may have some
          special encoding in formated text, and keep it in Scinotes,
          but are not aknowledged by the parser.<br>
          The last time i got this situation, it was about spaces  that
          looked like spaces, but that were not ascii(32). To avoid
          this, i pasted the text in a raw text unformated .txt file
          before copying/pasting in Scinotes.<br>
          <br>
        </blockquote>
        <br>
        If you have copied/pasted some code directly from the web (like
        Pierre's Github page), it could be a source of encoding bugs:
        Web pages often use unbreakable spaces (&nbsp; in HTML). I
        am pretty sure that Scilab's parser doesn't like them.<br>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>