Skip to content

Instantly share code, notes, and snippets.

@ThinGuy
Last active April 29, 2023 19:44
Show Gist options
  • Save ThinGuy/df25ef8cf55caa34258bead79b2fc9cd to your computer and use it in GitHub Desktop.
Save ThinGuy/df25ef8cf55caa34258bead79b2fc9cd to your computer and use it in GitHub Desktop.
Arrays for Super and Subscript numbers including i and n
declare -ag SUPS=($(printf '\u2070 \u00b9 \u00b2 \u00b3 \u2074 \u2075 \u2076 \u2077 \u2078 \u2079 \u207f \u2071\n'))
declare -ag SUBS=($(printf '\u2080 \u00b9 \u00b2 \u00b3 \u2084 \u2085 \u2086 \u2087 \u2088 \u2089 \u2099 \u1D62\n'))
@ThinGuy
Copy link
Author

ThinGuy commented Apr 29, 2023

ubuntu@orangebox44:~$ set|grep -E '^SU[B|P]'

SUB=([0]="₀" [1]="¹" [2]="²" [3]="³" [4]="₄" [5]="₅" [6]="₆" [7]="₇" [8]="₈" [9]="₉" [10]="ₙ" [11]="ᵢ")
SUP=([0]="⁰" [1]="¹" [2]="²" [3]="³" [4]="⁴" [5]="⁵" [6]="⁶" [7]="⁷" [8]="⁸" [9]="⁹" [10]="ⁿ" [11]="ⁱ")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment