texmath-0.8: Conversion between formats used to represent mathematics.

Safe HaskellNone



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



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

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

toUnicode :: TextType -> String -> StringSource

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.