Subject: CVS commit: pkgsrc/textproc/typst
From: pin
Date: 2023-07-10 21:43:05
Message id: 20230710194305.F1582FBDB@cvs.NetBSD.org

Log Message:
textproc/typst: update to 0.6.0

Version 0.6.0 (June 30, 2023)
  Package Management
   - Typst now has built-in package management
   - You can import published community packages or create and use system-local
     ones
   - Published packages are also supported in the web app

  Math
   - Added support for optical size variants of glyphs in math mode
   - Added argument to enable limits conditionally depending on whether the
     equation is set in display or inline style
   - Added gt.eq.slant and lt.eq.slant symbols
   - Increased precedence of factorials in math mode ([$1/n!$] works
     correctly now)
   - Improved underlines and overlines in math mode
   - Fixed usage of limits function in show rules
   - Fixed bugs with line breaks in equations

  Text and Layout
   - Added support for alternating page margins with the inside and outside keys
   - Added support for specifying the page binding
   - Added to argument to pagebreak function to skip to the next even or odd
     page
   - Added basic i18n for a few more languages (TR, SQ, TL)
   - Fixed bug with missing table row at page break
   - Fixed bug with underlines
   - Fixed bug superfluous table lines
   - Fixed smart quotes after line breaks
   - Fixed a crash related to text layout

  Command line interface
   - Breaking change: Added requirement for --root/TYPST_ROOT directory to
     contain the input file because it designates the project root. Existing
     setups that use TYPST_ROOT to emulate package management should switch to
     local packages
   - Breaking change: Now denies file access outside of the project root
   - Added support for local packages and on-demand package download
   - Now watches all relevant files, within the root and all packages
   - Now displays compilation time

  Miscellaneous Improvements
   - Added outline.entry to customize outline entries with show rules
   - Added some hints for error messages
   - Added some missing syntaxes for raw highlighting
   - Improved rendering of rotated images in PNG export and web app
   - Made footnotes reusable and referenceable
   - Fixed bug with citations and bibliographies in locate
   - Fixed inconsistent tense in documentation

  Development
   - Added contribution guide
   - Reworked World interface to accommodate for package management and make it
     a bit simpler to implement (Breaking change for implementors)

Version 0.5.0 (June 9, 2023)
  Text and Layout
   - Added raw syntax highlighting for many more languages
   - Added support for Korean numbering
   - Added basic i18n for a few more languages (NL, SV, DA)
   - Improved linebreaking for East Asian languages
   - Expanded functionality of outline indent property
   - Fixed footnotes in columns
   - Fixed page breaking bugs with footnotes
   - Fixed bug with handling of footnotes in lists, tables, and figures
   - Fixed a bug with CJK punctuation adjustment
   - Fixed a crash with rounded rectangles
   - Fixed alignment of line elements

  Math
   - Breaking change: The syntax rules for mathematical attachments were
     improved: $f^abs(3)$ now parses as $f^(abs(3))$ instead of $(f^abs)(3)$.
     To disambiguate, add a space: $f^zeta (3)$.
   - Added forced size commands for math (e.g., display)
   - Added supplement parameter to equation, used by references
   - New symbols: bullet, xor, slash.big, sigma.alt, tack.r.not, tack.r.short,
     tack.r.double.not
   - Fixed a bug with symbols in matrices
   - Fixed a crash in the attach function

  Scripting
   - Added new datetime type and datetime.today() to retrieve the current date
   - Added str.from-unicode and str.to-unicode functions
   - Added fields method on content
   - Added base parameter to str function
   - Added calc.exp and calc.ln
   - Improved accuracy of calc.pow and calc.log) for specific bases
   - Fixed removal order for dictionary
   - Fixed .at(default: ..) for strings and content
   - Fixed field access on styled elements
   - Removed deprecated calc.mod function

  Command line interface
   - Added PNG export via typst compile source.typ output-{n}.png. The output
     path must contain [{n}] if the document has multiple pages.
   - Added --diagnostic-format=short for Unix-style short diagnostics
   - Doesn't emit color codes anymore if stderr isn't a TTY
   - Now sets the correct exit code when invoked with a non-existent file
   - Now ignores UTF-8 BOM in Typst files

  Miscellaneous Improvements
   - Improved errors for mismatched delimiters
   - Improved error message for failed length comparisons
   - Fixed a bug with images not showing up in Apple Preview
   - Fixed multiple bugs with the PDF outline
   - Fixed citations and other searchable elements in hide
   - Fixed bugs with reference supplements
   - Fixed Nix flake

Files:
RevisionActionfile
1.5modifypkgsrc/textproc/typst/Makefile
1.5modifypkgsrc/textproc/typst/cargo-depends.mk
1.5modifypkgsrc/textproc/typst/distinfo
1.2modifypkgsrc/textproc/typst/patches/patch-Cargo.toml
1.4modifypkgsrc/textproc/typst/patches/patch-tests_Cargo.toml