Is there an Unicode Symbol for Superscript comma?

后端 未结 6 643
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-05 09:52

While making a translation to a YouTube video (translations can only be in Unicode, no other markup is possible as far as I know of), I stumbled across the concentration of H

相关标签:
6条回答
  • 2021-02-05 10:13

    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.

    If no markup language is available, then you're simply out of luck. Hacking in other character that look similar may appear to be a usable workaround, but damages any semantic value to the text – for example, U+22C5 may be mechanically parsed as a multiplication of the adjacent numbers.

    0 讨论(0)
  • 2021-02-05 10:22

    I had 40,000 for an exponent and was looking for a superscript comma. The best I could find was a Calibri U+031B, a combining horn, so I was able to make a reasonable looking exponent: one chance in 10⁴⁰̛ ⁰⁰⁰ of life originating by natural means. When I was using it in combination with Times New Roman, I had to add a extra space after the combining horn, but here I had to delete that extra space. After posting, it looks like that effect is defeated.

    0 讨论(0)
  • 2021-02-05 10:27

    As far as I know there is no unicode for superscript comma however you can use (U+22C5) as dot seperator.

    0 讨论(0)
  • 2021-02-05 10:28

    There exists two, but the first is more useful for your use case.

    U+1d112 Musical Symbol Breath Mark

    0 讨论(0)
  • 2021-02-05 10:28

    No, there is no specific superscript comma in Unicode yet,
    but ALTERNATIVE/OTHER CHARACTERS that look-alike or close-to COMMA-symbol can be used, such as this ˒ U+02D2 or U+2E34 character.
    i have included few other Unicode codepoint for related characters used here.
    |- - - - - - - - - - - -
    | UNICODE-     |Example-|GLYPH-in-|HTML-      |
    | -CODEPOINT:|-GLYPH:|   -CODE:   |-DECIMAL:| DESCRIPTION: | LOOKS-LIKE: |
    | U+UUUU: |GLYPH: |CODE:       |"example"-LINE: |
    |- - - - - - - - - - - -
    | U+02D2 | ˒ | ˒ | ˒ | Modifier Letter Centered Right Half Ring | as superscript-comma |
    | U+02D2 | "1·10⁻³˒⁵ M". | "1·10⁻³˒⁵ M". | example |
    |- - - - - - - - - - - -
    | U+2E34 | ⸴ | |⸴| Raised Comma | as superscript-comma |
    | U+2E34 | "1·10⁻³⸴⁵ M". | "1·10⁻³⸴⁵ M". | example |
    |- - - - - - - - - - - -
    | U+0F21 | ༡ | | ༡ | Tibetan Digit One | as superscript-comma |
    | U+0F21 | "1·10⁻³༡⁵ M". | "1·10⁻³༡⁵ M". | example |
    |- - - - - - - - - - - -
    | U+1046E |

    0 讨论(0)
  • 2021-02-05 10:34

    The Greek Ano Teleia (U+0387) looks decent with some fonts:

    ·

    Here's an example of what it would look like in your particular case (all of the superscript characters are Unicode characters):

    1·10⁻⁴·⁵ M

    In this example it looks really good, but in other fonts, the character hovers closer to the middle (vertically) of the superscript characters.

    Even in fonts that it does look good with, if you increase the font-size enough, it becomes apparent that the dot is not quite where it needs to be.

    I really wish that an official superscript/subscript decimal point would be added to the Unicode standard as all of the characters that can be used to substitute these characters are font (and sometimes size) dependent, so there's no guarantee that they'll look good in all use-cases.

    0 讨论(0)
提交回复
热议问题