Hi.
Is there any chance to write in python script L subscript A for example?
I need to print on my interface something like Loa, o and a in subscript.
Found on internet how to superscript “2” or “3”, with unichr, but didin’t find anything about writing letters in subscript.
Thank you in advance,
Tudor
There are sub and superscript versions of letters and numbers in the Unicode table, but they are so far away from the usual symbols that most fonts do not support them. Usually in order to display sub or super script you need to go beyond plain text. Either rtf, or html, or some other advanced layout platform.
So the question is; where do you want to display this text?
As I mentioned before, I am trying to display the text in Rhino’s python script interface, imported windows.forms
What David is suggesting is that you use Unicode super/subscripts, for example:
var o2 = "O₂"; // or "O\x2082"
var unit2 = "unit²"; // or "unit\xB2"
So, look up your unicodes here http://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts
For example
Lₒₐ is L\x2092\x2090
In windows you can press Alt and type the 4-letter code; in Mac OS you need to activate the Unicode Hex keyboard (instructions see http://symbolcodes.tlt.psu.edu/keyboards/mackey.html) to enter unicode characters.