forked from pool/ghc-typst
Compare commits
16 Commits
Author | SHA256 | Date | |
---|---|---|---|
ab25681a10 | |||
490918dfda | |||
6e2eaf273e | |||
1e9f8e9e31 | |||
e854620095 | |||
a313dbf5d9 | |||
cc5e4e9699 | |||
e754c92dcd | |||
f670b04732 | |||
6f9ef9372a | |||
4bfc091240 | |||
476fd1d069 | |||
73fef76159 | |||
d0db2c3d79 | |||
359447f1e6 | |||
9dace832ba |
@@ -1,3 +1,147 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Tue Sep 10 01:23:44 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc-typst
|
# spec file for package ghc-typst
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
%global pkgver %{pkg_name}-%{version}
|
%global pkgver %{pkg_name}-%{version}
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.6
|
Version: 0.8.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Parsing and evaluating typst syntax
|
Summary: Parsing and evaluating typst syntax
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@@ -82,7 +82,7 @@ BuildRequires: ghc-tasty-prof
|
|||||||
|
|
||||||
%description
|
%description
|
||||||
A library for parsing and evaluating typst syntax. Typst (<https://typst.app>)
|
A library for parsing and evaluating typst syntax. Typst (<https://typst.app>)
|
||||||
is a document layout and formatting language. This library targets typst 0.10
|
is a document layout and formatting language. This library targets typst 0.13
|
||||||
and currently offers only partial support.
|
and currently offers only partial support.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a11f38d8433866e2a62cb221cef460937eaf1ef5ca84f11f587de7894f6f5724
|
|
||||||
size 6433831
|
|
3
typst-0.8.0.1.tar.gz
Normal file
3
typst-0.8.0.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9b3855d79973e5c98173cf071060b9e394899219cb80926e8b04eaaa8fa97803
|
||||||
|
size 6430160
|
Reference in New Issue
Block a user