16 Commits

Author SHA256 Message Date
ab25681a10 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
490918dfda 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
6e2eaf273e 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
1e9f8e9e31 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
e854620095 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
a313dbf5d9 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
cc5e4e9699 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
e754c92dcd 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
f670b04732 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
6f9ef9372a 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
4bfc091240 Accepting request 1218574 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1218574
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=9
2024-10-28 14:19:24 +00:00
476fd1d069 osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-typst revision:8, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-typst?expand=0&rev=17
2024-10-26 13:48:29 +00:00
73fef76159 Accepting request 1191559 from devel:languages:haskell
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1191559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=8
2024-08-05 15:21:47 +00:00
d0db2c3d79 osc copypac from project:devel:languages:haskell:ghc-9.8.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=15
2024-07-29 21:00:52 +00:00
359447f1e6 Accepting request 1188663 from devel:languages:haskell
version update

OBS-URL: https://build.opensuse.org/request/show/1188663
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-typst?expand=0&rev=7
2024-07-22 15:16:49 +00:00
9dace832ba osc copypac from project:devel:languages:haskell:ghc-9.8.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=13
2024-07-19 12:40:34 +00:00
4 changed files with 194 additions and 6 deletions

View File

@@ -1,3 +1,191 @@
-------------------------------------------------------------------
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>

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.5.0.3
Version: 0.8.0.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:e3411f7a02e5e50acb3354dc077a207059c3de419c5da1104211fbc4ef06493c
size 6432307

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

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