forked from pool/ghc-typst
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-typst?expand=0&rev=27
348 lines
12 KiB
Plaintext
348 lines
12 KiB
Plaintext
-------------------------------------------------------------------
|
|
Wed May 28 21:49:44 UTC 2025 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.8.0.1.
|
|
## 0.8.0.1
|
|
|
|
* Fix subtracting units, e.g. `1mm-0mm` (#71, Luke Grehan).
|
|
|
|
-------------------------------------------------------------------
|
|
Mon May 12 20:56:24 UTC 2025 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.8.
|
|
## 0.8
|
|
|
|
* Allow `json`, `toml`, `xml` to take either file path or bytes.
|
|
|
|
* Allow `read` to return bytes if encoding is 'none'.
|
|
|
|
* `bibliography`, `image`: change parameter name to `source` and allow bytes.
|
|
|
|
* Add 'bytes' as a type name and constructor.
|
|
|
|
* Add VBytes constructor for Val and TBytes for ValType. [API change]
|
|
|
|
* Allow values of arguments type to be added together.
|
|
|
|
* Support `calc.norm`.
|
|
|
|
* Math: add `lcm` operator.
|
|
|
|
* Require typst-symbols >= 0.1.8.1 (#67), giving us typst 0.13 symbols.
|
|
|
|
* Add "dictionary" as name of TDict type (#65).
|
|
|
|
-------------------------------------------------------------------
|
|
Sun Mar 16 17:15:48 UTC 2025 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.7.
|
|
## 0.7
|
|
|
|
* Fix problems with module loading paths (#62).
|
|
|
|
* Skip whitespace before parsing key/value values in math (#64).
|
|
|
|
* Parse the `delim` attribute (and any others) in `math.mat` (#64).
|
|
|
|
* Methods: fix 'has' method so it works for sequences of elements.
|
|
|
|
* Evaluate: run show rules after looking up an identifier.
|
|
|
|
* Show rule changes:
|
|
|
|
+ ShowRule now has an extra parameter for a unique identifier.
|
|
This allows us to prevent double application of show rules,
|
|
while allowing distinct rules with the same selector. [API change]
|
|
+ In applying show rules, we no longer recurse into an element's
|
|
fields, as this caused double application of show rules in nested
|
|
contexts. (See #63.) However, this is not a complete fix because there
|
|
are some tests that still fail.
|
|
+ Ensure that show rules are applied to text elements.
|
|
|
|
* Reorganized tests. Now put the `.out` and `.typ` files in same directory,
|
|
rather than having separate trees.
|
|
|
|
-------------------------------------------------------------------
|
|
Sun Feb 9 03:12:11 UTC 2025 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.6.2.
|
|
## 0.6.2
|
|
|
|
* Allow types to act as constructor functions, as in typst (#61).
|
|
Add new unexported module, Typst.Constructors, defining the
|
|
constructors for each of the typst types.
|
|
Fix name of string type: it is `str`, not `string` (which is only
|
|
the `repr`).
|
|
|
|
* Support `dict`, `datetime`, `symbol` constructors.
|
|
|
|
* Improve path handling when loading files (#60).
|
|
We now look in the "local path" (the path of the containing file)
|
|
except when the path begins with `/` (in which case it is resolved
|
|
relative to the package path).
|
|
|
|
* Fix issue with expression parsing involving labels (#59).
|
|
|
|
* Remove spurious trace in `getPath`.
|
|
|
|
-------------------------------------------------------------------
|
|
Sat Dec 7 21:53:05 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.6.1.
|
|
## 0.6.1
|
|
|
|
* Fix precedence for functions (#55).
|
|
`1(x)` and `!(x)` should not be parsed as functions.
|
|
Note that we still don't match typst's behavior for `f_"!"(x)`.
|
|
For us this works just like `f_!(x)`, but for typst we get
|
|
a function in the subscript for the former but not the latter.
|
|
Fixing this would require some changes in the types.
|
|
|
|
* Define sys.version and sys.inputs.typst-hs-version (#56).
|
|
The former is set to the version of typst we are trying to
|
|
implement. The latter is a stringified version number from typst-hs.
|
|
This will allow typst programs to tell when they're running
|
|
on typst-hs (or pandoc), and react accordingly.
|
|
|
|
* Rename stBeforeSpace -> stSpaceBefore to avoid confusion.
|
|
|
|
* Fix precedence issues in math parsing (#54).
|
|
Increased precedence of ! (factorial).
|
|
`_` or `^` should eagerly gobble a grouped argument (`c_(a)`).
|
|
|
|
* Minimal support for `context` (#53). Parse `context` keyword.
|
|
New Context constructor in Expr [API change].
|
|
Evaluate this by just evaluating the expression, for now.
|
|
Note that we don't support the features (like location or
|
|
numbering) that context is used to affect anyway, so this change
|
|
probably won't be enough for meaningful support. But it might
|
|
prevent some documents from issuing errors.
|
|
|
|
* Arguments at method.
|
|
|
|
* Array windows, reduce, to-dict methods.
|
|
|
|
* Allow parentheses in import.
|
|
|
|
* Make standard module available under std (typst 0.12).
|
|
|
|
* Add over/underparen, over/undershell in math module.
|
|
|
|
* Add stretch function.
|
|
|
|
* Add skew.
|
|
|
|
* Depend on typst-symbols 0.1.7 and start to target typst 0.12.
|
|
|
|
* Reset indentation requirements inside `[]` content block. e.g.
|
|
```
|
|
/ B: #block[
|
|
- a
|
|
]
|
|
```
|
|
We don't need indentation inside the block content.
|
|
|
|
-------------------------------------------------------------------
|
|
Tue Sep 10 01:23:44 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.6.
|
|
## 0.6
|
|
|
|
* Recognize figure.caption function (#52).
|
|
|
|
* Allow defined identifiers to override math defaults (#51).
|
|
Previously we evaluated all math in a special environment that
|
|
shadowed any user-defined functions with the same-named functions
|
|
from the math or sym modules. This change gives user-defined identifiers
|
|
priority over the math defaults, allowing things like `bb` to be
|
|
overridden.
|
|
|
|
* Typst.Types: EvalState now has two new fields, `evalMathIdentifiers` and
|
|
`evalStandardIdentifiers`. `evalIdentifiers` is now just for user-defined
|
|
identifiers. [API change]
|
|
|
|
* Don't implicitly load sys module for math.
|
|
|
|
-------------------------------------------------------------------
|
|
Sun Jul 28 20:33:33 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.5.0.5.
|
|
## 0.5.0.5
|
|
|
|
* Allow numbers like `1.` in math mode (#50).
|
|
|
|
-------------------------------------------------------------------
|
|
Mon Jun 24 18:45:46 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.5.0.4.
|
|
## 0.5.0.4
|
|
|
|
* Add built-in identifiers for standard types (#21):
|
|
array, bool, content, int, float, regex, length,
|
|
alignment, color, symbol, string.
|
|
|
|
* Adjust emphasis parser for CJK characters (#49).
|
|
Typst documentation says that `*` strong emphasis
|
|
"only works at word boundaries." However, in typst/typst#2648
|
|
this was changed for CJK.
|
|
|
|
-------------------------------------------------------------------
|
|
Sun Apr 7 05:58:34 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.5.0.3.
|
|
## 0.5.0.3
|
|
|
|
* Support grid.(cell,header,footer,hline,vline) (#44).
|
|
|
|
* Support table.(cell,vline,hline,header,footer) (#44).
|
|
|
|
* Allow space after equation in code (#43).
|
|
|
|
* Treat unicode whitespace characters as whitespace (#43).
|
|
|
|
* Allow raw (backticked) content as code expression (#43).
|
|
|
|
* Allow colon in label (#43).
|
|
|
|
* Allow line comments at end of file (#43).
|
|
|
|
* Depend on typst-symbols 0.1.6.
|
|
|
|
* Add Haddock docs to parts of the public API (Eli Adelhult,
|
|
Leopold Wigratt).
|
|
|
|
* Avoid backtracking in `pDictExpr` (Jonathan Widén).
|
|
|
|
* Allow colon in dict literal (Jonathan Widén) (#43, #45).
|
|
|
|
-------------------------------------------------------------------
|
|
Thu Mar 14 19:16:40 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.5.0.2.
|
|
## 0.5.0.2
|
|
|
|
* Fix parsing of field access in math (#41). `$plus.circle_2$`
|
|
should give you a subscript 2 on the symbol `plus.circle`.
|
|
Underscores are not allowed in field access in math.
|
|
|
|
* Support toml-parser-2.0.0.0 (Eric Mertens).
|
|
|
|
-------------------------------------------------------------------
|
|
Wed Feb 14 20:16:16 UTC 2024 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.5.0.1.
|
|
## 0.5.0.1
|
|
|
|
* Set `evalPackageRoot` to working dir to start, even if the file to be
|
|
converted is somewhere else. This seems to be what the test suite expects.
|
|
|
|
* Make file loading relative to package root if present (#39).
|
|
|
|
* Parser: remove `pBindExpr` from `pBaseExpr`. It does not seem
|
|
to be necessary, and it causes problems with things like `$#x = $y$` (#34).
|
|
|
|
* Fix assignment of module name in package imports (#30).
|
|
|
|
* Don't allow `container.at` to insert new values (#26).
|
|
|
|
* Handle `dict.at(variable) = expression` (#25).
|
|
|
|
* Remove dependency on the unmaintained digits library (#24).
|
|
We just copy the code for the function we need (with
|
|
attribution): it is BSD3-licensed.
|
|
|
|
-------------------------------------------------------------------
|
|
Sat Dec 16 02:32:12 UTC 2023 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.5.
|
|
## 0.5
|
|
|
|
* Support "as" keyword in imports (#21).
|
|
[API change] In Typst.Syntax, the Imports type now contains
|
|
fields for an optional "as" identifier.
|
|
|
|
* Support version type (#21).
|
|
[API change] Add VVersion constructor to Val, TVersion to ValType.
|
|
Support the `version` constructor function and the `at` method (#21).
|
|
|
|
* Parser: Ensure that `set` rule doesn't pick up `if` on next line (#23).
|
|
|
|
* Parser: Allow multiline strings (#20).
|
|
|
|
* Allow function applications in dictionary key construction (#19).
|
|
[API change]: in Typst.Syntax, the Dict constructor for Expr
|
|
now takes type `[Spreadable (Expr, Expr)]` instead of
|
|
`[Spreadable (Identifier, Expr)]`. This is because the key
|
|
identifiers sometimes are not known at parse time and must
|
|
be computed in Evaluate.
|
|
|
|
## 0.4
|
|
|
|
* `evaluateTypst` now returns a single Content instead of a sequence
|
|
(breaking API change). The Content is a "document" element that wraps
|
|
the other contents. (This is added automatically in typst:
|
|
https://typst.app/docs/reference/model/document/#parameters-title.)
|
|
|
|
* Improve math parser.
|
|
|
|
* Add `sys` module and `sys.version`.
|
|
|
|
* Math: add `sech` and `csch` operators, `math.mid`.
|
|
|
|
* `math.op` is no longer limited to string argument.
|
|
|
|
* Remove automatic matching for `|..|` in math (typst 0.8 breaking change).
|
|
|
|
* Fix `in` so it works with a type.
|
|
|
|
* `repr` label with angle brackets.
|
|
|
|
* `cite` now just takes one positional element, a label
|
|
instead of strings (typst 0.9 breaing change).
|
|
|
|
* Add `quote` element.
|
|
|
|
* Add first-class types. `type()` function now returns a
|
|
ValType instead of a string. Allow ValTypes to == strings
|
|
for compatibility, as in typst.
|
|
|
|
* `highlight` element for text.
|
|
|
|
* Allow array `zip` method to take any number of arguments.
|
|
|
|
* Add `calc.tau`.
|
|
|
|
* Add array `intersperse` method.
|
|
|
|
* Add string `rev` method.
|
|
|
|
* Fix search path for typst packages, from
|
|
`cache/typst/packages/preview/packagename-major.minor.patch` to
|
|
`cache/typst/packages/preview/packagename-major/minor.patch` (#18).
|
|
|
|
* Add support of 'wide' spacing character.
|
|
|
|
* Fix precedence for numerical attachments (#17).
|
|
Typst makes a subtle distinction between `$a_1(x)$`, in which
|
|
the `_` groups more tightly than the `(..)`, and $`a_f(x)$`,
|
|
in which the `(..)` groups more tightly than the `_`.
|
|
This patch implements the distinction. This fixes conversion of,
|
|
e.g., `$n(a)^(b)$`.
|
|
|
|
* Use typst-symbols 0.1.5.
|
|
|
|
-------------------------------------------------------------------
|
|
Fri Oct 27 16:57:00 UTC 2023 - Peter Simons <psimons@suse.com>
|
|
|
|
- Update typst to version 0.3.2.1.
|
|
Upstream has edited the change log file since the last release in
|
|
a non-trivial way, i.e. they did more than just add a new entry
|
|
at the top. You can review the file at:
|
|
http://hackage.haskell.org/package/typst-0.3.2.1/src/CHANGELOG.md
|
|
|
|
-------------------------------------------------------------------
|
|
Wed Jun 7 00:20:03 UTC 2023 - Peter Simons <psimons@suse.com>
|
|
|
|
- Add typst at version 0.1.0.0.
|
|
|