Text.TeXMath.Unicode.ToUnicode

texmath-0.12.10.3: Conversion between math formats.

Safe Haskell | None
Language | Haskell2010

Text.TeXMath.Unicode.ToUnicode

Description

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

Synopsis

- fromUnicodeChar :: Char -> Maybe (TextType, Char)
- toUnicodeChar :: (TextType, Char) -> Maybe Char
- fromUnicode :: TextType -> Text -> Text
- toUnicode :: TextType -> Text -> Text

# Documentation

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

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

toUnicodeChar :: (TextType, Char) -> Maybe Char #

fromUnicode :: TextType -> Text -> Text #

Inverse of `toUnicode`.

toUnicode :: TextType -> Text -> Text #

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.