packages feed

typst 0.9 → 0.9.0.1

raw patch · 14 files changed

+27/−17 lines, 14 files

Files

CHANGELOG.md view
@@ -1,5 +1,15 @@ # Revision history for typst-hs +## 0.9.0.1++  * Fix typo that caused close single quote to be parsed as double+    (jgm/pandoc#11463).++  * Change name of positional param for bibliography to 'sources'.+    (From 'source'). Per typst documentation.++  * Fix upper bound for base (< not <=).+ ## 0.9    * Tweak parsing of list items and headings to match Typst more closely
src/Typst/Evaluate.hs view
@@ -156,7 +156,7 @@ setQuotes (Quote '"' : x : rest)   | x == Space || x == SoftBreak = Quote '\x201D' : setQuotes (x : rest) setQuotes (Quote '\'' : x : rest)-  | x == Space || x == SoftBreak = Quote '\x201D' : setQuotes (x : rest)+  | x == Space || x == SoftBreak = Quote '\x2019' : setQuotes (x : rest) setQuotes (x : Quote '"' : rest)   | x == Space || x == SoftBreak = x : Quote '\x201C' : setQuotes rest setQuotes (x : Quote '\'' : rest)
src/Typst/Module/Standard.hs view
@@ -233,7 +233,7 @@  meta :: [(Identifier, Val)] meta =-  [ makeElement Nothing "bibliography" [("source", One (TString :|: TArray :|: TBytes))],+  [ makeElement Nothing "bibliography" [("sources", One (TString :|: TArray :|: TBytes))],     makeElement Nothing "cite" [("key", One TLabel)],     makeElement Nothing "document" [("body", One TContent)],     makeElement Nothing "title" [("body", One TContent)],
test/typ/compiler/include-00.out view
@@ -78,7 +78,7 @@ approached the center of the field and picked up a 4-foot long disk made from what could only be cow manure. The hair on the back of ]),                   text(body: [Klaus]), -                 text(body: [” neck bristled as+                 text(body: [’ neck bristled as he stared at the unusual sight. After studying the object for a while, he promptly popped the question, “How much?”]),                   parbreak(), 
test/typ/compiler/modules/chap2.out view
@@ -190,7 +190,7 @@ approached the center of the field and picked up a 4-foot long disk made from what could only be cow manure. The hair on the back of ]),                   text(body: [Klaus]), -                 text(body: [” neck bristled as+                 text(body: [’ neck bristled as he stared at the unusual sight. After studying the object for a while, he promptly popped the question, “How much?”]),                   parbreak() })
test/typ/meta/bibliography-01.out view
@@ -60,5 +60,5 @@                      target: <distress>),                   text(body: [. ]), -                 bibliography(source: "/works.bib"), +                 bibliography(sources: "/works.bib"),                   parbreak() })
test/typ/meta/bibliography-02.out view
@@ -103,7 +103,7 @@ ]),                   text(body: [ ]), -                 bibliography(source: "/works.bib", +                 bibliography(sources: "/works.bib",                                style: "chicago-author-date",                                title: text(body: [Works to be cited])),                   text(body: [
test/typ/meta/bibliography-04.out view
@@ -74,6 +74,6 @@                  cite(key: <keshav2007read>),                   text(body: [ ]), -                 bibliography(source: ("/works.bib", -                                       "/works_too.bib")), +                 bibliography(sources: ("/works.bib", +                                        "/works_too.bib")),                   parbreak() })
test/typ/meta/bibliography-ordering-00.out view
@@ -88,5 +88,5 @@                  ref(supplement: auto,                       target: <restful>),                   parbreak(), -                 bibliography(source: "/works.bib"), +                 bibliography(sources: "/works.bib"),                   parbreak() })
test/typ/meta/cite-footnote-00.out view
@@ -37,6 +37,6 @@                  pagebreak(),                   text(body: [ ]), -                 bibliography(source: "/works.bib", +                 bibliography(sources: "/works.bib",                                style: "chicago-notes"),                   parbreak() })
test/typ/text/linebreak-obj-00.out view
@@ -54,5 +54,5 @@                  text(body: [, which is the authoritative source.]),                   parbreak(), -                 bibliography(source: "/works.bib"), +                 bibliography(sources: "/works.bib"),                   parbreak() })
test/typ/text/quotes-00.out view
@@ -416,11 +416,11 @@                       lang: "en"),                   parbreak(),                   text(body: [-“Das Pferd frisst keinen Gurkensalat” war der erste jemals am ‘Fernsprecher” gesagte Satz.], +“Das Pferd frisst keinen Gurkensalat” war der erste jemals am ‘Fernsprecher’ gesagte Satz.],                        lang: "de"),                   parbreak(),                   text(body: [-“Das Pferd frisst keinen Gurkensalat” war der erste jemals am ‘Fernsprecher” gesagte Satz.], +“Das Pferd frisst keinen Gurkensalat” war der erste jemals am ‘Fernsprecher’ gesagte Satz.],                        lang: "de",                        region: "CH"),                   parbreak(), @@ -440,7 +440,7 @@                       region: none),                   parbreak(),                   text(body: [-“Hevonen ei syö kurkkusalaattia” oli ensimmäinen koskaan ‘puhelimessa” lausuttu lause.], +“Hevonen ei syö kurkkusalaattia” oli ensimmäinen koskaan ‘puhelimessa’ lausuttu lause.],                        lang: "fi",                        region: none),                   parbreak(), 
test/typ/text/quotes-02.out view
@@ -53,7 +53,7 @@ ] --- evaluated --- document(body: { text(body: [-The 5’11” ‘quick” brown fox jumps over the “lazy” dog’s ear.]), +The 5’11” ‘quick’ brown fox jumps over the “lazy” dog’s ear.]),                   parbreak(),                   text(body: [He said “I’m a big fella.”]),                   parbreak() })
typst.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               typst-version:            0.9+version:            0.9.0.1 synopsis:           Parsing and evaluating typst syntax. description:        A library for parsing and evaluating typst syntax.                     Typst (<https://typst.app>) is a document layout and@@ -61,7 +61,7 @@                       Typst.MathClass      -- other-extensions:-    build-depends:    base >= 4.14 && <= 5,+    build-depends:    base >= 4.14 && < 5,                       typst-symbols >= 0.1.9 && < 0.1.10,                       mtl,                       vector,