ASCII mathtext and Unicode fallback utilities.
Centralises the cleanup steps needed so that text produced for the ASCII backend is readable: LaTeX command expansion, math scope stripping, mathtext brace removal, and transliteration of common Unicode symbols to ASCII equivalents. Applied at text emission time so that tick labels, legend entries, annotations, axis labels, and titles all render without raw markup or U+XXXX escape fragments.
Produce an ASCII-safe version of input suitable for placement
onto the canvas: LaTeX commands become Unicode (or ASCII words),
math delimiters and mathtext braces are stripped, and any
remaining Unicode symbols are transliterated.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | input | |||
| character(len=*), | intent(out) | :: | output | |||
| integer, | intent(out) | :: | out_len |