Review comments

This commit is contained in:
Laurenz 2025-02-04 10:53:26 +01:00
parent 3882fc9312
commit c6ceafa415

View File

@ -9,10 +9,10 @@ description: Changes in Typst 0.13.0
- There is now a distinction between [proper paragraphs]($par) and just - There is now a distinction between [proper paragraphs]($par) and just
inline-level content. This is important for future work on accessibility and inline-level content. This is important for future work on accessibility and
means that [first line indent]($par.first-line-indent) can now be enabled for means that [first line indent]($par.first-line-indent) can now be enabled for
all paragraph instead of just consecutive ones. all paragraphs instead of just consecutive ones.
- The [`outline`] has a better out-of-the-box look and is more customizable - The [`outline`] has a better out-of-the-box look and is more customizable
- The new [`curve`] function (that supersedes the `path` function) provides a - The new [`curve`] function (that supersedes the `path` function) provides a
simpler and more flexible interface for creating Beziér curves simpler and more flexible interface for creating Bézier curves
- The `image` function now supports raw [pixel raster formats]($image.format) - The `image` function now supports raw [pixel raster formats]($image.format)
for generating images from within Typst for generating images from within Typst
- Functions that accept [file paths]($syntax/#paths) now also accept raw - Functions that accept [file paths]($syntax/#paths) now also accept raw
@ -23,7 +23,8 @@ description: Changes in Typst 0.13.0
would be displayed in italics would be displayed in italics
- You can now specify which charset should be [covered]($text.font) by which - You can now specify which charset should be [covered]($text.font) by which
font family font family
- The [`pdf.embed`] function lets you embed files into the exported PDF - The [`pdf.embed`] function lets you embed arbitrary files in the exported
PDF
- HTML export is currently under active development. The feature is still _very_ - HTML export is currently under active development. The feature is still _very_
incomplete, but already available for experimentation behind a feature flag. incomplete, but already available for experimentation behind a feature flag.
@ -52,7 +53,7 @@ description: Changes in Typst 0.13.0
for a grid-like look for a grid-like look
- Automatic indentation now also indents entries without a numbering - Automatic indentation now also indents entries without a numbering
- Titles wrapping over multiple lines now have hanging indent - Titles wrapping over multiple lines now have hanging indent
- The page number won't appear alone on its own line number anymore - The page number won't appear alone on its own line anymore
- The link now spans the full entry instead of just the title and page number - The link now spans the full entry instead of just the title and page number
- The default spacing between outline leader dots was increased - The default spacing between outline leader dots was increased
- The [`fill`]($outline.entry.fill) parameter was moved from `outline` to - The [`fill`]($outline.entry.fill) parameter was moved from `outline` to
@ -102,7 +103,7 @@ description: Changes in Typst 0.13.0
## Scripting ## Scripting
- Functions that accept [file paths]($syntax/#paths) now also accept raw - Functions that accept [file paths]($syntax/#paths) now also accept raw
[bytes] instead [bytes]
- [`image`], [`cbor`], [`csv`], [`json`], [`toml`], [`xml`], and [`yaml`] now - [`image`], [`cbor`], [`csv`], [`json`], [`toml`], [`xml`], and [`yaml`] now
support a path string or bytes and their `.decode` variants are deprecated support a path string or bytes and their `.decode` variants are deprecated
- [`plugin`], [`bibliography`], [`bibliography.style`], [`cite.style`], - [`plugin`], [`bibliography`], [`bibliography.style`], [`cite.style`],
@ -121,14 +122,14 @@ description: Changes in Typst 0.13.0
impure initialization in a way that doesn't break Typst's purity guarantees impure initialization in a way that doesn't break Typst's purity guarantees
- The variable name bound by a bare import (no renaming, no import list) is now - The variable name bound by a bare import (no renaming, no import list) is now
determined statically and dynamic imports without `{as}` renaming (e.g. determined statically and dynamic imports without `{as}` renaming (e.g.
`{import "ot" + "her.typ}`) are a hard error **(Breaking change)** `{import "ot" + "her.typ"}`) are a hard error **(Breaking change)**
- Values of the [`arguments`] type can now be added with `+` and - Values of the [`arguments`] type can now be added with `+` and
[joined]($scripting/#blocks) in curly-braced code blocks [joined]($scripting/#blocks) in curly-braced code blocks
- Functions in an element function's scope can now be called with method syntax, - Functions in an element function's scope can now be called with method syntax,
bringing elements and types closer (in anticipation of a future full bringing elements and types closer (in anticipation of a future full
unification of the two). Currently, this is only useful for [`outline.entry`] unification of the two). Currently, this is only useful for [`outline.entry`]
as no other element function defines methods. as no other element function defines methods.
- Added [`calc.norm`] function for computing Euclidean norms - Added [`calc.norm`] function
- Added support for 32-bit floats in [`float.from-bytes`] and [`float.to-bytes`] - Added support for 32-bit floats in [`float.from-bytes`] and [`float.to-bytes`]
- The [`decimal`] constructor now also accepts decimal values - The [`decimal`] constructor now also accepts decimal values
- Improved `repr` of [symbols]($symbol), [arguments], and [types]($type) - Improved `repr` of [symbols]($symbol), [arguments], and [types]($type)
@ -138,7 +139,7 @@ description: Changes in Typst 0.13.0
## Math ## Math
- Fixed a bug where single letter strings in math (`[$"a"$]`) would be displayed - Fixed a bug where single letter strings in math (`[$"a"$]`) would be displayed
in italics in italics
- Math function calls can now have hypheanted named arguments and support - Math function calls can now have hyphenated named arguments and support
[argument spreading]($arguments/#spreading) [argument spreading]($arguments/#spreading)
- Better looking accents thanks to support for the `flac` (Flattened Accent - Better looking accents thanks to support for the `flac` (Flattened Accent
Forms) and `dtls` (Dotless Forms) OpenType features Forms) and `dtls` (Dotless Forms) OpenType features
@ -210,7 +211,7 @@ TODO (update after hayagriva bump)
- A shebang `#!` at the very start of a file is now ignored - A shebang `#!` at the very start of a file is now ignored
## PDF export ## PDF export
- Added `pdf.embed` function for embedding files in the exported PDF - Added `pdf.embed` function for embedding arbitrary files in the exported PDF
- Added support for PDF/A-3b export - Added support for PDF/A-3b export
- The PDF timestamp will now contain the timezone by default - The PDF timestamp will now contain the timezone by default
@ -262,6 +263,9 @@ TODO (update after codex bump)
- [`image.decode`], [`cbor.decode`], [`csv.decode`], [`json.decode`], - [`image.decode`], [`cbor.decode`], [`csv.decode`], [`json.decode`],
[`toml.decode`], [`xml.decode`], [`yaml.decode`] in favor of the top-level [`toml.decode`], [`xml.decode`], [`yaml.decode`] in favor of the top-level
functions directly accepting both paths and bytes functions directly accepting both paths and bytes
- The `sect` symbol, its variants, and `integral.sect`
- Fully removed type/str compatibility behaviour (e.g. `{int == "integer"}`)
which was temporarily introduced in Typst 0.8 **(Breaking change)**
## Development ## Development
- The `typst::compile` function is now generic and can return either a - The `typst::compile` function is now generic and can return either a