1262 Commits

Author SHA1 Message Date
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