#convert #digits #unicode #subscript #input #normal #superscript-subscripts

bin+lib microdigit

Converts normal input digits in in Unicode superscript/subscripts

1 unstable release

0.1.0 Sep 30, 2020

#3 in #subscript

MIT license

6KB
124 lines

microdigit

Install

cargo install microdigit

Usage

  ~ microdigit 123-456
# ¹²³⁻⁴⁵⁶
➜  ~ microdigit --subscript 123-456
# ₁₂₃₋₄₅₆
➜  ~ microdigit --help
# Microdigit
# Martino V. <martino@visint.in>
# Converts digits into smaller digits. You know, for terminals and things.
#
# USAGE:
#     microdigit [FLAGS] <DIGITS>...
#
# FLAGS:
#     -h, --help         Prints help information
#     -s, --subscript    Converts digits to subscript format
#     -V, --version      Prints version information
#
# ARGS:
#     <DIGITS>...    The digits to convert

Dependencies

~3MB
~53K SLoC