module Data.Text.ParagraphLayout.SpanData ( emptySpan , czechHello , serbianMixedScript ) where import Data.Text (pack) import Data.Text.Glyphize (Font) import Data.Text.ParagraphLayout.Internal.BoxOptions import Data.Text.ParagraphLayout.Internal.LineHeight import Data.Text.ParagraphLayout.Internal.ResolvedBox import Data.Text.ParagraphLayout.Internal.ResolvedSpan import Data.Text.ParagraphLayout.Internal.TextOptions defaultBox :: ResolvedBox () defaultBox = ResolvedBox () 0 defaultBoxOptions emptySpan :: Font -> ResolvedSpan () emptySpan font = ResolvedSpan { spanUserData = () , spanIndex = 0 , spanOffsetInParagraph = 0 , spanText = pack "" , spanTextOptions = defaultTextOptions { textFont = font , textLineHeight = Normal , textLanguage = "en" } , spanBoxes = [defaultBox] , spanLineBreaks = [] , spanCharacterBreaks = [] } czechHello :: Font -> ResolvedSpan () czechHello font = ResolvedSpan { spanUserData = () , spanIndex = 0 , spanOffsetInParagraph = 0 , spanText = pack "Ahoj, světe!" , spanTextOptions = defaultTextOptions { textFont = font , textLineHeight = Normal , textLanguage = "cs" } , spanBoxes = [defaultBox] , spanLineBreaks = [] , spanCharacterBreaks = [] } serbianMixedScript :: Font -> ResolvedSpan () serbianMixedScript font = ResolvedSpan { spanUserData = () , spanIndex = 0 , spanOffsetInParagraph = 0 , spanText = pack "Vikipedija (Википедија)" , spanTextOptions = defaultTextOptions { textFont = font , textLineHeight = Normal , textLanguage = "sr" } , spanBoxes = [defaultBox] , spanLineBreaks = [] , spanCharacterBreaks = [] }