fortplot_ascii_mathtext Module

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.



Subroutines

public subroutine sanitize_ascii_text(input, output, out_len)

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.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: input
character(len=*), intent(out) :: output
integer, intent(out) :: out_len