Markup —
This module defines some helper functions for generating texts with embedded attributes.
data
FontSizeDef |
data
FontStretchDef |
data
FontStyleDef |
data
FontUnderlineDef |
data
FontVariantDef |
data
FontWeightDef |
type
Markup |
data
SpanAttribute |
markSpan:: [SpanAttribute] -> String -> String |
Define attributes for FontSize.
| data FontSizeDef = | FSPoint Double |
| | | FSgiant |
| | | FShuge |
| | | FSlarge |
| | | FSlarger |
| | | FSmedium |
| | | FSsmall |
| | | FSsmaller |
| | | FStiny |
| | | FSunreadable |
Define attributes for FontStretch.
| data FontStretchDef = | FTcondensed |
| | | FTexpanded |
| | | FTextracondensed |
| | | FTextraexpanded |
| | | FTnormal |
| | | FTsemicondensed |
| | | FTsemiexpanded |
| | | FTultracondensed |
| | | FTultraexpanded |
Define attributes for FontUnderline.
| data FontUnderlineDef = | FUdoulbe |
| | | FUlow |
| | | FUnone |
| | | FUsingle |
Define attributes for FontWeight.
| data FontWeightDef = | FWbold |
| | | FWheavy |
| | | FWlight |
| | | FWnormal |
| | | FWultrabold |
| | | FWultralight |
| Markup | String |
Define a synonym for text with embedded markup commands.
Markup strings are just simple strings. But it's easier to tell if a method expects text with or without markup.
These are all the attributes the markSpan function can express.
| data SpanAttribute = | FontBackground String |
| | | FontDescr String |
| | | FontFamily String |
| | | FontForeground String |
| | | FontLang String |
| | | FontRise Double |
| | | FontSize FontSizeDef |
| | | FontStretch FontStretchDef |
| | | FontStyle FontStyleDef |
| | | FontUnderline FontUnderlineDef |
| | | FontVariant FontVariantDef |
| | | FontWeight FontWeightDef |