1

Is it possible to use a superscript for a Unicode character?

For example, I have the expression aaa=u'Intel\u00AE' that creates the registered symbol as expected, but how could it be made a superscript?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131

1 Answers1

4

Unicode does not support making arbitrary characters into superscripts. There are pre-encoded superscript characters; they are different characters you can convert to.

If you want to make an arbitrary character a superscript you'll need to use markup or a typesetting system.

polm23
  • 14,456
  • 7
  • 35
  • 59
  • I found the solution shortly after posting the question. I was trying to use the registered and trademark symbols. For some reason, printing the strings returned one of the characters as a superscript but the other was printed standard font. However, matplotlib plotted both characters as superscripts (which solved my problem). – afernandezody Oct 26 '20 at 21:23