texmath-0.12.6: Conversion between math formats.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.TeXMath.Unicode.ToUnicode

Description

Function for replacing strings of characters with their respective mathvariant and vice versa.

Synopsis

Documentation

fromUnicodeChar :: Char -> Maybe (TextType, Char) Source #

The inverse of toUnicodeChar: returns the corresponding unstyled character and TextType of a unicode character.

toUnicode :: TextType -> Text -> Text Source #

Replace characters with their corresponding mathvariant unicode character. MathML has a mathvariant attribute which is unimplemented in Firefox (see here) Therefore, we may want to translate mathscr, etc to unicode symbols directly.