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

Daniel Merino daniel.merino at unavarra.es
Wed Nov 14 02:52:59 PST 2012


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.


More information about the sakai-dev mailing list