scholdoc-texmath-0.1: Scholdoc fork of texmath

Safe HaskellNone
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 -> String -> String 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.