Math Text Transform
A simple crate that provides functions to map a greek letter, latin letter, or a decimal digit to a certain variant from the mathematical alphanumeric symbols Unicode block (U+1D400âU+1D7FF). We also provide convenience string methods that maps each character in a string to the variant (or leaves it alone if there is none).
Supported variants are:
- đđ¨đĨđ (bold)
- đđĄđđđđ (italic)
- đđđđ đđđđđđ (bold italic)
- đđēđđ-đđžđđđŋ (sans-serif)
- đđŽđģđ-đđ˛đŋđļđŗ đ¯đŧđšđą (sans-serif bold)
- đ´đĸđ¯đ´-đ´đĻđŗđĒđ§ đĒđĩđĸđđĒđ¤ (sans-serif italic)
- đ¨đđŖđ¨-đ¨đđ§đđ đđ¤đĄđ đđŠđđĄđđ (sans-serif bold italic)
- đđ¸đđžđ đ (script)
- đĢđ¸đĩđ đŧđŦđģđ˛đšđŊ (bold script)
- đŖđ¯đđ¨đąđ˛đ¯ (fraktur)
- đđđđ đđđđđđđ (bold fraktur)
- đđđđđđđđđ (monospace)
- đđ đĻđđđ-đ¤đĨđŖđĻđđ (double-struck)
Install
Add this to your Cargo.toml
:
[]
= "*"
Usage
extern crate math_text_transform;
use MathTextTransform;
assert_eq!;
assert_eq!;
assert_eq!;
Documentation
https://runarberg.github.com/math-text-transform
CLI utility
If you are for some reason only interested in the CLI utility you can install with:
And use like so:
Text can also be supplied through the standard input.
Examples
|