Hi Mark, 

> Do you have any ideas why the error? Is this something that only works well 
> under
> windows or a certain browser? I’m running LC 2.11.0.

I’d guess that’s some kind of encoding issue related to the unicode characters. 
It works fine under Safari 8.0 and firefox 30.0 and 34.0.5 running on OS X 
10.10.1

I’ve published the demo problem (/res/fhwf/droeschl/misc/addchars.problem), 
imported it in a test course which I logged into on capa7.phy.ohiou.edu and was 
able to answer it without any error.

Only when I explicitly set the character encoding to e.g. “Western” (in FF: 
View -> Character Encoding) instead of "Unicode" I get the behaviour you 
described. 

Stefan




> On 06 Dec 2014, at 04:55, Lucas, Mark <luc...@ohio.edu> wrote:
> 
> Stefan,
> 
> Thanks for the suggestion. I did not realize “addchars” existed.
> 
> Unfortunately under firefox and maces 10.9 I get
> 
> ERROR: Computer's answer is incorrect ("ω+α*t").
> This error occurred while processing response 1_5 in part 0
> 
> and
> 
> Unable to understand formula
> 
> in the response to the answer.
> 
> Do you have any ideas why the error? Is this something that only works well 
> under
> windows or a certain browser? I’m running LC 2.11.0.
> 
> Thanks,
> Mark
> On Dec 4, 2014, at 10:21 AM, Stefan Dröschler <st.droesch...@ostfalia.de> 
> wrote:
> 
>> Hi Mark,
>> 
>> yes, there’s a way:
>> 
>> <problem>
>> 
>> <script type="loncapa/perl">
>> $answer="ω+α*t";
>> </script>
>> 
>> <startouttext />
>> <p><m>$\omega + \alpha t$</m></p>
>> <endouttext />
>> 
>> <formularesponse answer="$answer">
>>    <textline size="25"  addchars="α,ω"/>    
>> </formularesponse>
>> 
>> </problem>
>> 
>> 
>> -- 
>> Stefan Dröschler
>> 
>> Ostfalia Hochschule für angewandte Wissenschaften
>> Hochschule Braunschweig/Wolfenbüttel
>> ZeLL - Zentrum für erfolgreiches Lehren und Lernen
>> Salzdahlumer Str. 46/48
>> Büro: Am Exer 10d
>> 38302 Wolfenbüttel
>> 
>> Fon: ++49 5331 939 17250
>> http://www.ostfalia.de/zell
>> 
>>> On 04 Dec 2014, at 14:54, Lucas, Mark <luc...@ohio.edu> wrote:
>>> 
>>> Is there a way to include greek characters in a formularesponse answer?
>>> 
>>> I have a teacher who is looking to include omega and alpha in the answer
>>> for a rotational motion problem.
>>> 
>>> My gut feeling is that the answer is no, but I thought I’d check.
>>> 
>>> Mark
>>> -- 
>>> Mark Lucas                                                          email: 
>>> luc...@ohiou.edu
>>> 252D Clippinger Lab                                         phone: 
>>> (740)597-2984
>>> Department of Physics and Astronomy         fax: (740)593-0433
>>> Ohio University
>>> Athens, OH 45701
>>> 
>>> _______________________________________________
>>> LON-CAPA-users mailing list
>>> LON-CAPA-users@mail.lon-capa.org
>>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
>> 
>> _______________________________________________
>> LON-CAPA-users mailing list
>> LON-CAPA-users@mail.lon-capa.org
>> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users
> 
> -- 
> Mark Lucas                                                            email: 
> luc...@ohiou.edu
> 252D Clippinger Lab                                           phone: 
> (740)597-2984
> Department of Physics and Astronomy           fax: (740)593-0433
> Ohio University
> Athens, OH 45701
> 
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users@mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

Reply via email to