packages feed

typst-0.7: test/typ/layout/par-bidi-01.out

--- parse tree ---
[ Code
    "typ/layout/par-bidi-01.typ"
    ( line 1 , column 2 )
    (Let
       (BasicBind (Just (Identifier "test")))
       (FuncExpr
          [ NormalParam (Identifier "x") , NormalParam (Identifier "y") ]
          (Block
             (CodeBlock
                [ If
                    [ ( Equals (Ident (Identifier "x")) (Ident (Identifier "y"))
                      , Block (Content [ Text "\9989" ])
                      )
                    , ( Literal (Boolean True)
                      , Block
                          (Content
                             [ Text "\10060"
                             , Text "("
                             , Code
                                 "typ/layout/par-bidi-01.typ"
                                 ( line 1 , column 47 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "x")) ])
                             , Space
                             , Text "/"
                             , Text "="
                             , Space
                             , Code
                                 "typ/layout/par-bidi-01.typ"
                                 ( line 1 , column 59 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "y")) ])
                             , Text ")"
                             ])
                      )
                    ]
                ]))))
, SoftBreak
, Comment
, Comment
, Code
    "typ/layout/par-bidi-01.typ"
    ( line 4 , column 2 )
    (Let
       (BasicBind (Just (Identifier "content")))
       (FuncCall
          (Ident (Identifier "par"))
          [ BlockArg
              [ Text "\1571\1606\1578"
              , Space
              , Text "A"
              , Code
                  "typ/layout/par-bidi-01.typ"
                  ( line 4 , column 26 )
                  (FuncCall (Ident (Identifier "emph")) [ BlockArg [ Text "B" ] ])
              , Text "\1605\1591\1585C"
              ]
          ]))
, SoftBreak
, Code
    "typ/layout/par-bidi-01.typ"
    ( line 5 , column 2 )
    (Set
       (Ident (Identifier "text"))
       [ KeyValArg
           (Identifier "font")
           (Array
              [ Reg (Literal (String "PT Sans"))
              , Reg (Literal (String "Noto Sans Arabic"))
              ])
       ])
, SoftBreak
, Code
    "typ/layout/par-bidi-01.typ"
    ( line 6 , column 2 )
    (FuncCall
       (Ident (Identifier "text"))
       [ KeyValArg (Identifier "lang") (Literal (String "ar"))
       , NormalArg (Ident (Identifier "content"))
       ])
, SoftBreak
, Code
    "typ/layout/par-bidi-01.typ"
    ( line 7 , column 2 )
    (FuncCall
       (Ident (Identifier "text"))
       [ KeyValArg (Identifier "lang") (Literal (String "de"))
       , NormalArg (Ident (Identifier "content"))
       ])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]), 
                 text(body: [
]), 
                 text(body: [
], 
                      font: ("PT Sans", 
                             "Noto Sans Arabic")), 
                 text(body: par(body: { text(body: [أنت A]), 
                                        emph(body: text(body: [B])), 
                                        text(body: [مطرC]) }), 
                      font: ("PT Sans", 
                             "Noto Sans Arabic"), 
                      lang: "ar"), 
                 text(body: [
], 
                      font: ("PT Sans", 
                             "Noto Sans Arabic")), 
                 text(body: par(body: { text(body: [أنت A]), 
                                        emph(body: text(body: [B])), 
                                        text(body: [مطرC]) }), 
                      font: ("PT Sans", 
                             "Noto Sans Arabic"), 
                      lang: "de"), 
                 parbreak() })