Replace Unicode numeral subscript or superscript with plain numeral
stackoverflow.com
How do I replace a Unicode numeral subscript or superscript (eg, ₂) with the corresponding numeral (ie, 2) using regular expressions? I can of course replace each of them separately, but that is ten lines of code... I am implementing this in Perl but that should not really matter.
subscript - Subscripted 'y' in unicode - Stack Overflow
stackoverflow.com
Usually you do this with formatting. Unicode's selection of superscript and subscript characters doesn't stem from the need or desire to cover whole alphabets but rather to enable specific use cases, e.g. writing IPA. Furthermore, if you're using a good OpenType font it can also support proper subscripts for arbitrary characters at the font level (where a glyph isn't simply scaled down by the ...
How to combine unicode subscript with string formatting
stackoverflow.com
The chr () function takes an integer and outputs the corresponding Unicode codepoint in a string. The above defines a hexadecimal number and adds 1 to produce your desired 2080 range Unicode character.
Is there an Unicode Symbol for Superscript comma?
stackoverflow.com
The Unicode superscript (and subscript) code points are for backwards compatibility with older character sets and are essentially deprecated. They are not intended to be complete, or be used to format text. If you need to use superscript characters, the recommended (and most complete/compatible) approach is to use a markup language.