Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- getMMLType :: TextType -> Text
- getTextType :: Text -> TextType
- getLaTeXTextCommand :: Env -> TextType -> Text
- getScalerCommand :: Rational -> Maybe Text
- getScalerValue :: Text -> Maybe Rational
- scalers :: [(Text, Rational)]
- getSpaceWidth :: Char -> Maybe Rational
- getSpaceChars :: Rational -> Text
- getDiacriticalCommand :: Position -> Text -> Maybe Text
- diacriticals :: [(Text, Text)]
- getOperator :: Exp -> Maybe TeX
- readLength :: Text -> Maybe Rational
- fixTree :: Exp -> Exp
- isEmpty :: Exp -> Bool
- empty :: Exp
- handleDownup :: DisplayType -> Exp -> Exp
Documentation
getMMLType :: TextType -> Text Source #
Maps TextType to the corresponding MathML mathvariant
getTextType :: Text -> TextType Source #
Maps MathML mathvariant to the corresponing TextType
getScalerCommand :: Rational -> Maybe Text Source #
Maps a LaTeX scaling command to the percentage scaling
getSpaceWidth :: Char -> Maybe Rational Source #
Returns the space width for a unicode space character, or Nothing.
getSpaceChars :: Rational -> Text Source #
Returns the sequence of unicode space characters closest to the specified width.
getDiacriticalCommand :: Position -> Text -> Maybe Text Source #
Given a diacritical mark, returns the corresponding LaTeX command
diacriticals :: [(Text, Text)] Source #
Mapping between unicode combining character and LaTeX accent command
fixTree :: Exp -> Exp Source #
Walks over a tree of expressions, removing empty expressions, and fixing delimited expressions with no delimiters and unnecessarily grouped expressions.
handleDownup :: DisplayType -> Exp -> Exp Source #