texmath-0.13.2.1: 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) Source #

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

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

fromUnicode :: TextType -> Text -> Text Source #

Inverse of `toUnicode`.

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.