module Data.Text.ParagraphLayout.SpanData
(emptySpan
,czechHello
,serbianMixedScript
)
where
import Data.Text.Glyphize (Font)
import Data.Text.Lazy (pack)
import Data.Text.ParagraphLayout (Span(..))
emptySpan :: Font -> Span
emptySpan font = Span
{ spanText = pack ""
, spanFont = font
, spanLanguage = Nothing
}
czechHello :: Font -> Span
czechHello font = Span
{ spanText = pack "Ahoj, světe!"
, spanFont = font
, spanLanguage = Just "cs"
}
serbianMixedScript :: Font -> Span
serbianMixedScript font = Span
{ spanText = pack "Vikipedija (Википедија)"
, spanFont = font
, spanLanguage = Just "sr"
}