Asciimath Unicode
Render asciimath to unicode.
To convert asciimath quickly, you can use parse_unicode to get an Asciimath
value that implements Display. If you want more control, see the options
exposed through Conf which can parse input into Asciimath as well.
Usage
Binary
This crate provides a simple cli for converting asciimath to unicode:
Library
let res = parse_unicode.to_string;
assert_eq!;
use Conf;
let conf = Conf ;
let res = conf.parse.to_string;
assert_eq!;
use Conf;
let conf = Conf ;
let res = conf.parse.to_string;
assert_eq!;
Configuration
| Field | Type | Default | Description |
|---|---|---|---|
strip_brackets |
bool |
true |
Strip unnecessary parentheses in some contexts |
vulgar_fracs |
bool |
true |
Render fractions as vulgar fractions (e.g. ½) |
script_fracs |
bool |
true |
Render fractions using super/subscripts (e.g. ¹⁄₂) |
skin_tone |
SkinTone |
Default |
Default skin tone for emojis |
block |
bool |
false |
Multi-line 2D block rendering (stacked fractions, vertical scripts, matrix grids) |