[Building Sakai] Samigo - SAM-902 (LaTEX at Numeric answer questions) not properly fixed

Karen Tsao ktsao at stanford.edu
Wed Nov 14 09:22:57 PST 2012


Hi Daniel,

I think the fix in SAM-902 cannot fix your issue. That is to fix brackets
inside HTML img tag issue. LaTEX formulas can be quite complex. Please log
a new JIRA for your issue.

Thanks,
Karen

On Wed, Nov 14, 2012 at 2:52 AM, Daniel Merino <daniel.merino at unavarra.es>wrote:

> Good morning.
>
> We have received some feedback about LaTEX formulas that don't work in
> Numeric Answers questions in Samigo. I.e. the next html code doesn't
> work when creating a question:
>
> Calcula&nbsp;<img align="absmiddle"
> alt="P\left(\frac{\bar{X}-\mu}{\sigma/\sqrt{n}} &lt; 0.12\right)"
> src="
> http://latex.codecogs.com/gif.latex?P%5Cleft(%5Cfrac{%5Cbar{X}-%5Cmu}{%5Csigma/%5Csqrt{n}}&amp;space;&lt;&amp;space;0.12%5Cright)
> "
> /> = {0.52}<br />
>
> Looking at SAM-902 ( https://jira.sakaiproject.org/browse/SAM-902 ) I
> can see that this has been fixed for 2.8 and a new method
> getFIBFINanswers() has been added to ItemAddListener.java, to parse
> brackets in HTML, so they are not parsed as the answer brackets.
>
> However, after applying the patch, I receive the same error message.
> Looking in the code, it seems that before parsing brackets, method
> isErrorFIN() is called also in ItemAddListener and it just checks the
> brackets opening and closening, so two opened brackets in a row cause
> the issue, no matter if the total count of opened an closed brackets
> matches.
>
> I tell you this at sakai-dev instead of putting a comment in the JIRA
> because I don't know if this method has been fixed in any other JIRA. If
> it is, please could you tell me where is it? If not, I can write a
> comment at SAM-902 about this.
>
> Thanks and best regards.
> --
> Daniel Merino Echeverría
> daniel.merino at unavarra.es
> Gestor de teleformación - Centro Superior de Innovación Educativa.
> Tfno: 948-168489 - Universidad Pública de Navarra.
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20121114/cb18a340/attachment.html 


More information about the sakai-dev mailing list