module Data.Text.ParagraphLayout.SpanData
( emptySpan
, czechHello
, serbianMixedScript
)
where
import Data.Text (pack)
import Data.Text.Glyphize (Font)
import Data.Text.ParagraphLayout.Internal.LineHeight
import Data.Text.ParagraphLayout.Internal.ResolvedSpan
emptySpan :: Font -> ResolvedSpan
emptySpan font = ResolvedSpan
{ spanIndex = 0
, spanOffsetInParagraph = 0
, spanText = pack ""
, spanFont = font
, spanLineHeight = Normal
, spanLanguage = "en"
, spanLineBreaks = []
, spanCharacterBreaks = []
}
czechHello :: Font -> ResolvedSpan
czechHello font = ResolvedSpan
{ spanIndex = 0
, spanOffsetInParagraph = 0
, spanText = pack "Ahoj, světe!"
, spanFont = font
, spanLineHeight = Normal
, spanLanguage = "cs"
, spanLineBreaks = []
, spanCharacterBreaks = []
}
serbianMixedScript :: Font -> ResolvedSpan
serbianMixedScript font = ResolvedSpan
{ spanIndex = 0
, spanOffsetInParagraph = 0
, spanText = pack "Vikipedija (Википедија)"
, spanFont = font
, spanLineHeight = Normal
, spanLanguage = "sr"
, spanLineBreaks = []
, spanCharacterBreaks = []
}