Commit Graph

1161 Commits

Author SHA1 Message Date
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
Laurenz d03af848eb
Prevent double allocation due to `Content::sequence` (#5084) 2024-10-01 10:47:59 +00:00
Laurenz 63e6150ca1
Fix order of tags in text show rules matches (#5083) 2024-10-01 10:44:27 +00:00
emilylime f0ada7ba0c
Check that an output format is available before compiling (#5080) 2024-10-01 09:26:12 +00:00
Laurenz a0093ad8a7
Minimal PDF/A support (#5075)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-10-01 09:24:18 +00:00
Max 8eee3ec8d1
Fix breakable block equation overflow (#5078) 2024-10-01 08:01:28 +00:00
Laurenz 4ef1096ad9
Hint for `show par: set block(spacing: ..)` (#5076) 2024-10-01 07:59:43 +00:00
Max 75f646c975
Fix `math.stretch` not working vertically with attachments (#5069) 2024-10-01 07:59:31 +00:00
emilylime 1a24b29d86
Remove `Case`s from NumberingPatterns (#5059) 2024-09-30 15:22:46 +00:00
Laurenz 7ff83db757
Change default font to Libertinus Serif (#4969) 2024-09-30 15:19:22 +00:00
Laurenz d94acd615e
Add internal URL type (#5074) 2024-09-30 12:45:44 +00:00
Laurenz 788ae10a07
PDF export diagnostics (#5073) 2024-09-30 12:43:29 +00:00
Aaron Manning d5b1bf314e
Fix reference documentation mathematical error (#5072) 2024-09-30 11:41:59 +00:00
PgBiel 0b151b866a
Revert return type change in floor, ceil, trunc, quo (#5064) 2024-09-30 07:55:34 +00:00
Martin Haug ada9650a06
Write the font name for Type 3 fonts (#5070) 2024-09-30 07:54:08 +00:00
Martin Haug 66147979ba
Do not write empty destination name tree root (#5066) 2024-09-30 07:53:23 +00:00
Malo 7262ef3c74
Fix a typo introduced in #5053 (#5055) 2024-09-27 15:30:48 +00:00
Malo 53135a0813
Implement symbol Proposal 21 (iteration 1) (#5053) 2024-09-27 13:10:34 +00:00
emilylime 2a1fbd4101
Fix numbering documentation (#5051) 2024-09-27 10:37:36 +00:00
Alex Rawson ba95baa7e1
Don't include "update" in help output if self-update disabled (#4940)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-27 08:52:52 +00:00
Max 93a5b712b1
Fix `math.lr` size argument not being applied to enclosed `math.mid` (#5050) 2024-09-27 08:34:38 +00:00
nz366 ab67eee2d4
Add Bengali-Letter Numbering (#5048) 2024-09-27 08:29:48 +00:00
Laurenz 01af4308d3
Better block caching (#5046) 2024-09-27 08:24:59 +00:00
Josh Soref ca1f749c08
Spelling (#5020)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-09-26 17:32:55 +00:00
Malo 3c90878460
Miscellaneous `sym.rs` improvements (#5045) 2024-09-26 17:30:36 +00:00
ssotoen 584e4585f1
Add Unicode 16 emoji (#4935) 2024-09-26 14:57:50 +00:00
nz366 820750ce21
Add Bengali Numerals (#4997)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-26 14:47:55 +00:00
Max e00e3e4fbf
Add `math.stretch` element function (#5030) 2024-09-26 14:46:26 +00:00
Max a40e068590
Add alignment parameter to matrices and vectors (#4998) 2024-09-26 14:30:47 +00:00
Dmytro Kravchenko-Loznia cf35c2f44c
Clarify the path argument of the image element (#4892)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Co-authored-by: Martin Haug <mhaug@live.de>
2024-09-26 14:07:39 +00:00
Jeremie Knuesel d1379d8bd9
Clarify place documentation (#5031) 2024-09-26 13:17:28 +00:00
Max f8f95e5c21
Extend hint for unknown variables in math (#5038) 2024-09-26 11:40:25 +00:00
PgBiel 320c28844f
Fixed-point decimal type (#4900)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-26 11:39:37 +00:00
Jeremie Knuesel a69ada7889
Rename place scope "page" to "parent" (#5027) 2024-09-26 09:15:31 +00:00
Tim Voßhenrich 5823429a96
Add float to bytes conversion and vice-versa (#4989)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-26 09:14:45 +00:00
Jeremie Knuesel 4827f28a94
Fix smartquotes for Swiss French (#4992) 2024-09-26 09:09:32 +00:00
Sébastien d'Herbais de Thun 8d38bd4066
Single thread support (#4988) 2024-09-26 09:02:44 +00:00
Eric Biedert 59d65bbdc0
Fix spacing after bibliography heading (#4964) 2024-09-26 09:01:36 +00:00
Sébastien d'Herbais de Thun a5b506c424
Make `jump_from_cursor` return a vector of `Position` (#4886) 2024-09-26 08:53:31 +00:00
ClementMabileau 57895ad725
Fix example in table.rs (#5035) 2024-09-26 08:40:40 +00:00
Jeremie Knuesel 85b45435e0
Fix two doc typos (#5032) 2024-09-26 08:40:29 +00:00
+merlan #flirora 30a301f8ff
`CellGrid::resolve`: Clarify comment about `resolve_breakable` (#5010) 2024-09-26 08:39:52 +00:00
Max 79558f44a0
Clarify syntactical difference in `label` function docs (#4957) 2024-09-26 08:39:39 +00:00
Laurenz e25389a85e
New flow layout, with multi-column floats (#5017) 2024-09-25 08:26:41 +00:00
Bruce Mitchener f283995c3d
Reduce typo count. (#4923) 2024-09-22 12:14:56 +00:00
Laurenz 92ec566018
Fix tags at the start of paragraphs (#4978)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-09-17 15:54:15 +00:00
Laurenz ab8295c07d
Fix repetition of Thai characters (#4977)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-09-17 15:35:56 +00:00
Laurenz 0abd46c379
More robust ratio computation (#4976) 2024-09-17 12:11:57 +00:00
Laurenz c145e05f01
Fix bad bound in forcibly overflowing optimal paragraph layout (#4975) 2024-09-17 11:56:23 +00:00
Laurenz ea145ff33b
Do not surface warnings from non-last layout iterations (#4970) 2024-09-16 16:17:24 +00:00
Malo d48293f1c6
Add `copyleft`, `trademark`, and `registered` symbols (#4883) 2024-09-14 10:40:17 +00:00
Laurenz a2f91c4bc6
Extract page layout from flow layout (#4937) 2024-09-11 16:46:33 +00:00
Laurenz Stampfl 8501a65566
Add warning when SVG with foreign object is included (#4932)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-10 17:18:40 +00:00
Andrew Voynov ac982f5856
Unified and fixed `Duration` formatting in the CLI (#4587)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-09-10 13:49:37 +00:00
Laurenz a82256c585
Flow collection phase (#4931) 2024-09-10 13:47:22 +00:00
Yip Coekjan 40fcd97d58
Make `QuoteElem` locatable (#4909) 2024-09-08 08:29:58 +00:00
inferiorhumanorgans 4cddb48584
Fix a few doc typos. (#4914)
Co-authored-by: Alex Zepeda <srht@inferiorhumanorgans.com>
2024-09-08 08:28:49 +00:00
Jacob Garm 8a8c4cec77
Fix typo in `block.clip` documentation (#4895) 2024-09-04 11:11:25 +00:00
Nixon 4fda03abdc
Animation-friendly export (#4822) 2024-09-03 12:05:20 +00:00
Laurenz cfde809feb
New realization / Text show rules now work across elements (#4876) 2024-09-02 18:43:59 +00:00
Malo 9fd796e0e2
Add `at` method to `arguments` (#4864) 2024-09-02 16:22:43 +00:00
Sébastien d'Herbais de Thun 1ccfaba88e
Better hint for non-zero em length (#4873)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-02 13:33:43 +00:00
Sébastien d'Herbais de Thun 1997db00f3
Parenthesized imports (#4869)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-02 13:27:33 +00:00
Sébastien d'Herbais de Thun ecad396cc8
Nuked custom PDF Oklab colorspace code (#4871) 2024-09-02 13:16:33 +00:00
Florent Michel 51df7aee76
Add Devanagari numbering (#4850) 2024-09-02 13:12:57 +00:00
Max c644dce81b
Add warnings when labels are ignored or unattached (#4783) 2024-09-02 12:58:33 +00:00
Daniel Fleischer a2628ac970
Hebrew Translation + Smart Quotes (#4842)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-02 12:56:19 +00:00
Bzero 95740ac2ab
Add a skew function (#4803) 2024-09-02 12:56:08 +00:00
tingerrr 799eb8004e
Improve unknown variable diagnostics (#4858) 2024-09-02 12:45:50 +00:00
Sébastien d'Herbais de Thun 39b47060cc
Added example to `box.clip` & `block.clip` (#4870) 2024-09-02 12:43:07 +00:00
ssotoen 89521c2066
Add two-em and three-em dash symbols (#4874) 2024-09-02 12:39:44 +00:00
PgBiel e6cdcc53f3
Line numbers (#4516) 2024-08-29 14:32:18 +00:00
Laurenz ef4482ce4b
Better smartquotes (#4849) 2024-08-28 08:21:21 +00:00
Laurenz 4e4c5175e5
Merge the two realization functions (#4852) 2024-08-27 23:50:45 +00:00
Laurenz b5ef9244eb
Bump dependencies (#4846) 2024-08-27 09:56:19 +00:00
Laurenz 92f2c7b470
Refactor depth checks and apply them in math (#4845) 2024-08-27 08:43:12 +00:00
Laurenz 4365e18454
Improve realization and page layout (#4840) 2024-08-26 17:17:58 +00:00
Malo cb98eec609
Add more `angle` symbol variants (#4827) 2024-08-26 17:10:00 +00:00
Max 373163dba4
Implement math kerning and fix various `math.attach` bugs (#4762) 2024-08-26 17:04:02 +00:00
Malo c38d01e4c5
Add new variants to `parallel` symbol (#4834) 2024-08-26 17:03:52 +00:00
Malo 307b8a5c72
Add more `emptyset`/`nothing` symbol variants (#4826) 2024-08-26 16:39:10 +00:00
Malo c57593c94c
Add checkmark ballot symbols (#4825) 2024-08-26 16:18:34 +00:00
Malo 3d980fe4a3
Add miscellaneous symbols from Miscellaneous Mathematical Symbols-B (#4831) 2024-08-26 16:17:33 +00:00
Malo cd62a19344
Add U-shaped arrows (#4807) 2024-08-26 15:59:50 +00:00
Eric Biedert 326fd33801
Don't number empty regions of broken block equations (#4836) 2024-08-26 15:26:50 +00:00
Malo d926e8c17d
Add double parentheses, braces and shell variants (#4830) 2024-08-26 15:25:17 +00:00
Max 0b31f6039f
Fix nested attachments when the base in `math.attach` has attachments (#4832) 2024-08-26 14:49:24 +00:00