14 Commits

Author SHA256 Message Date
dcae72406a Accepting request 1321140 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1321140
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=16
2025-12-05 15:55:57 +00:00
4d7df7263b osc copypac from project:devel:languages:haskell:ghc-9.12.x package:ghc-typst revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-typst?expand=0&rev=31
2025-12-04 11:55:59 +00:00
f86eef3799 Accepting request 1303733 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1303733
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=15
2025-09-11 12:39:58 +00:00
0ee1da0c40 osc copypac from project:devel:languages:haskell:ghc-9.12.x package:ghc-typst revision:2, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-typst?expand=0&rev=29
2025-09-05 10:09:04 +00:00
e57e524bfa Accepting request 1282764 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1282764
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=14
2025-06-04 18:29:51 +00:00
7b3daf3316 osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-typst revision:7, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-typst?expand=0&rev=27
2025-05-29 21:01:42 +00:00
3be73aefcb Accepting request 1279253 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1279253
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=13
2025-05-22 14:57:15 +00:00
1f0d81aede osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-typst revision:6, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-typst?expand=0&rev=25
2025-05-22 10:58:58 +00:00
a1ec3f3534 Accepting request 1255899 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1255899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=12
2025-03-25 21:12:12 +00:00
71000e893d osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-typst revision:5, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-typst?expand=0&rev=23
2025-03-25 09:35:07 +00:00
c98027f31b Accepting request 1246289 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1246289
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=11
2025-02-17 19:54:38 +00:00
34eb3ea99e osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-typst revision:4, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-typst?expand=0&rev=21
2025-02-10 22:00:55 +00:00
711148f90e Accepting request 1231482 from devel:languages:haskell
version update for ghc-9.10.1

OBS-URL: https://build.opensuse.org/request/show/1231482
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=10
2024-12-20 22:11:07 +00:00
d3be5ea4df osc copypac from project:devel:languages:haskell:ghc-9.10.x package:ghc-typst revision:3, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-typst?expand=0&rev=19
2024-12-10 11:25:58 +00:00
4 changed files with 181 additions and 6 deletions

View File

@@ -1,3 +1,178 @@
-------------------------------------------------------------------
Sun Nov 30 16:24:01 UTC 2025 - Peter Simons <psimons@suse.com>
- Update typst to version 0.8.1.
## 0.8.1
* Fix parsing and evaluation of closures with _ (#84, Norbert Pozar).
* Improve parsing of float literals (#83, Norbert Pozar).
* Fix incorrect parsing of underscores in code (#82, Norbert Pozar).
* Fix early return from function (#81).
* Add default parameter for `first`, `last` methods on string, array
(typst 0.14 addition).
* Make the top-level document susceptible to set rules (#80).
* Handle `#title` (#80).
* Use typst-symbols 0.1.9 (typst 0.14 symbols).
-------------------------------------------------------------------
Wed Sep 3 21:39:15 UTC 2025 - Peter Simons <psimons@suse.com>
- Update typst to version 0.8.0.2.
## 0.8.0.2
* Give correct source positions even with nested includes (#74).
-------------------------------------------------------------------
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>

View File

@@ -1,7 +1,7 @@
#
# 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
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 0.6
Version: 0.8.1
Release: 0
Summary: Parsing and evaluating typst syntax
License: BSD-3-Clause
@@ -82,7 +82,7 @@ BuildRequires: ghc-tasty-prof
%description
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.
%package devel

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a11f38d8433866e2a62cb221cef460937eaf1ef5ca84f11f587de7894f6f5724
size 6433831

3
typst-0.8.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f9c97383b21fd50f297e1adfd55d4b7baf9fe580c7bad70c90aa11877e7d6488
size 6432246