UA-eMath / eMath

new eMath system
2 stars 0 forks source link

Icons from Theorems / Definitions / etc to videos, explanations, etc #135

Open bohungi opened 3 years ago

bohungi commented 3 years ago

At one time we discussed possible approaches to linking supporting ISO's from Theorems, Definitions, etc. - I think, we considered using icons as link anchors. How far are you toward implementing those?

xqiu1 commented 3 years ago

Emm I don't remember what we has dicussed before 😞, do you want to display external links as icons instead of text?

bohungi commented 3 years ago

Links to ISO's appear in two different ways:

  1. A string of text is marked hot and acts as a link anchor. This feature is working fine in all situations that I have encountered. There is no need to change it.
  2. As in the proof-of-concept version of eMath, associated to a theorem / definition / etc. there can be one or more links to ISOs. These link anchors appear at the bottom of the theorem / etc. box and do not have a natural anchor given by a string of text. For this feature we still need a solution.
xqiu1 commented 3 years ago

image In this example as showed in the picture, I find you are using <p><iLink id="19">Video</iLink></p> to create a link, but you actually want an icon for it?

bohungi commented 3 years ago

Yes! - This text based anchor is temporary. It would be nice if we could find an approach which looks good and relates such supporting ISOs to the definition / theorem etc. in a manner that's analogous to the proof of concept eMath. A icon for `video' is one way to accomplish this

xqiu1 commented 3 years ago

Get it, I will think about it. I come out with one solution. Since we want it to be displayed as a button (like what we already have for the proof), maybe we can use the similar approach. For example, creating a sublevel and choose a type such as video, image, and so on. Then I will render them differently, so we can have different icon to represent them.

bohungi commented 3 years ago

Creating a sublevel for illustrations etc. seems a little overkill. - Let's recall: In math, every theorem requires a proof. So, "proof" is an integral part of a theorem, and having it as a sublevel makes sense. On the other hand, illustrations, explanations, practice services associated to a theorem is exactly in the same spirit as an ordinary link to an ISO. The only difference is that, in the statement of a theorem / definition etc there is not a usually a text string which could serve meaningfully as an anchor for a link to such an ISO. That's why we need a separate location for such link anchors.