Maths(Superscript) in Cloze type Q.

Maths(Superscript) in Cloze type Q.

by Ravi Vare -
Number of replies: 18
Hi everybody,

Actually, i got couple of Threads in this forum.
But i confuse - How to apply properly

1) http://moodle.org/mod/forum/discuss.php?d=93522#p413182

This is very useful
But i stuck here

http://rishida.net/scripts/uniview/#title

Joseph, Sorry to say but i am unable to create code from this SITE
(i sure it may be very easy but .....)
Pl. say something for my purpose (see Screenshot- i have used HTML code)

Second thing is-
MCV
Table is created automatically. (Screenshot)

Pl. assist.

TIA

Ravi

P.S.
For Maths symbols in Cloze
I am trying to understand following Threads
http://moodle.org/mod/forum/discuss.php?d=66572

http://moodle.org/mod/forum/discuss.php?d=66074
Attachment Supscript in Cloze.JPG
Average of ratings: -
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
For MCV
Attachment MCV in Cloze.JPG
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Mauno Korpelainen -

I think this might be caused by your theme css - the boxes you call a table might be a part of table where feedback is given.

If the borders are shown only in MCV some of your theme css files might have code like

.multichoice td.feedback {border:1px solid;}

or some more common css rule might override core css for these feedback columns.

If you can't find any good reason you could try to add to the bottom of one of your theme css files

.multichoice td.feedback {border:0;}

to make that feedback border vanish.

Average of ratings: Useful (1)
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Mauno Korpelainen -

The main point there is that <select> element renders in selected option only plain text, unicode chracters or html entities - but not html tags.

On the other hand you need to use such font that supports those unicode characters rthat you want to use - for example Arial Unicode MS or Lucida Sans Unicode support most mathematical characters. Test this link...

You could use even programs like MS Word to add these unicode characters (Add Character...) or any unicode pickers but be careful with fonts smile

&sup1; - &sup2; - &sup3; are special cases for rendering ¹ - ² - ³

Other unicode characters are found from unicode block "Superscripts and Subscripts.

Here a sample with some font families:

⁰¹²³⁴⁵⁶⁷⁸⁹ ₀₁₂₃₄₅₆₇₈₉ ('Arial Unicode MS',helvetica,sans-serif)

¹²³⁴⁵⁶⁷⁸⁹ ₀₁₂₃₄₅₆₇₈₉ (times new roman,times,serif)

¹²³⁴⁵⁶⁷⁸⁹ ₀₁₂₃₄₅₆₇₈₉ (courier new,courier,monospace)

⁰¹²³⁴⁵⁶⁷⁸⁹ ₀₁₂₃₄₅₆₇₈₉ (verdana,arial,helvetica,sans-serif)

Average of ratings: Useful (1)
In reply to Mauno Korpelainen

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
Hei Mauno,
Thanks a lot as usual.

" ¹ - ² - ³ are special cases for rendering ¹ - ² - ³ "

I think this is very useful.

Pl. say something about
[MCV(in cloze type Q)- Table (created automatically)]


TIA

Ravi

In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Daniel McCloy -

I don't think it's right that sub/superscripts for 1,2, and 3 are special cases for rendering.  There are unicode points for them too, they just happen to live in a different block of unicode.  If you're having trouble with the character pickers, all the unicode numbers can be copied and pasted from this post.

Average of ratings: Useful (1)
In reply to Daniel McCloy

Re: Maths(Superscript) in Cloze type Q.

by Mauno Korpelainen -

Well - maybe I did not explain it "right" but in my opinion named html entities

&sup1;
&sup2;
&sup3;

definitely are special cases because they are the only named html entities for rendering single superscript or subscript characters and they are found from the Latin-1 Supplement unicode block - not among Superscripts & Subscripts unicode block smile

You can copy and paste (CTRL+C, CTRL+V) them like we both said (from any posts, from MS Word, from unicode pickers...) but you can also use directly (without copy & paste) named html entities in editor - or decimal/hex html entities, javascript etc to render them - see for example

http://www.fileformat.info/info/unicode/char/00B9/index.htm

http://www.fileformat.info/info/unicode/char/00b2/index.htm

http://www.fileformat.info/info/unicode/char/00b3/index.htm

http://www.fileformat.info/format/w3c/htmlentity.htm

http://www.fileformat.info/format/w3c/entitytest.htm

and particularly that special link (about local font support) smile

Average of ratings: Useful (1)
In reply to Mauno Korpelainen

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
Thanks Mauno and Daniel,
I am understanding and trying "all tricks" given by you.

Ravi
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
Hei Mauno amd Daniel,

Sometimes,
Preview look like as (see screenshot)
e.g.

< font size="4" >injuries< /font >< font size="4" >

Pl. Assist.
TIA

Ravi
Attachment Answer in Cloze.JPG
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
Hello,

Above problem creates because of-
my teacher copy and paste the code( {1:MC.............} )

Now i typed directly. IT is OK

Ravi
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
Hei Mauno and Daniel,

Finally, I have solved the problem for 'Subscript and Superscript '
By using

http://rishida.net/scripts/uniview/#title
(Thanks Joseph)

In Cloze Q Type.
OPTIONs should be "PURE" HTML
i.e. COPY and PASTE Makes Problem


At Last,
Thanks everybody.

Ravi
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
Hei Mauno and Everybody,

Now, We have a lot of resources to get "Superscript and Subscript"

one of them is
http://www.catalysoft.com/download/unicode-1-2.jar

very 'short and sweet' !!! OK
------------------------------------------------------------------------
But i can't find any solution for >
raised(power) to -2 and -3 (minus 2 and 3)

Plz. assist


TIA
Ravi
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Mauno Korpelainen -

Well, there is an unicode character called SUPERSCRIPT MINUS - see http://www.fileformat.info/info/unicode/char/207B/index.htm

So if you add to your quiz for example x&#x207b;&sup2; it will be shown as x⁻² and x&#x207b;&sup3; is shown as x⁻³

Or like before you can copy and paste x⁻² and x⁻³ directly to your quiz... smile

Average of ratings: Useful (1)
In reply to Mauno Korpelainen

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
thanks Mauno,
Its Working.

But small "RED" dot appeared.

e.g.

X & # x 2 0 7 b ; & s u p 3 ;
(pl. neglect spaces)

appeared as (pl. See in screenshot)


Ravi
Attachment raised to minus.JPG
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Mauno Korpelainen -

Did you copy

x&#x207b;&sup3;

directly to editor from my previous post? I used there red color to mark html entity &#x207b;  - without red color the plain code is (for example)

x&#x207b;&sup3;

I don't get any red color there...

x⁻³

In reply to Mauno Korpelainen

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
I am typing directly.

My Process is

1) In moodle html editor - i click on " <> "
2) then i type 100 & # x 2 0 7 b ; & s u p 3 ; (Neglect Spaces)
3) Then i click on " <> "
Then i get (see screen shot)

Thanks as usual

Ravi
Attachment power to 100.JPG
In reply to Ravi Vare

Re: Maths(Superscript) in Cloze type Q.

by Mauno Korpelainen -

I really have no idea - what does that html source look like (or the code when you pressed <> ) ?

Spellchecker?

I have never seen such red "ticks" and can't reproduce this - which browser is it?

In reply to Mauno Korpelainen

Re: Maths(Superscript) in Cloze type Q.

by Ravi Vare -
Thanks for Response, Mauno,
It is Firefox 4.0
I also think, It may be spellchecker

Ravi
In reply to Mauno Korpelainen

Re: Maths(Superscript) in Cloze type Q.

by Daniel McCloy -

ah, now I see your point about them being special case.  I had forgotten about the named HTML entities, and was thinking of a narrower meaning of "rendering."