ac
New Member
Posts: 11
|
Post by ac on Dec 19, 2016 23:14:02 GMT
I'd like to be able to display fractions in a text box. Not the usual ½ etc which have dedicated characters, but things like 2/5 or 7/15 using superscript and subscript characters (as I have just done in this message text editor). I'm relatively new to Hippani and can't see how this could be done. I suspect it can't but I remain hopeful! Any ideas?
When I had to do this in Flash, I ended up creating a movie that contained a numerator text field, a line and denominator text field. I'm rather hoping I don't need to do the same as it's tedious updating each individual text box.
Thanks in advnace (though I suspect this is more in hope than expectation!)
|
|
|
Post by runes on Dec 20, 2016 11:40:46 GMT
It depends what kind of output your product has. If it's html or html5 there is a way.
Commands like <sup> and <sub> won't work if you just put them in at textbox. But if you place the textbox and add the text in it through code it's somehow added differently... Example: SupAndSubExample.hani (668 B) Look in the OnStart script It still won't work in preview but it works once the movie is exported. Hope that helps
|
|
ac
New Member
Posts: 11
|
Post by ac on Dec 20, 2016 15:45:33 GMT
Thanks runes. This is very bizarre, but, as you say seems to work. I will continue on this path - thanks for sharing.
|
|