fairlighteth / monotext

A small utility for converting text to a mathematical monospace (unicode) version

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πš–πš˜πš—πš˜πšπšŽπš‘πš

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

Command-line example showing how to use it

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.

About

A small utility for converting text to a mathematical monospace (unicode) version

License:MIT License


Languages

Language:JavaScript 100.0%