module Data.Text.ParagraphLayout.TextData
( arabicEmpty
, englishEmpty
, englishWord
, arabicHello
, czechHello
, serbianMixedScript
, arabicAroundEnglish
, englishAroundArabic
)
where
import Data.Text (Text, empty, pack)
import Data.Text.Glyphize (Direction (DirLTR, DirRTL))
type Language = String
type Sample = (Direction, Language, Text)
arabicEmpty :: Sample
arabicEmpty =
( DirRTL
, "ar"
, empty
)
englishEmpty :: Sample
englishEmpty =
( DirLTR
, "en"
, empty
)
englishWord :: Sample
englishWord =
( DirRTL
, "en"
, pack "word"
)
arabicHello :: Sample
arabicHello =
( DirRTL
, "ar"
, pack "سلام"
)
czechHello :: Sample
czechHello =
( DirLTR
, "cs"
, pack "Ahoj, světe!"
)
serbianMixedScript :: Sample
serbianMixedScript =
( DirLTR
, "sr"
, pack "Vikipedija (Википедија)"
)
-- | Source:
-- <https://www.w3.org/International/articles/inline-bidi-markup/uba-basics>
arabicAroundEnglish :: Sample
arabicAroundEnglish =
( DirRTL
, "ar"
, pack "في XHTML 1.0 يتم تحقيق ذلك بإضافة العنصر المضمن bdo."
)
-- | Source:
-- <https://www.w3.org/International/articles/inline-bidi-markup/uba-basics>
englishAroundArabic :: Sample
englishAroundArabic =
( DirLTR
, "en"
, pack "The title is مفتاح معايير الويب in Arabic."
)