texmath-0.6.7: Conversion of LaTeX math formulas to MathML or OMML.

Safe HaskellNone



Function for replacing strings of characters with their respective mathvariant



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

The inverse of toUnicode, returns the corresponding | A-Za-z character and TextType of a unicode character.

toUnicode :: TextType -> String -> StringSource

Replace all characters in the string A-Z, a-z with their corresponding mathvariant unicode character. | MathML has a mathvariant attribute which is unimplemented in Firefox | (see https:bugzilla.mozilla.org/show_bug.cgi?id=114365) | Therefore, we may want to translate mathscr, etc to unicode symbols directly.