- Posts: 39
- Thank you received: 3
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
How to display mathematical terms correctly?
- mariaa
- Topic Author
- Offline
- Junior Member
Less
More
5 years 2 months ago #180325
by mariaa
How to display mathematical terms correctly? was created by mariaa
Hi all,
I´d like to create a mathematical quiz for students in limesurvey.
But when I paste the mathematical terms into lime survey, they are displayed differently.
:
Here you have an example of what the term should look like:
and what it actually looks like after having pasted it into limesurvey :
This problem also affects fractions and other mathematical terms.
Do you know a solution to solve this problem?
Thanks a lot for sharing your ideas with me.
Kind regards and thanks a lot
Maria
I´d like to create a mathematical quiz for students in limesurvey.
But when I paste the mathematical terms into lime survey, they are displayed differently.
:
Here you have an example of what the term should look like:
and what it actually looks like after having pasted it into limesurvey :
This problem also affects fractions and other mathematical terms.
Do you know a solution to solve this problem?
Thanks a lot for sharing your ideas with me.
Kind regards and thanks a lot
Maria
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 2 months ago #180333
by jelo
Cut and paste will not work in most cases.
Most common approach is to create an image for every math equation.
Newer technologies are available, but might not work in the browser your respondents are using.
developer.mozilla.org/en-US/docs/Web/MathML
Some symbols can be accessed in the UTF fonts (even older browsers can display them).
www.w3schools.com/charsets/ref_utf_math.asp
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic How to display mathematical terms correctly?
This issue is unrelated to LimeSurvey. It's a HTML Browser issue.mariaa wrote: But when I paste the mathematical terms into lime survey, they are displayed differently.
Cut and paste will not work in most cases.
Most common approach is to create an image for every math equation.
Newer technologies are available, but might not work in the browser your respondents are using.
developer.mozilla.org/en-US/docs/Web/MathML
Some symbols can be accessed in the UTF fonts (even older browsers can display them).
www.w3schools.com/charsets/ref_utf_math.asp
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: DenisChenu, mariaa
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13635
- Thank you received: 2491
5 years 2 months ago #180344
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to display mathematical terms correctly?
Seems include MathML directly in source code is OK, just need
1. No XSS protection
2. add the declaration line
I just quickly test on Firefox
1. No XSS protection
2. add the declaration line
I just quickly test on Firefox
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Attachments:
The following user(s) said Thank You: mariaa
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
5 years 2 months ago #180352
by jelo
But mariaa should use MathML only if respondents are using a predefined browser.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic How to display mathematical terms correctly?
XSS protection and AJAX mode are the first things you need to disable to get LS in a usable state. Sad, but true.DenisChenu wrote: 1. No XSS protection
But mariaa should use MathML only if respondents are using a predefined browser.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Attachments:
The following user(s) said Thank You: DenisChenu, mariaa
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13635
- Thank you received: 2491
5 years 2 months ago #180377
by DenisChenu
We already disable XSS for super-admin : i think it's OK, but not for other admin (by default) : think it's OK too.
About MathML : how great firefox \o/
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic How to display mathematical terms correctly?
Yes but we STILL must disable XSS for common admin user . Because it muts be a decision to allow any admin usere to put XSS and javascript .jelo wrote:
XSS protection and AJAX mode are the first things you need to disable to get LS in a usable state. Sad, but true.DenisChenu wrote: 1. No XSS protection
We already disable XSS for super-admin : i think it's OK, but not for other admin (by default) : think it's OK too.
About MathML : how great firefox \o/
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- mariaa
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 3
5 years 2 months ago #180456
by mariaa
Replied by mariaa on topic How to display mathematical terms correctly?
Hi Jelo,
thanks a lot for your help! Creating images of the equations seems to be the easiest option. I`ll try thar
thanks a lot for your help! Creating images of the equations seems to be the easiest option. I`ll try thar
The topic has been locked.
- mariaa
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 3
5 years 2 months ago #180458
by mariaa
Replied by mariaa on topic How to display mathematical terms correctly?
Thanks a lot Denis!
Since I´ve never used MathML before but if Jelo´s suggestion ( creating an image for every math equation) is not working, I´ll get to grips with this topic.
Since I´ve never used MathML before but if Jelo´s suggestion ( creating an image for every math equation) is not working, I´ll get to grips with this topic.
The topic has been locked.