πππππππ‘π
A small utility for converting text to a unicode variant.
Flag | Short | Description | Example |
---|---|---|---|
monospace | m | Monospace text (default) | πΌππππππππβπππ‘π! |
script | c | Script | π»πΆππΈπ ππΈππΎπ π |
fraktur | f | Fraktur | πππ©π’π«π‘π¦π‘ π£π―ππ¨π±π²π― |
double | d | Double-struck1 | π»π π¦πππ-π€π₯π£π¦ππ |
sans | s | Sans-serif | π²πΊππ. π²πΎπππΏπ. |
greek | g | Greek2 | πππ πππππ |
bold | b | Bold (modifier) | ππΈππ ππ²π π |
italic | i | Italic (modifier)3 | ππ΅πΌππͺπ |
underline | u | Underline (modifier) | πΜ²πΜ²πΜ²πΜ²πΜ²πΜ²πΜ²πΜ²πΜ²πΜ² |
strike | k | Strike-through (modifier) | πΜΆπΜΆπΜΆπΜΆπΜΆπΜΆβΜΆπΜΆπ’ΜΆβΜΆπΜΆπΜΆπΜΆπΜΆπΜΆπΜΆπΜΆπΜΆπΜΆ |
1: Not all characters exist in the regular (i.e. non-bold/italic) version of this set
2: The output characters might not be the respective greek character of the input character. There is also no regular (i.e. non-bold/italic) version of this set
3: For the h
character in this set, the planck constant U+210E
is used instead of U+1D455
, as that character does not exist in unicode. It might look a bit off with some fonts.
The bold flag can be combined with script
, fraktur
, sans
, and greek
and the italic flag can be combined with sans
and greek
, but both can also be used without another flag, in which case they will have the serif type.
Usage
Presuming you have node installed, run the file directly with ./monotext.js
or run it with node: node monotext.js
.
You can also create a symlink (ln -s path/to/monotext.js destination/path
) in
/usr/local/bin
or whatever is in your PATH
and then run it directly anywhere with the
filename you specified for it's destination.