KQMATH / moodle-qtype_stack

:trident: Fork of the STACK question type for Moodle
GNU General Public License v3.0
1 stars 0 forks source link

Decimal comma #6

Open hgeorgsch opened 4 years ago

hgeorgsch commented 4 years ago

STACK does not accept decimal comma for floating point numbers, only the decimal point. This is uncontroversial as long as the code written is maxima code. Introducing the WYSIWYG interface, the student should be writing in the same language and notation as the question is phrased in, and the decimal comma is used in most languages. Ideally, decimal comma should be used in both input and output depending on the student's language setting. For most purposes, however, it would suffice to let tex2max translate the decimal comma into a decimal point.

andstor commented 4 years ago

I have created an issue in tex2max: KQMATH/tex2max#50.

andstor commented 4 years ago

The logic in TeX2Max has now been resolved. I will shortly make a new TeX2Max release and then update Stack.

hgeorgsch commented 4 years ago

Is this completed? Does it, BTW, depend on language settings?

andstor commented 4 years ago

No, the release is still pending, and the logic needs to be implemented in STACK 😅

In the new version, TeX2Max allows both point and comma signs (although, it's configurable). The output is transpiled to points, as Maxima only supports point symbols. It should therefore be straight forward to just update the TeX2Max scripts in STACK.

By supporting both types, I don't think it's necessary to depend on language settings... Or?

hgeorgsch commented 4 years ago

Probably not. As long as nobody comes up with problems where comma is used for something else, we should be safe.

For consistency, it would be an advantage to only accept comma for language which really use comma, as that is what is done in the calculated qtype. This is low priority though.