Commit Graph

1447 Commits

Author SHA1 Message Date
Malo 56f4fa2b4d
Documentation improvements (#5888) 2025-02-23 11:31:28 +00:00
Max 55bc5f4c94
Make math shorthands noncontinuable (#5925) 2025-02-23 11:28:24 +00:00
PgBiel 240f238eee
Fix HTML export of table with gutter (#5920) 2025-02-23 11:26:14 +00:00
Matthew Toohey 3de3813ca0
--make-deps fixes (#5873) 2025-02-18 18:04:40 +00:00
ᡥᠠᡳᡤᡳᠶᠠ ᡥᠠᠯᠠ·ᠨᡝᡴᠣ 猫 74e4f78687
HTML export: Use `<code>` for inline `RawElem` (#5884) 2025-02-18 10:16:19 +00:00
Laurenz 25c86accbb
More robust SVG auto-detection (#5878) 2025-02-17 10:56:00 +00:00
Laurenz 5fc679f3e7
Remove Linux Libertine warning (#5876) 2025-02-16 13:18:39 +00:00
Ana Gelez 19a12f379f
Lazy parsing of the package index (#5851) 2025-02-12 15:50:48 +00:00
+merlan #flirora 02cd43e27f
`Gradient::repeat`: Fix floating-point error in stop calculation (#5837) 2025-02-12 12:38:40 +00:00
+merlan #flirora 83ad407d3c
Update documentation for `float.{to-bits, from-bits}` (#5836) 2025-02-12 12:35:03 +00:00
Laurenz a0cd89b478
Fix autocomplete and jumps in math (#5849) 2025-02-11 10:30:30 +00:00
Laurenz 89e71acecd
Respect `par` constructor arguments (#5842) 2025-02-10 14:37:19 +00:00
TwoF1nger ee47cb8469
Add smart quotes for Bulgarian (#5807) 2025-02-10 10:42:16 +00:00
Malo 25e27169e1
Add warning for `pdf.embed` elem used with HTML (#5829) 2025-02-10 10:39:32 +00:00
PgBiel 3fba256405
Don't crash on image with zero DPI (#5835) 2025-02-10 10:39:04 +00:00
Laurenz e4f8e57c53
Fix unnecessary import rename warning (#5828) 2025-02-06 21:10:43 +00:00
Malo ca702c7f82
Documentation fixes and improvements (#5816) 2025-02-06 10:18:10 +00:00
Laurenz d897ab5e7d
Autocomplete content methods (#5822) 2025-02-06 09:34:28 +00:00
Laurenz 029ae4a5ea
Export target docs (#5812)
Co-authored-by: Martin Haug <3874949+reknih@users.noreply.github.com>
2025-02-05 13:24:10 +00:00
Eric Biedert 85b0318158
Fix small copy-paste oversight (#5811) 2025-02-05 12:40:54 +00:00
Laurenz 0ea668077d
Bump codex to 0.1.0 (#5805) 2025-02-04 10:08:43 +00:00
Ryan Chua b25cf22018
Fix typo in page documentation (#5804) 2025-02-04 09:40:10 +00:00
Laurenz 50ccd7d60f
Scope deprecations (#5798) 2025-02-04 09:38:31 +00:00
Laurenz eee903b0f8
Refactor `Scope` (#5797) 2025-02-03 16:04:54 +00:00
Laurenz 12dbb012b1
Revert adding `flatten-text` to `image` (#5789) 2025-02-02 19:25:58 +00:00
Malo f239b0a6a1
Change the default math class of U+22A5 ⊥ UP TACK to Normal (#5714) 2025-01-31 10:05:03 +00:00
Hong Jiarong 46727878da
Disable cjk_latin_spacing in raw by default (#5753) 2025-01-31 10:02:42 +00:00
Laurenz a1f263862c
Change type repr to short name (#5788) 2025-01-31 09:56:49 +00:00
frozolotl 3eb6e87af1
Include images from raw pixmaps and more (#5632)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-31 09:56:25 +00:00
Laurenz be1fa91a00
Modular, multi-threaded, transitioning plugins (#5779) 2025-01-30 13:36:15 +00:00
Laurenz 1b2719c94c
Resolve bound name of bare import statically (#5773) 2025-01-29 14:20:30 +00:00
Andrew Voynov 9665eecdb6
Fixed typo in the new outline docs (#5772) 2025-01-28 10:08:12 +00:00
Laurenz 85d1778974
Support first-line-indent for every paragraph (#5768) 2025-01-27 13:15:20 +00:00
Laurenz 176b070c77
Fix space collapsing for explicit paragraphs (#5749) 2025-01-24 12:31:03 +00:00
Laurenz 26e65bfef5
Semantic paragraphs (#5746) 2025-01-24 12:11:26 +00:00
Laurenz 467968af07
Tweak HTML pretty printing (#5745) 2025-01-24 11:15:09 +00:00
Laurenz cd044825fc
Handle boxes and blocks a bit better in HTML export (#5744)
Co-authored-by: Martin Haug <3874949+reknih@users.noreply.github.com>
2025-01-23 22:18:02 +00:00
Ian Wrzesinski 6fe1e20afb Update math TextElem layout to separate out SymbolElem 2025-01-23 16:30:29 -05:00
Ian Wrzesinski 7838da02ec Add SymbolElem to realization 2025-01-23 16:28:29 -05:00
Ian Wrzesinski fecdc39846 Use SymbolElem in more places and add `char` cast for content 2025-01-23 16:28:29 -05:00
Ian Wrzesinski c47b71b435 Basic SymbolElem addition 2025-01-23 16:28:29 -05:00
Ian Wrzesinski 0b8b7d0f23 Just add MathText SyntaxKind 2025-01-23 16:28:29 -05:00
Malo 2d33393df9
Add support for `c2sc` OpenType feature in `smallcaps` (#5655) 2025-01-23 18:24:35 +00:00
T0mstone b7546bace7
Ignore shebang at start of file (#5702) 2025-01-23 13:05:12 +00:00
wznmickey ce299d5832
Support syntactically directly nested list, enum, and term list (#5728)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-23 12:52:20 +00:00
SekoiaTree 58dbbd48fe
Add lcm as an operator in math mode (#5718)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-23 12:35:29 +00:00
Ian Wrzesinski f7bd03dd76
Fix delimiter unparen syntax (#5739) 2025-01-23 12:27:38 +00:00
Michael Färber b3fb6c2326
Support quotes in HTML output (#5673) 2025-01-23 12:21:34 +00:00
Michael Färber e61cd6fb9e
Support `start` attribute for `enum` in HTML export (#5676) 2025-01-23 12:18:46 +00:00
Michael Färber dda486a412
HTML tables (#5666) 2025-01-23 12:08:48 +00:00
Laurenz 52ee33a275
Rework outline (#5735) 2025-01-23 11:50:51 +00:00
Laurenz 1bd8ff0e0f
Methods on elements (#5733) 2025-01-23 10:16:04 +00:00
Laurenz 6fcc432284
Don't link items if container is already linked (#5732) 2025-01-22 13:24:14 +00:00
Laurenz b45f574703
Move no-hyphenation style in link from show to show-set rule (#5731) 2025-01-22 12:58:57 +00:00
Laurenz b90ad470d6
Remove redundant doc comments on standard arguments (#5725) 2025-01-21 11:10:06 +00:00
Eric Biedert c22c47b9c9
Add font exception for NewCM Sans Math (#5682) 2025-01-16 13:40:57 +00:00
Ian Wrzesinski 63c4720ed2
Fix list indent when starting at an open bracket (#5677) 2025-01-16 13:40:29 +00:00
Laurenz a4ac4e6562
Make `typst-timing` WASM-compatible (#5689) 2025-01-13 19:19:37 +00:00
Laurenz 6b9b78596a
Don't generate accessors for required fields (#5680) 2025-01-10 16:54:11 +00:00
Laurenz 9473aface1
Fix memory size of `TextElem` (#5674) 2025-01-09 13:00:18 +00:00
Max be6629c7cb
Better math argument parsing (#5008) 2025-01-09 10:49:06 +00:00
Laurenz e2b37fef33
Revamp data loading and deprecate `decode` functions (#5671) 2025-01-09 09:34:16 +00:00
Laurenz dacd6acd5e
More flexible and efficient `Bytes` representation (#5670) 2025-01-08 10:57:56 +00:00
Niklas Eicker 0a374d2380
Embed files associated with the document as a whole (#5221)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-08 09:38:34 +00:00
Malo e09b55f00f
Allow adding and joining `arguments` (#5651) 2025-01-06 15:41:58 +00:00
Michael Färber 5c876535cc
Move `CellGrid` from `typst-layout` to `typst-library` (#5585) 2025-01-06 15:20:28 +00:00
bbb651 🇮🇱 ce7f680fd5
Avoid stripping url prefixes multiple times or multiple prefixes (#5659) 2025-01-06 15:13:17 +00:00
Laurenz cb8d862a55
Terminate pretty-printed HTML with trailing newline (#5661) 2025-01-06 13:55:34 +00:00
Myriad-Dreamin e8bbf3794f
Select items by import paths (#5518) 2025-01-06 13:31:42 +00:00
Andrew Voynov ec1e8f9e8d
Added precise definition for "character" in the docs for `str.split` (#5616) 2025-01-06 13:15:11 +00:00
Malo a2f685483a
Improve `repr` for `arguments` (#5652) 2025-01-06 12:43:41 +00:00
Max bb38a01d06
Fix math size resolving (#5596) 2024-12-20 12:35:57 +00:00
Malo 39706fe42f
Error on duplicate symbol variant with modifiers in different orders (#5587)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-20 11:15:14 +00:00
Joshua Gawley 6953685358
Document result of splitting string with empty string as separator (#5572) 2024-12-20 10:18:52 +00:00
Max c3334a55fe
Fix arbitrarily nested equations in the base of `math.attach` (#5613) 2024-12-20 10:15:18 +00:00
PgBiel 6c2d54bbe3
Fix crash when block or text have negative sizes (#5610) 2024-12-20 10:03:12 +00:00
Ian Wrzesinski 370aa5929f
Remove unused single quote shorthand (#5609) 2024-12-20 10:00:09 +00:00
Laurenz db06dbf976
Further improve IDE tests (#5602) 2024-12-18 19:26:39 +00:00
Yifan Song 45c866fbb9
Fix autocompletion of half-completed import item (#5531)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-18 18:11:13 +00:00
PgBiel 9b697d59ae
Fix infinite loop with footnote which never fits (#5498) 2024-12-18 16:54:14 +00:00
Joshua Gawley 21e608e6e9
Change error when accessing non-existant label (#5571) 2024-12-18 16:52:37 +00:00
Emmanuel Lesueur 257764181e
New `curve` element that supersedes `path` (#5323)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-18 15:58:57 +00:00
Malo 24c08a7ec0
Mention the `calc` module in the operator list (#5595) 2024-12-18 13:37:32 +00:00
Peng Guanwen 73253d4651
Support for defining which charset should be covered by a font (#5305)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-17 14:07:45 +00:00
Zhuofeng Wang 54cee16c31
Add timezone to PDF's default timestamp. (#5564)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-17 09:43:01 +00:00
PgBiel 60f246ece2
Fix sticky blocks at the top of blocks and pages (#5581)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-17 09:41:18 +00:00
Laurenz 1346385255
Rename `pattern` to `tiling` (#5590) 2024-12-17 09:25:27 +00:00
Laurenz ed67220e4b
Remove deprecated things and compatibility behaviours (#5591) 2024-12-17 09:25:15 +00:00
Eric Biedert 51020fcf3c
Get numbering of page counter from style chain (#5589) 2024-12-16 20:23:13 +00:00
Johann Birnick 75273937f7
Transform high level headings to HTML (#5525) 2024-12-16 18:22:00 +00:00
Malo 8b1e0d3a23
Improve `symbol` `repr` (#5505) 2024-12-16 14:10:42 +00:00
Myriad-Dreamin 1b10d19d76
Consider parameters when iterating items in scope (#5517) 2024-12-16 14:09:38 +00:00
+merlan #flirora d3620df4c6
Add reversed numbering (#5563) 2024-12-16 13:45:57 +00:00
Andrew Voynov 7f139517b9
Derivation comment for calculation in `repeat` (#5575) 2024-12-16 12:18:34 +00:00
Joshua Gawley a3ad0a0bba
Document new counting symbols (#5568) 2024-12-13 11:26:52 +00:00
Laurenz 521ceae889
Fix crash due to consecutive weak spacing (#5562) 2024-12-11 15:46:10 +00:00
Ian Wrzesinski ef4fc040b2
Improve raw trimming (#5541) 2024-12-11 11:31:04 +00:00
Ian Wrzesinski a5ade167dd
More `CapturesVisitor` tests (#5506) 2024-12-11 11:28:24 +00:00
Michael Färber 17f20c6944
Basic HTML pretty-printing (#5533)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-10 09:57:22 +00:00
wznmickey bb0c814095
Forbid base prefix for numbers with a unit (#5548)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-09 10:56:42 +00:00
PgBiel c2cc09e71a
Forbid footnote migration in pending floats (#5497)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-09 09:55:58 +00:00
+merlan #flirora 73dd5a085e
Fix sizing of quadratic shapes (square/circle) (#5451)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-12-09 09:33:30 +00:00
Laurenz 4729d3d3bd
Fix language-dependant figure caption separator in outline (#5550) 2024-12-08 18:36:04 +00:00
Laurenz Stampfl 67ef6066f4
Add support for converting text in SVGs to paths (#5390) 2024-12-08 17:06:25 +00:00
Max 468a60103d
Fix multiline annotations in over- elems in math changing the baseline (#5459) 2024-12-08 16:55:34 +00:00
Jakob Peters 57f7c167d8
Document integer literal parsing (#5462)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-08 16:52:57 +00:00
Tetragramm d04cc61eee
Add missing functions to the gradient object. (#5528)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-08 16:43:25 +00:00
PgBiel 62567fc91e
Fix multiple footnotes in footnote entry (#5545) 2024-12-08 16:35:54 +00:00
Borna Punda fbcd624eeb
Add support for Croatian quotes (#5539) 2024-12-08 16:29:24 +00:00
PgBiel a1a5215234
Ensure par and align interrupt cite groups and lists (#5526) 2024-12-08 16:25:47 +00:00
Ian Wrzesinski 50dcacea9a
Convert unopened square-brackets into a hard error (#5414) 2024-12-08 16:23:14 +00:00
Laurenz 0228462ba1
Bump Rust to 1.83 (#5534) 2024-12-05 15:57:01 +00:00
Laurenz caa72f4ec2
Put HTTP server behind on-by-default feature flag (#5532) 2024-12-05 15:25:18 +00:00
Daniel Drodt 8e4f5f21e0
Fix warning for HTML export to reflect renaming of --feature to --features (#5530) 2024-12-05 11:21:44 +00:00
Laurenz 79a7a6bf77
Live reloading HTTP server for `typst watch` and HTML export (#5524) 2024-12-05 09:59:26 +00:00
Laurenz 4f3ba7f8ca
Rename `--feature` to `--features` and support `TYPST_FEATURES` env var (#5523) 2024-12-04 17:42:59 +00:00
Michael Färber 60f1d8f9b5
Prepend section numbers to headings in HTML output. (#5522) 2024-12-04 16:55:37 +00:00
Laurenz bf1c7db6fc
Clean up CLI argument parsing (#5521) 2024-12-04 13:17:38 +00:00
PgBiel 884c02872c
Fix text fill within `clip: true` blocks in PNG export (#5502) 2024-12-04 10:00:04 +00:00
Laurenz cda94ab405 Link to tracking issue 2024-12-04 10:12:07 +01:00
Laurenz e0122a5b50 Add HTML export format 2024-12-04 10:12:07 +01:00
Laurenz 885c7d96ee A few basic HTML show rules
These are very incomplete and ignore various properties. They are just to get things started.
2024-12-04 10:12:07 +01:00
Laurenz 0ef97c104a HTML DOM types 2024-12-04 10:12:07 +01:00
Laurenz 497446944c Add `document.description` field 2024-12-04 10:12:07 +01:00
Laurenz d00a5d6c9b Add contextual `target` function 2024-12-04 10:12:07 +01:00
Laurenz 2b8dc9b14d Add HTML feature flag 2024-12-04 10:12:07 +01:00
Laurenz 008b59839f Add some more spans 2024-12-04 10:12:07 +01:00
Laurenz f8f2ba6a5f Rename `Document` to `PagedDocument` 2024-12-04 10:12:07 +01:00
Nikolai Neff-Sarnow 76c24ee6e3
Add documentation example to `array.sorted()` (#5475)
Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
2024-11-30 09:10:22 +00:00
Laurenz d40c8ab6ab
Compile-time `PicoStr` interning (#5491) 2024-11-29 15:03:08 +00:00
Malo 055263ee9f
Make `math.italic` compatible with ħ (#5492) 2024-11-29 09:25:27 +00:00
wznmickey 3ab131c22c
Handle SIGPIPE (#5444) 2024-11-29 09:21:19 +00:00
+merlan #flirora 89d96c623d
Let decimal constructor accept decimal values (#5481) 2024-11-27 16:36:04 +00:00
3w36zj6 27cc489a1d
Add missing full stop to documentation of `ImageElem` struct (#5484) 2024-11-27 15:38:41 +00:00
Max 578ba640f3
Fix weak spacing being ignored unconditionally in `math.lr` (#5477) 2024-11-27 11:16:25 +00:00
Deyan Ginev c29c96562d
Add Bulgarian translation entries (#5476) 2024-11-27 11:14:20 +00:00
Max f29fbea2fc
Use extended shape information for glyph `text_like`-ness (#5483) 2024-11-27 11:11:49 +00:00
+merlan #flirora 6bf1350b16
Add support for interpreting f32 in float.{from-bytes, to-bytes} (#5480) 2024-11-27 11:04:54 +00:00
Stephen Waits e550dce62d
More magic "preview" -> DEFAULT_NAMESPACE (#5478) 2024-11-27 09:09:44 +00:00
Sébastien d'Herbais de Thun 85d3a49a1a
Added warning when explicit return in code (not markup) discards joined content (#5413)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-11-26 20:51:46 +00:00
Max 8fe8b2a239
Ignore leading and trailing ignorant fragments in `math.lr` (#5473) 2024-11-26 20:51:22 +00:00
Stephen Waits 22748aaf2e
Replace _magic_ "preview" literals with a constant (#5452) 2024-11-26 20:50:30 +00:00
Max 39e41ba3c6
Fix `path` with infinite length causing panic (#5457) 2024-11-26 12:39:00 +00:00
Max fd5e642fb4
Tags shouldn't affect row height in equations (#5458) 2024-11-26 12:37:53 +00:00
Max 6d35972c3d
Update NewCM fonts to version 7.0.0 (#5465) 2024-11-26 12:36:53 +00:00
Johann Birnick 580e6811b0
Docs: note `par.linebreaks` in `text.costs` (#5434) 2024-11-26 12:35:45 +00:00
Iagoba Apellaniz 3d7284fc1b
Support for Basque language (#5429) 2024-11-26 12:34:53 +00:00
Malo 5c37a1cfea
Use `codex` for symbols (#5421) 2024-11-17 19:08:23 +00:00
Sébastien d'Herbais de Thun 5db179d67a
Timings for `state.at` and `state.get` (#5411) 2024-11-17 09:05:01 +00:00
wznmickey cce744cf78
Fix unnecessary hyphenation (#5394) 2024-11-17 09:04:07 +00:00
Laurenz 7add9b459a Smarter filtering of scope completions 2024-11-13 10:21:40 +01:00
Laurenz de59d64d10 Simplify go-to-definition 2024-11-13 10:21:40 +01:00
Laurenz eb2ea1d0ee Silence `typst-timing` warnings on WebAssembly 2024-11-13 10:21:40 +01:00
Laurenz 525154a730 Add support for raw range spans 2024-11-13 10:21:40 +01:00
Laurenz 5625914872 Simplify import handling 2024-11-13 10:21:40 +01:00
Laurenz 6c22ba1cbd Move a few things into separate files 2024-11-13 10:21:40 +01:00
Laurenz 366348b196 Figure body snippets 2024-11-13 10:21:40 +01:00
Laurenz 65bb1fbe6a Distinguish between more completion kinds 2024-11-13 10:21:40 +01:00
Laurenz c0dfe4aab7 Autocomplete file paths 2024-11-13 10:21:40 +01:00
Laurenz a5a4b0b72f Introduce `IdeWorld` trait 2024-11-13 10:21:40 +01:00
Laurenz 03ba5a0cb1 Do not complete existing positional parameters 2024-11-13 10:21:40 +01:00
Laurenz 0b143c7df9 Star import tooltip 2024-11-13 10:21:40 +01:00
Laurenz 3d1cad2bec Simplify tooltip tests 2024-11-13 10:21:40 +01:00
Laurenz 5d003fb1b2 Autocomplete different functions with different brackets 2024-11-13 10:21:40 +01:00
Laurenz c526f031cc Fix `#cite` autocompletion 2024-11-13 10:21:40 +01:00
Laurenz 6f294eac56 Simplify autocompletion tests
A

A
2024-11-13 10:21:40 +01:00
Max 8d4f01d284
Add support for page references through new `ref.form` property (#4729) 2024-11-12 12:54:25 +00:00
Pascal Quach dadc2176e2
Add `asymp` and `asymp.not` symbols (#5391) 2024-11-12 12:46:40 +00:00
Andrew Voynov cb8eaddf98
Removed deprecated `diff` symbol (#5388) 2024-11-12 12:44:45 +00:00
Yip Coekjan 19bde34876
Remove unused dependencies (#5379) 2024-11-07 08:47:27 +00:00
Johann Birnick 115b0a7ffd
Add `sym.eq.triple.not` (#5372) 2024-11-05 08:42:44 +00:00
wznmickey ada30cd5b1
Fix unstoppable empty footnote loop (#5354) (#5364) 2024-11-05 08:27:25 +00:00
Sébastien d'Herbais de Thun 692d846d25
Disable justification in `raw(block: true, ...)` (#4889)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-11-04 09:37:29 +00:00
Laurenz cb1aad3a0c
Refactor Parser (#5310) 2024-11-04 10:17:49 +01:00
Ian Wrzesinski 2c9728f53b 18. Restore list indent behavior 2024-11-03 22:04:06 -05:00
Ian Wrzesinski 9d9a1b1e33 17. Replace while loop closures and Parser::end() to use SyntaxSet 2024-11-03 20:28:49 -05:00
Ian Wrzesinski 86ce443806 16. Compress with_mode and with_nl_mode to reduce rightward drift 2024-11-03 20:28:49 -05:00
Ian Wrzesinski 26c61be1dc 15. Convert Markup mode to use newline modes
(And break out Newline info into separate struct)
2024-11-03 20:28:49 -05:00
Laurenz fac7583745
Basic feature flag mechanism (#5350) 2024-11-01 20:02:27 +00:00
Ian Wrzesinski a70b8a56ef
Disallow space between ident and paren in set rule (#5269) 2024-11-01 09:45:08 +00:00
LU Jialin 23313b0af0
Support Greek Numbering (#4273)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-11-01 09:20:10 +00:00
Ian Wrzesinski 4ce0b069f6 14. Update 'maybe_wrap_in_math' to remove 'wrap_within' and 'post_process'! 2024-10-31 18:26:12 -04:00
Ian Wrzesinski 97229d24e4 13. Reorder functions to avoid jumping around when reading code. No actual changes. 2024-10-31 18:26:12 -04:00
Ian Wrzesinski 91b384ad7b 12. Add the Token type and replace lex/skip/save methods 2024-10-31 18:26:12 -04:00
Ian Wrzesinski c466080fb2 11. Add Parser::finish_into 2024-10-31 18:26:12 -04:00
Ian Wrzesinski 2ae1e1627f 10. Change parser modes using closures instead of manual stacks 2024-10-31 18:26:12 -04:00
Ian Wrzesinski 88d86714a1 9. Parse math field access in the lexer 2024-10-31 18:26:12 -04:00
Ian Wrzesinski 09975d1133 8. Create Raw nodes entirely within the lexer 2024-10-31 18:26:12 -04:00
Ian Wrzesinski 1cecae0333 7. Return SyntaxNodes from the Lexer 2024-10-31 18:26:12 -04:00
Ian Wrzesinski 01186779cd 6. Reduce size of memoization map state 2024-10-31 18:26:12 -04:00
Ian Wrzesinski 16cc7eb472 5. Refactor parser memoization to localize functionality 2024-10-31 18:26:12 -04:00
Ian Wrzesinski 54eadb65a9 4. Rename convert to convert_and_eat 2024-10-31 18:26:12 -04:00
Ian Wrzesinski a764aa4192 3. Add typst-syntax README and parser comments 2024-10-31 18:26:12 -04:00
frozolotl 753e59eaa0
Make `Vm` attributes more public (#5148)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-31 18:53:10 +00:00
HydroH 066e9349f9
Add `calc.norm()` function to compute euclidean norms (#4581)
Co-authored-by: +merlan #flirora <uruwi@protonmail.com>
Co-authored-by: Yip Coekjan <69834864+Coekjan@users.noreply.github.com>
Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-31 12:41:50 +00:00
Andrew Voynov 30427ac842
Added Numero Sign № (U+2116) (#5326) 2024-10-31 11:56:37 +00:00
Yip Coekjan f0d7f54cbf
More consistent `self-update` assets determination (#5333) 2024-10-31 11:55:37 +00:00
Ian Wrzesinski dcb130bd71
Add a warning for `is` to anticipate using it as a keyword (#5229)
Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
2024-10-31 11:55:31 +00:00
Abdul-Rahman Sibahi b969c01b28
Replace `once_cell`'s `Lazy` as much as possible (#4617)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-31 11:52:11 +00:00
Malo 070e3144b3
Make `math.bold` compatible with Greek digamma (#5316) 2024-10-30 17:31:03 +00:00
Max 902088a237
Guard against font bug in math glyph assembly code (#5288) 2024-10-30 15:32:11 +00:00
Max f85faf957f
Add `math.accent` support for `flac` and `dtls` OpenType features (#5202) 2024-10-30 15:29:15 +00:00
Laurenz 2634a8402c
Fix type of plugin (#5321) 2024-10-29 13:59:22 +00:00
Kevin K. 33a035ee0d
Fix wrong Greek and Ukrainian language codes (#5261)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:42:25 +00:00
Eric Biedert 45377f25ec
Fix clipping with outset (#5295)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:31:00 +00:00
lucaslugao 6dd05cc17a
Add explicit notice about unicode minus sign in the str function (#5301)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:26:32 +00:00
Giacomo Stevanato 83927686d9
Fix wrong drop order for self-referential struct (#5306)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:23:43 +00:00
Chad Skeeters ead6c03a98
Corrects link to wasi-stub in plugin documentation (#5308)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-28 14:21:11 +00:00
Laurenz be7cfc85d0
Split out four new crates (#5302) 2024-10-27 18:04:55 +00:00
Ian Wrzesinski b8034a3438
Syntax set macro (#5138)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-22 13:25:52 +00:00
Andrew Voynov 33b9d1c7db
Improved docs for `par.line.numbering-scope` (#5250)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-10-22 13:09:51 +00:00
Laurenz 711a2d8807
Fix optimized linebreaks without justification (#5236) 2024-10-18 13:10:22 +00:00
Laurenz 240b917399
Docs and changelog improvements (#5147)
Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com>
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Jeremie Knuesel <knuesel@gmail.com>
Co-authored-by: +merlan #flirora <2975203+bluebear94@users.noreply.github.com>
Co-authored-by: Anselm Schüler <mail@anselmschueler.com>
2024-10-15 12:54:16 +00:00
Laurenz 89cecb188d
Greet users who run `typst` for the first time (#5210) 2024-10-15 11:55:55 +00:00
PgBiel 382787d799
(Re-)implement rounding with negative digits (#5198)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-14 16:14:06 +00:00
Laurenz 03a766444a
Put floats back above footnotes instead of below (#5204) 2024-10-14 15:36:29 +00:00
Laurenz 6a8e29b2e5
Fix tag order with `place` and fr block bugs (#5203) 2024-10-14 14:18:25 +00:00
Laurenz 8b6f7298e3
Fix outline with CJK text (#5187) 2024-10-12 12:01:34 +00:00
Laurenz 61d461f080
Refactor and fix bounds metric (#5186) 2024-10-12 12:01:32 +00:00
Laurenz bb0e089474
Fix logical ordering of floats and footnotes (#5185) 2024-10-12 12:01:31 +00:00
PgBiel 16736feb13
Fix hashing of equal decimals with different scales (#5179)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-11 08:19:58 +00:00
Max b5b92e21e9
Fix bug in `math.frac` layout code (#5177) 2024-10-10 15:52:55 +00:00
Laurenz 92aacdb480
Fix scales for unit conversion (#5169) 2024-10-10 15:51:48 +00:00
Eric Biedert f1f2de889a
Resolve lengths in math with scaled font size (#5168) 2024-10-10 12:03:11 +00:00
Laurenz 6257e4d6cf
More robust glyph drawing (#5159) 2024-10-10 11:59:00 +00:00
Laurenz 9ee80762a5
Disable line numbers for block equations (#5163) 2024-10-08 15:58:05 +00:00
Laurenz b7725a7442
Allow unbreakable multi-layouters to expand (#5162) 2024-10-08 15:55:44 +00:00
Laurenz fc5858c982
Allow sticky blocks to be breakable (#5161) 2024-10-08 13:13:14 +00:00
Yip Coekjan 7a96c86487
Fix smartquotes after inline equations (#5149) 2024-10-08 08:37:11 +00:00
+merlan #flirora 037c0c8216
Fix hint for destructuring to an array with at least 1 element (#5154) 2024-10-07 19:28:30 +00:00
Laurenz 1d2a222818
Error for parent-scoped figures without placement (#5151) 2024-10-07 14:13:24 +00:00
Laurenz db9debca6d
Fix warning in proc macro (#5150) 2024-10-07 13:56:45 +00:00
Malo 142c9dff49
Refactor sub- and superscript substitution (#5120) 2024-10-07 10:57:20 +00:00
Orange bb39d8f10a
Improve hint when provided array for destructuring has fewer elements than expected (#5139)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-07 09:59:49 +00:00
PgBiel 2a40eb518c
Fix excluded PDF pages being written (#5133) 2024-10-07 08:23:59 +00:00
Eric Biedert 82a2c3619a
Add exception for NewCM Math Bold (#5126) 2024-10-07 08:23:32 +00:00
Armin Brauns deb0308980
Fix "thumbnail" key in manifest files not being optional (#5122) 2024-10-07 08:22:59 +00:00
Eric Biedert 20ce48dc36
Fix panic for empty breakable block equations (#5116) 2024-10-07 08:13:09 +00:00
Laurenz 60f9f66950
Serialize and Deserialize for `PdfStandard` (#5108) 2024-10-03 19:40:42 +00:00
Laurenz 10eff1d6d5
Tweak default ignorable fix (#5105) 2024-10-03 16:16:44 +00:00
Laurenz 340b892d79
Update changelog (#5033) 2024-10-03 13:20:57 +00:00
Laurenz cbd251f474
Tweak docs (#5089) 2024-10-03 13:20:48 +00:00
Laurenz 0343e038d3
Fix default ignorables (#5099) 2024-10-03 13:00:58 +00:00
Martin Haug f6406ed901
Update Hayagriva (#5088) 2024-10-02 15:53:23 +00:00
Laurenz fcdccc9cba
Fix textual grouping (#5097) 2024-10-02 11:51:09 +00:00
PgBiel b791aede82
Adjust line number clearance (#5093)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-02 10:17:36 +00:00
Laurenz ae7787c820
Better return type for `download_index` (#5086) 2024-10-01 13:35:02 +00:00
Laurenz 3ec5d442d7
Fix panic in spilled block layout (#5085) 2024-10-01 13:32:02 +00:00
Laurenz 04df1264ef
Fix duration formatting precision (#5082) 2024-10-01 12:32:27 +00:00
Laurenz 9a71e7263d Improve region progression handling
Fixes #5044
2024-10-01 14:27:00 +02:00