Commit Graph

1615 Commits

Author SHA1 Message Date
Laurenz 711a2d8807
Fix optimized linebreaks without justification (#5236) 2024-10-18 13:10:22 +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 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
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
Eric Biedert 82a2c3619a
Add exception for NewCM Math Bold (#5126) 2024-10-07 08:23:32 +00:00
Eric Biedert 20ce48dc36
Fix panic for empty breakable block equations (#5116) 2024-10-07 08:13:09 +00:00
Laurenz cbd251f474
Tweak docs (#5089) 2024-10-03 13:20:48 +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 3ec5d442d7
Fix panic in spilled block layout (#5085) 2024-10-01 13:32:02 +00:00
Laurenz 9a71e7263d Improve region progression handling
Fixes #5044
2024-10-01 14:27:00 +02:00
Laurenz 63e6150ca1
Fix order of tags in text show rules matches (#5083) 2024-10-01 10:44:27 +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
Laurenz 7ff83db757
Change default font to Libertinus Serif (#4969) 2024-09-30 15:19:22 +00:00
Laurenz 788ae10a07
PDF export diagnostics (#5073) 2024-09-30 12:43:29 +00:00
PgBiel 0b151b866a
Revert return type change in floor, ceil, trunc, quo (#5064) 2024-09-30 07:55:34 +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
Max efc6b710bc
Update NewCM fonts to version 6.0.0 (#5005) 2024-09-27 08:17:53 +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
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
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
Eric Biedert 59d65bbdc0
Fix spacing after bibliography heading (#4964) 2024-09-26 09:01:36 +00:00
Josh Soref 7d2142be0a
Connect maximum size with Updating reference images (#5022) 2024-09-26 08:40:15 +00:00
Laurenz e25389a85e
New flow layout, with multi-column floats (#5017) 2024-09-25 08:26:41 +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
Laurenz 16e67f8bea
Shrink tests (#4967) 2024-09-16 14:41:18 +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
Laurenz a452fc94bb
Terminate tests when stuck for 10s (#4905) 2024-09-05 19:59:00 +00:00
Andrew Voynov a87d4776c0
Add show-text line wrapping test (#4890) 2024-09-03 20:21:35 +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
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
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 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
Max 373163dba4
Implement math kerning and fix various `math.attach` bugs (#4762) 2024-08-26 17:04:02 +00:00
Eric Biedert 326fd33801
Don't number empty regions of broken block equations (#4836) 2024-08-26 15:26:50 +00:00
Max 0b31f6039f
Fix nested attachments when the base in `math.attach` has attachments (#4832) 2024-08-26 14:49:24 +00:00
Laurenz cf05284a0c
Small improvements to the test runner (#4838) 2024-08-26 11:40:37 +00:00
Max cefca7a7d8
Fix typos (#4784) 2024-08-20 15:12:12 +00:00
Laurenz 986d624b3a
Share allocations for singletons (#4794) 2024-08-20 10:56:54 +00:00
Laurenz d97d71948e
Fix document set rules (#4768) 2024-08-16 10:53:12 +00:00
Laurenz feb0c91395
Move paragraph widow and orphan prevention into flow (#4767) 2024-08-16 09:18:45 +00:00
Eric Biedert 4853726e5b
Add `gap` and `justify` parameters to `repeat` (#4644)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-08-15 20:21:42 +00:00
Leedehai d221a89a40
Adjust the baseline of root radicand frame (#4736) 2024-08-15 20:08:40 +00:00
Malo c43997de0a
Move `calc.nan` to `float.nan` and add `float.inf` (#4733) 2024-08-15 20:04:50 +00:00
Lingkang 0edd8ec93d
Improve `repr` for `type(none)` and `type(auto)` (#4730)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-08-15 19:53:59 +00:00
Yip Coekjan ccd4524106
Fix lexer on sth followed by comments (#4739) 2024-08-15 19:53:15 +00:00
Malo 79fb2c3689
Fix `calc.inf`, `-calc.inf`, and `calc.nan` reprs and displays (#4724) 2024-08-11 20:18:57 +00:00
Jakob Peters d06f3f180c
Implement math mode language for `raw` (#4687) 2024-08-11 20:15:30 +00:00
Max b07607d35e
Split shorthands into math and markup, add tilde shorthand (#4706) 2024-08-09 07:41:01 +00:00
Max a6a8cdaa28
Make under/overlines behave the same as accents in attach base (#4695) 2024-08-09 07:40:29 +00:00
+merlan #flirora a88899ed75
Bail out of reparse in `expr_with_paren` if we land on a different char (#4577) 2024-08-08 16:06:22 +00:00
+merlan #flirora 6856d5e672
Support multiple stylistic sets in text (#4685) 2024-08-05 19:19:56 +00:00
mkorje 810491c9d3
Add missing under/over-delimiters (#4637) 2024-08-05 11:28:17 +00:00
Johann Birnick 211b546e4e
Fixes counter stepping behavior (#4631)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-08-05 11:02:04 +00:00
Eric Biedert ed247797ac
Fix alignment of gradients and patterns on strokes in PNG (#4634) 2024-08-05 10:24:22 +00:00
Leedehai 1f81281118
Fix the show rule effect for bibliography heading level (#4622) 2024-08-05 10:04:35 +00:00
ssotoen d769b21356
Add Latin translation (#4609) 2024-08-05 10:01:57 +00:00
Leedehai 33f13d7881
Fix historical ligatures for texts (#4603) 2024-08-05 10:00:33 +00:00
HydroH 1d74c8e8bf
Add `non-zero` and `even-odd` fill rules to `path` and `polygon` (#4580)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-22 14:24:29 +00:00
chico ferreira bd72b95d9e
Conversion from int to bytes and back (#4490)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-22 12:10:59 +00:00
Laurenz 46ef8e1dfa
Deprecate some things (#4562) 2024-07-20 12:52:17 +00:00
Laurenz 0c37a2c233
Support transparent page fill (#4586)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-07-20 12:51:24 +00:00
shinyfelix 3aa18beacf
Fix approximated size of `reflow: true` transformations (#4462)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-20 12:26:57 +00:00
Laurenz 3ef0991fbb
Tune hyphenation (#4584) 2024-07-19 11:47:51 +00:00
Laurenz 4275447788
Fix panic in link linebreaking (#4579) 2024-07-18 08:49:08 +00:00
+merlan #flirora df56a2d20d
Allow absolute lengths in `scale` (#4271)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-17 08:27:46 +00:00
Leedehai f0407d4949
Wrapping with parens should not push superscripts higher (#4545)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-15 09:54:54 +00:00
Eric Biedert ac322e342b
Save and restore graphics state for every frame (#4496)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-14 14:02:50 +00:00
+merlan #flirora 17ee3df1ba
Wrap outline entry body in LRE/RLE + make smart quotes ignore directional control characters (#4491)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-14 13:48:40 +00:00
Myriad-Dreamin a3f3a1a833
Change the signature of `World::main` (#4531)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-14 13:14:21 +00:00
Yip Coekjan 4d8976b619
Fix lexer behavior on non-whitespace before ref (#4553) 2024-07-14 12:54:51 +00:00
Leedehai ab5cebc57c
Let test error hide line number if it's zero (#4535) 2024-07-11 14:43:16 +00:00
Laurenz 34990f7f0e
Bump dependencies (#4523) 2024-07-08 20:41:38 +00:00
Leedehai d1c7d08893
Primes should not further raise next superscript's position (#4492)
Co-authored-by: Ian Wrzesinski <133046678+wrzian@users.noreply.github.com>
2024-07-08 19:32:58 +00:00
Eric Biedert 59374f7370
Avoid spaces around ignorant and invisible elements in math (#4348) 2024-07-06 13:45:19 +00:00
Laurenz 3b32aa7929
Add regression test for #3355 (#4499) 2024-07-04 15:28:23 +00:00
Laurenz 129a4d600c
Fix hyphenation outside of words (#4498) 2024-07-04 13:27:43 +00:00
Laurenz 0ef672c347
Refactor line building (#4497) 2024-07-04 10:57:40 +00:00
Yip Coekjan 75246f930b
Fix footnote-reference numbering (#4456) 2024-07-02 14:46:25 +00:00
Eric Biedert 09e3bbd3b4
Fix luma to CMYK conversion (#4425) 2024-06-22 09:09:36 +00:00
Eric Biedert 381a82e764
Fix color mixing and gradients in luma space (#4424)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-22 09:09:28 +00:00
Yip Coekjan 0fbec82035
Hint for shadowed std functions (#4402)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-22 09:02:53 +00:00
+merlan #flirora 781eea632f
Add message when trying to access a field that is not set (#4399)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-22 08:59:52 +00:00
Malo 34550220ae
Add hints to array destructuring error messages (#4400) 2024-06-16 09:35:18 +00:00
Laurenz f25308d1eb
Tight lists only attach to preceding paragraphs, not blocks anymore (#4396) 2024-06-16 07:48:03 +00:00
Laurenz Stampfl 1110b93564
Add support for COLRv1 emojis (#4371) 2024-06-16 07:47:13 +00:00
Laurenz 9a45d948f9
Paragraph spacing property (#4390) 2024-06-14 08:49:44 +00:00
astrale-sharp ad4ef68a11
Lexer hint (#4346)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-12 12:00:22 +00:00
Laurenz Stampfl 20b8d2c121
Don't change DPI in resvg (#4354) 2024-06-11 11:12:03 +00:00
+merlan #flirora a10e3324c2
interrupt_styles: Check all potential style matches (#4345) 2024-06-11 09:14:26 +00:00
+merlan #flirora 20475ab0bf
Add hint when string is used in place of label (#4330) 2024-06-11 09:08:30 +00:00
Laurenz a68a241570
Remove `Tracer` (#4365) 2024-06-10 09:00:54 +00:00
Laurenz f91cad7d78
Pure location assignment (#4352) 2024-06-09 13:23:56 +00:00
Wenzhuo Liu 681badf76a
Pad matrix cell to make matrix have a consistent height (#4153) 2024-06-04 15:42:02 +00:00
Yip Coekjan ada0f5da65
Hint for labels in code mode (#4319) 2024-06-04 15:33:08 +00:00
Leedehai df6e347bc5
Align point and linebreak should not increase math row height (#4306) 2024-06-04 15:30:43 +00:00
PgBiel 9adcd9a1f8
Refactor casts to use `HintedStrResult` (#4229) 2024-06-04 15:24:39 +00:00
+merlan #flirora 99b393110e
Align corner brackets to the top and bottom when scaling (#4200) 2024-06-04 15:22:56 +00:00
Laurenz 1e2e07adff
Add regression test for #2631 (#4328) 2024-06-04 15:05:37 +00:00
Laurenz 755dd4112d
Show block-level elements as blocks (#4310) 2024-06-03 08:12:52 +00:00
+merlan #flirora 23746ee189
Add flush element (#4141) 2024-05-30 15:40:01 +00:00
+merlan #flirora b15aa664f2
Allow `measure` to accept available size (#4264) 2024-05-30 07:58:07 +00:00
Yip Coekjan 702271dacb
Allow setting `raw.theme` to `none` to disable syntax highlighting (#4256) 2024-05-30 07:57:12 +00:00
Tulio Martins 06a925a0ee
Add nested import syntax (#4228)
Co-authored-by: LuizAugustoPapa <luiz.papa@aluno.puc-rio.br>
Co-authored-by: PepinhoJp <pepinho.jp@gmail.com>
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-05-30 07:56:40 +00:00
Eric Biedert 5f6d942519
Make block equations breakable (#4226)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-30 07:52:48 +00:00
Laurenz e6739ecc2f
Fix figure centering (#4276)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-05-29 13:17:05 +00:00
LU Jialin b73b3ca335
Trim weak spacing at line start/end in paragraph layout (#4087) 2024-05-27 15:36:41 +00:00
Yip Coekjan 485aa2e1ff
Hint for language-region pair on `text.lang` (#4183) 2024-05-25 15:31:04 +00:00
Yip Coekjan 374b82f8ca
Set default value of `raw.theme` to `auto`, and allow setting `raw.theme` to `auto` (#4186) 2024-05-24 23:14:56 +00:00
Laurenz 34f1a23246
Do layout short-circuit in flow instead of realization (#4231) 2024-05-23 09:55:00 +00:00
Malo a6cf584ee9
Allow somewhat arbitrary characters as `mat`, `vec` and `cases` `delim` (#4211) 2024-05-22 19:36:53 +00:00
Leedehai 53c306e32c
Fix equation resizing when adding the equation number (#4179) 2024-05-22 17:04:46 +00:00