2011/8/26 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hehe.<br><br>I don&#39;t think we should burden ourselves with handling of every UNICODE nuance after all :)<br><br>Perhaps a clear warning in the documentation for spreadsheet based decision tables alerting the user to the problem of &quot;smart&quot; quotes&quot; would be enough?<br>
</blockquote><div><br>There are cells where most variants of double quote (especiall double high-9 or 6) could be silently transformed (especially if there is no U+0022 in that cell) or cause a warning.<br><br>As for data cells, anything is possible. An alternative form for parameter insertion might solve this problem, and also an option could be considered. <br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I suspect we have certain assumptions about the code-points of all the punctuation in our DRL grammer.<br>
</blockquote><div><br>Special characters and digits: yes. Letters for identifiers according to Java. Not sure whether all variants of &quot;space&quot; are permitted. <br><br>It would help a lot if the lexer/parser would add the code point where it hiccups on a single character. Consider:<br>
<font face="sans-serif" size="2">   [ERR 101] Line 12:19 no viable alternative at input &#39;&#39;</font> (U+201E)<br><br>-W<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>What do you think?<br><br><div class="gmail_quote"><div class="im">2011/8/26 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span><br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Michael,<br><br>may I point you to <a href="http://unicode.org/uni2book/ch06.pdf" target="_blank">http://unicode.org/uni2book/ch06.pdf</a> and don&#39;t shy away from the intricacies of double quotes in all the world&#39;s languages ;-)<br>


<br>Quotes, in a spreadsheet&#39;s text fields, are punctuations in the author&#39;s language and usually not delimiters of some programming language. Using a spreadsheet for collecting code snippets is not the everyday use case.<br>

<font color="#888888">
<br>-W</font><div><div></div><div><br><br><br><div class="gmail_quote">2011/8/26 Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com" target="_blank">michael.anstis@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can you be certain the author of the spreadsheet has not entered the erroneous, although cosmetically similar, quotation marks?<br><br>I find it unlikely Open Office Spreadsheet chooses to use ASCII quotation marks in some places but UNICODE, visually similar but otherwise completely different, in others.<div>


<div></div><div><br>
<br><div class="gmail_quote">2011/8/26 Manohar Kokkula <span dir="ltr">&lt;<a href="mailto:manohar.kokkula@tcs.com" target="_blank">manohar.kokkula@tcs.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">I am using Open Office Spreadsheet to create decision table. So what should i do to resolve this..<br>Please help me on this.<div><br>
<span><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><font style="font-family: Arial,Default Sans Serif,Verdana,Arial,Helvetica,sans-serif;" face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="3"><font color="#ff33cc"></font><p>



<font color="#ff33cc"><br><br><br><br><br><br><font color="#000000">Regards,</font></font><br><font color="#ff33cc"><font color="#000000">Manohar Kokkula</font></font><br><font color="#ff33cc"><font color="#000000">Mailto: <a href="mailto:manohar.kokkula@tcs.com" target="_blank">manohar.kokkula@tcs.com</a></font></font><font color="#ff33cc"><font color="#000000"></font></font><br>



</p></font></font></span><br></div><font color="#990099">-----<a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a> wrote: -----</font><div><blockquote style="border-left: 2px solid black; padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">



To: Rules Users List &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br>From: Wolfgang Laun <u></u><br><div>Sent by: <a href="mailto:rules-users-bounces@lists.jboss.org" target="_blank">rules-users-bounces@lists.jboss.org</a><br>



</div>Date: 08/26/2011 12:26AM<div><br>Subject: Re: [rules-users] Error is Java.lang.RuntimeException<br><br></div><div><div></div><div>Heh :) Looking at the DRL, I spotted it:<br><br><font face="sans-serif" size="2">&gt; rule <b>&quot;</b>Allocation Rules_10<b>&quot;</b></font>
<br><font face="sans-serif" size="2">&gt;       when</font>
<br><font face="sans-serif" size="2">&gt;         
      $s:Student(marks == <b>&quot;</b>60&quot;, age ==
&quot;20&quot;)</font>
<br><font face="sans-serif" size="2">&gt;         
      $c:College(ranking == &quot;A&quot;, location
== &quot;Mumbai&quot;)</font>
<br><font face="sans-serif" size="2">&gt;        then<br><br>Up there, all quotes are ASCII quotes, code point U+0022. <br></font> <br><font face="sans-serif" size="2">&gt;         
      $s.setDepartment(“Maths”);</font>
<br><font face="sans-serif" size="2">&gt;         
      $c.setStatus(“NA”);<br><br>But in your spreadsheet you have one of the several other quotation marks as defined by the unicode standard, the one the authors of your spreadsheet program deemed fit to be sneaked in when you hit shift-2 (or whatever, depending on your keyboard).</font><br>




<br><div class="gmail_quote">On 25 August 2011 16:21, FrankVhh <span dir="ltr">&lt;<a href="mailto:frank.vanhoenshoven@agserv.eu" target="_blank">frank.vanhoenshoven@agserv.eu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




Shouldn&#39;t marks and age be integer values and not Strings?<br></blockquote><div>No, these are converted automatically.<br><br>-W<br><br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3283990.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-no-subject-tp3280773p3283990.html</a><br>





Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
</font><div><div></div><div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>
<pre>_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre><u></u></div></div></blockquote></div><div></div></font><div><div></div><div><pre style="white-space: normal;">=====-----=====-----=====<br>Notice: The information contained in this e-mail<br>message and/or attachments to it may contain <br>



confidential or privileged information. If you are <br>not the intended recipient, any dissemination, use, <br>review, distribution, printing or copying of the <br>information contained in this e-mail message <br>and/or attachments to it are strictly prohibited. If <br>



you have received this communication in error, <br>please notify us by reply e-mail or telephone and <br>immediately and permanently delete the message <br>and any attachments. Thank you<br><br><br></pre>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>