Commit Graph

1161 Commits

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