Maintainer | hapytexeu+gh@gmail.com |
---|---|
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe |
Language | Haskell2010 |
This module aims to make it more convenient to transform mathematical characters to their double struck, fraktur, calligraphic, etc. equivalent.
Most of the characters are defined in the 1d400 unicode block.
Synopsis
- mathAlpha :: FontStyle -> ItalicType -> Emphasis -> Char -> Maybe Char
- mathAlpha' :: FontStyle -> ItalicType -> Emphasis -> Char -> Char
- serif :: ItalicType -> Emphasis -> Char -> Maybe Char
- serif' :: ItalicType -> Emphasis -> Char -> Char
- serifNoBold :: ItalicType -> Char -> Maybe Char
- serifNoBold' :: ItalicType -> Char -> Char
- serifBold :: ItalicType -> Char -> Maybe Char
- serifBold' :: ItalicType -> Char -> Char
- serifNoItalic :: Emphasis -> Char -> Maybe Char
- serifNoItalic' :: Emphasis -> Char -> Char
- serifItalic :: Emphasis -> Char -> Maybe Char
- serifItalic' :: Emphasis -> Char -> Char
- serifNoBoldNoItalic :: Char -> Maybe Char
- serifNoBoldNoItalic' :: Char -> Char
- serifBoldNoItalic :: Char -> Maybe Char
- serifBoldNoItalic' :: Char -> Char
- serifNoBoldItalic :: Char -> Maybe Char
- serifNoBoldItalic' :: Char -> Char
- serifBoldItalic :: Char -> Maybe Char
- serifBoldItalic' :: Char -> Char
- sansSerif :: ItalicType -> Emphasis -> Char -> Maybe Char
- sansSerif' :: ItalicType -> Emphasis -> Char -> Char
- sansSerifNoBold :: ItalicType -> Char -> Maybe Char
- sansSerifNoBold' :: ItalicType -> Char -> Char
- sansSerifBold :: ItalicType -> Char -> Maybe Char
- sansSerifBold' :: ItalicType -> Char -> Char
- sansSerifNoItalic :: Emphasis -> Char -> Maybe Char
- sansSerifNoItalic' :: Emphasis -> Char -> Char
- sansSerifItalic :: Emphasis -> Char -> Maybe Char
- sansSerifItalic' :: Emphasis -> Char -> Char
- sansSerifNoBoldNoItalic :: Char -> Maybe Char
- sansSerifNoBoldNoItalic' :: Char -> Char
- sansSerifBoldNoItalic :: Char -> Maybe Char
- sansSerifBoldNoItalic' :: Char -> Char
- sansSerifNoBoldItalic :: Char -> Maybe Char
- sansSerifNoBoldItalic' :: Char -> Char
- sansSerifBoldItalic :: Char -> Maybe Char
- sansSerifBoldItalic' :: Char -> Char
- digit :: FontStyle -> Emphasis -> Char -> Maybe Char
- digit' :: FontStyle -> Emphasis -> Char -> Char
- digitSansSerif :: Emphasis -> Char -> Maybe Char
- digitSansSerif' :: Emphasis -> Char -> Char
- digitSerif :: Emphasis -> Char -> Maybe Char
- digitSerif' :: Emphasis -> Char -> Char
- digitSerifRegular :: Char -> Maybe Char
- digitSerifRegular' :: Char -> Char
- digitSerifBold :: Char -> Maybe Char
- digitSerifBold' :: Char -> Char
- digitSansSerifRegular :: Char -> Maybe Char
- digitSansSerifRegular' :: Char -> Char
- digitSansSerifBold :: Char -> Maybe Char
- digitSansSerifBold' :: Char -> Char
- digitMonospace :: Char -> Maybe Char
- digitMonospace' :: Char -> Char
- digitDoubleStruck :: Char -> Maybe Char
- digitDoubleStruck' :: Char -> Char
- intToDigitChar :: FontStyle -> Emphasis -> Int -> Maybe Char
- intToDigitChar' :: FontStyle -> Emphasis -> Int -> Char
- intToDigitSerif :: Emphasis -> Int -> Maybe Char
- intToDigitSerif' :: Emphasis -> Int -> Char
- intToDigitSansSerif :: Emphasis -> Int -> Maybe Char
- intToDigitSansSerif' :: Emphasis -> Int -> Char
- intToDigitSerifRegular :: Int -> Maybe Char
- intToDigitSerifRegular' :: Int -> Char
- intToDigitSerifBold :: Int -> Maybe Char
- intToDigitSerifBold' :: Int -> Char
- intToDigitSansSerifRegular :: Int -> Maybe Char
- intToDigitSansSerifRegular' :: Int -> Char
- intToDigitSansSerifBold :: Int -> Maybe Char
- intToDigitSansSerifBold' :: Int -> Char
- intToDigitMonospace :: Int -> Maybe Char
- intToDigitMonospace' :: Int -> Char
- intToDigitDoubleStruck :: Int -> Maybe Char
- intToDigitDoubleStruck' :: Int -> Char
- monospace :: Char -> Maybe Char
- monospace' :: Char -> Char
- doubleStruck :: Char -> Maybe Char
- doubleStruck' :: Char -> Char
- script :: Emphasis -> Char -> Maybe Char
- script' :: Emphasis -> Char -> Char
- scriptRegular :: Char -> Maybe Char
- scriptRegular' :: Char -> Char
- scriptBold :: Char -> Maybe Char
- scriptBold' :: Char -> Char
- calligraphy :: Emphasis -> Char -> Maybe Char
- calligraphy' :: Emphasis -> Char -> Char
- calligraphyRegular :: Char -> Maybe Char
- calligraphyRegular' :: Char -> Char
- calligraphyBold :: Char -> Maybe Char
- calligraphyBold' :: Char -> Char
- fraktur :: Emphasis -> Char -> Maybe Char
- fraktur' :: Emphasis -> Char -> Char
- frakturRegular :: Char -> Maybe Char
- frakturRegular' :: Char -> Char
- frakturBold :: Char -> Maybe Char
- frakturBold' :: Char -> Char
Documentation
:: FontStyle | The given |
-> ItalicType | The given |
-> Emphasis | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted in the given |
Convert the given character to a mathematical symbol with the given font style, with a
given emphasis and a given italics style. This maps characters an equivalent sansSerif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
Serif mathematical alphabet symbols
:: ItalicType | The given |
-> Emphasis | The given |
-> Char | The given character to convert. |
-> Maybe Char | The equivalent character wrapped in a |
:: ItalicType | The given |
-> Emphasis | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted with serifs, depending on the given |
Convert the given character to a mathematical symbol with serifs, with a
given emphasis and a given italics style. This maps characters an equivalent serif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: ItalicType | The given |
-> Char | The given character to convert. |
-> Maybe Char | The equivalent character wrapped in a |
:: ItalicType | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted with serifs, not in bold and depending on the given |
Convert the given character to a mathematical symbol with serifs, not in bold
and in a italics type. This maps characters an equivalent serif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: ItalicType | The given |
-> Char | The given character to convert. |
-> Maybe Char | The equivalent character wrapped in a |
:: ItalicType | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted with serifs, in bold and depending on the given |
Convert the given character to a mathematical symbol with serifs, in bold
and in a italics type. This maps characters an equivalent serif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: Emphasis | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted with serifs, depending on the given |
Convert the given character to a mathematical symbol with serifs, with a
given emphasis and not in italics. This maps characters an equivalent serif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: Emphasis | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted with serifs, depending on the given |
Convert the given character to a mathematical symbol with serifs, with a
given emphasis and in italics. This maps characters an equivalent serif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted with serifs, not in bold and not in italics. |
Convert the given character to a mathematical symbol with serifs, with no
bold and no italics. This maps characters to itself for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted with serifs, in bold and not in italics. |
Convert the given character to a mathematical symbol with serifs, in bold
not in italics. This maps characters an equivalent serif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted with serifs, not in bold and in italics. |
Convert the given character to a mathematical symbol with serifs, with no
bold and in italics. This maps characters an equivalent serif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted with serifs, in bold and in italics. |
Convert the given character to a mathematical symbol with serifs, with in
bold and in italics. This maps characters an equivalent serif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
Sans-serif mathematical alphabet symbols
:: ItalicType | The given |
-> Emphasis | The given |
-> Char | The given character to convert. |
-> Maybe Char | The equivalent character wrapped in a |
:: ItalicType | The given |
-> Emphasis | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted without serifs, depending on the given |
Convert the given character to a mathematical symbol without serifs, with a
given emphasis and a given italics style. This maps characters an equivalent sansSerif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: ItalicType | The given |
-> Char | The given character to convert. |
-> Maybe Char | The equivalent character wrapped in a |
:: ItalicType | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted without serifs, not in bold and depending on the given |
Convert the given character to a mathematical symbol without serifs, not in bold
and in a italics type. This maps characters an equivalent sansSerif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: ItalicType | The given |
-> Char | The given character to convert. |
-> Maybe Char | The equivalent character wrapped in a |
:: ItalicType | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted without serifs, in bold and depending on the given |
Convert the given character to a mathematical symbol without serifs, in bold
and in a italics type. This maps characters an equivalent sansSerif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: Emphasis | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted without serifs, depending on the given |
Convert the given character to a mathematical symbol without serifs, with a
given emphasis and not in italics. This maps characters an equivalent sansSerif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: Emphasis | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted without serifs, depending on the given |
Convert the given character to a mathematical symbol without serifs, with a
given emphasis and in italics. This maps characters an equivalent sansSerif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
sansSerifNoBoldNoItalic' Source #
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted without serifs, not in bold and not in italics. |
Convert the given character to a mathematical symbol without serifs, with no
bold and no italics. This maps characters to itself for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
sansSerifBoldNoItalic' Source #
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted without serifs, in bold and not in italics. |
Convert the given character to a mathematical symbol without serifs, in bold
not in italics. This maps characters an equivalent sansSerif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
sansSerifNoBoldItalic' Source #
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted without serifs, not in bold and in italics. |
Convert the given character to a mathematical symbol without serifs, with no
bold and in italics. This maps characters an equivalent sansSerif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted without serifs, in bold and in italics. |
Convert the given character to a mathematical symbol without serifs, with in
bold and in italics. This maps characters an equivalent sansSerif symbol for the A
-Z
and
a
-z
range. For characters outside the range, the behavior is unspecified.
Digit characters
:: FontStyle | The given font style. |
-> Emphasis | The given emphasis style. |
-> Char | The given character to convert. |
-> Char | The corresponding symbol in the given font style for the given emphasis style, unspecified outside the the range. |
Convert the given digit character (0
-9
) to its corresponding character
with a given Emphasis
in the given font style. The result for characters outside this
range is unspecified.
:: Emphasis | The given emphasis style. |
-> Char | The given character to convert. |
-> Char | The corresponding symbol in sans-serifs for the given emphasis style, unspecified outside the the range. |
Convert the given digit character (0
-9
) to its corresponding character
with a given Emphasis
in sans-serif style. The result for characters outside this
range is unspecified.
:: Emphasis | The given emphasis style. |
-> Char | The given character to convert. |
-> Char | The corresponding symbol in serifs for the given emphasis style, unspecified outside the the range. |
Convert the given digit character (0
-9
) to its corresponding character
with a given Emphasis
in serif style. The result for characters outside this
range is unspecified.
:: Char | The given character to convert. |
-> Char | The corresponding symbol in serifs not in bold, unspecified outside the the range. |
Convert the given digit character (0
-9
) to its corresponding character
in a non-bold serif style. The result for characters outside this range is
unspecified.
:: Char | The given character to convert. |
-> Char | The corresponding symbol in serifs in bold, unspecified outside the the range. |
Convert the given digit character (0
-9
) to its corresponding character
in a bold serif style. The result for characters outside this range is
unspecified.
digitSansSerifRegular' Source #
:: Char | The given character to convert. |
-> Char | The corresponding symbol in sans-serifs not in bold, unspecified outside the the range. |
Convert the given digit character (0
-9
) to its corresponding character
in a non-bold sans-serif style. The result for characters outside this range is
unspecified.
:: Char | The given character to convert. |
-> Char | The corresponding symbol in sans-serifs in bold, unspecified outside the the range. |
Convert the given digit character (0
-9
) to its corresponding character
in a bold sans-serif style. The result for characters outside this range is
unspecified.
:: Char | The given digit character to convert. |
-> Char | The corresponding character in monspace style. Unspecified outside the digit range. |
Converts the given digit (0
-9
) charcters to its equivalent in
monospace style. Unspecified result for characters outside the range.
:: Char | The given digit character to convert. |
-> Char | The corresponding character in double-struck style. Unspecified outside the digit range. |
Converts the given digit (0
-9
) charcters to its equivalent in
double-struck style. Unspecified result for characters outside the range.
Int to digit characters
:: Emphasis | The given emphasis style. |
-> Int | The given number to convert. |
-> Char | The corresponding symbol in serifs in the given emphasis style, unspecified outside the the range. |
Convert the given number (0
-9
) to its corresponding character
with a given Emphasis
in serif style. The result for numbers outside this
range is unspecified.
:: Emphasis | The given emphasis style. |
-> Int | The given number to convert. |
-> Char | The corresponding symbol in sans-serifs in the given emphasis style, unspecified outside the the range. |
Convert the given number (0
-9
) to its corresponding character
with a given Emphasis
in sans-serif style. The result for numbers outside this
range is unspecified.
intToDigitSerifRegular' Source #
:: Int | The given number to convert. |
-> Char | The corresponding symbol in serifs not in bold, unspecified outside the the range. |
Convert the given number (0
-9
) to its corresponding character
in a non-bold serif style. The result for numbers outside this range is
unspecified.
:: Int | The given number to convert. |
-> Char | The corresponding symbol in serifs in bold, unspecified outside the the range. |
Convert the given number (0
-9
) to its corresponding character
in a bold serif style. The result for numbers outside this range is
unspecified.
intToDigitSansSerifRegular' Source #
:: Int | The given number to convert. |
-> Char | The corresponding symbol in sans-serifs not in bold, unspecified outside the the range. |
Convert the given number (0
-9
) to its corresponding character
in a non-bold sans-serif style. The result for numbers outside this range is
unspecified.
intToDigitSansSerifBold' Source #
:: Int | The given number to convert. |
-> Char | The corresponding symbol in sans-serifs in bold, unspecified outside the the range. |
Convert the given number (0
-9
) to its corresponding character
in a bold sans-serif style. The result for numbers outside this range is
unspecified.
:: Int | The given number to convert. |
-> Char | The corresponding character in monspace style. Unspecified outside the digit range. |
Convert the given number (0
-9
) to its corresponding character in
monospace style. Unspecified result for numbers outside this range.
intToDigitDoubleStruck' Source #
:: Int | The given number to convert. |
-> Char | The corresponding character in double-struck style. Unspecified outside the digit range. |
Convert the given number (0
-9
) to its corresponding character in
double-struck style. Unspecified result for numbers outside this range.
Monospace symbols
:: Char | The given character to convert to a monospace symbol. |
-> Char | The equivalent monospace symbol for the given character. |
Convert the given character to its monospace equivalent for the alphabet
and numerical range (A
-Z
, a
-z
, and 0
-9
). For characters outside
the range, the result is unspecified.
Double struck symbols
:: Char | The character to convert to a double struck symbol. |
-> Char | The double struck symbol for the given character. If the character is not an ASCII alphanumerical character, the result is unspecified. |
Obtain the double struck symbol for the given character. The supported
range of characters are the alphabet character (A
-Z
, and a
-z
), and
the numerical characters (0
-9
). For characters other than these, the
behaviour is unspecified.
Script (or calligraphic symbols)
:: Emphasis | The given |
-> Char | The given character to convert. |
-> Char | The equivalent character that is formatted in calligraphy, and depending on the |
Convert the given character to its script or calligraphic symbol. This
symbol is written in the given Emphasis
style. If the symbol is outside the
alphabet range (A
-Z
, and a-z
), the returned character is unspecified.
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted in calligraphy, not in bold. |
Convert the given character to its script or calligraphic symbol. This
symbol is not written in boldface. If the symbol is outside the alphabet
range (A
-Z
, and a-z
), the returned character is unspecified.
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted in calligraphy, and in bold. |
Convert the given character to its script or calligraphic symbol. This
symbol is written in boldface. If the symbol is outside the alphabet
range (A
-Z
, and a-z
), the returned character is unspecified.
:: Char | The given character to convert. |
-> Maybe Char | The calligraphy symbol for the given character wrapped
in a |
Convert the given character to its script or calligraphic symbol
wrapped in a Just
data constructor. This symbol is not written in
boldface. If the symbol is outside the alphabet range (A
-Z
, and a-z
),
Nothing
is returned. This is an alias of scriptRegular
.
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted in calligraphy, not in bold. |
Convert the given character to its script or calligraphic symbol. This
symbol is not written in boldface. If the symbol is outside the alphabet
range (A
-Z
, and a-z
), the returned character is unspecified.
This is an alias of scriptRegular'
.
:: Char | The given character to convert. |
-> Maybe Char | The calligraphy symbol for the given character wrapped
in a |
Convert the given character to its script or calligraphic symbol
wrapped in a Just
data constructor. This symbol is written in
boldface. If the symbol is outside the alphabet range (A
-Z
, and a-z
),
Nothing
is returned. This is an alias of scriptBold
.
:: Char | The given character to convert. |
-> Char | The equivalent character that is formatted in calligraphy, and in bold. |
Convert the given character to its script or calligraphic symbol. This
symbol is written in boldface. If the symbol is outside the alphabet
range (A
-Z
, and a-z
), the returned character is unspecified. This is an
alias of scriptBold'
.
Fraktur symbols
:: Emphasis | The given emphasis style to use. |
-> Char | The character to convert to a fraktur symbol in the given emphasis style. |
-> Char | The equivalent fraktur charater for the given character. |
Obtain the fraktur symbol for the given character in the given emphasis
style. The supported range of characters are the alphabet characters
(A
-Z
, and a
-z
). In case the character is not in this range, it is
unspecified what will be returned.
:: Char | The character to convert to a regular fraktur symbol. |
-> Char | The equivalent fraktur charater for the given character. |
Obtain the fraktur symbol for the given character in a regular (not bold)
style. The supported range of characters are the alphabet characters
(A
-Z
, and a
-z
). In case the character is not in this range, it is
unspecified what will be returned.
:: Char | The character to convert to a bold fraktur symbol. |
-> Char | The equivalent fraktur charater for the given character. |
Obtain the fraktur symbol for the given character in a bold
style. The supported range of characters are the alphabet characters
(A
-Z
, and a
-z
). In case the character is not in this range, it is
unspecified what will be returned.