Commit Graph

249 Commits

Author SHA1 Message Date
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 20ce48dc36
Fix panic for empty breakable block equations (#5116) 2024-10-07 08:13:09 +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
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
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
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
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
Max cefca7a7d8
Fix typos (#4784) 2024-08-20 15:12:12 +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
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
Yip Coekjan 4d8976b619
Fix lexer behavior on non-whitespace before ref (#4553) 2024-07-14 12:54:51 +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
+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 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
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
Tobias Schmitz b0306785d5
Add `windows` method to array (#4136)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-22 15:58:06 +00:00
Laurenz a52987a8c2
Refactor frame metadata into tags (#4212) 2024-05-22 09:26:03 +00:00
Laurenz 7f2b28ae2a
Fix mention of current version in test (#4169) 2024-05-17 13:12:10 +00:00
Laurenz ad598f559e
Fix show rules on queried elements (#4166) 2024-05-17 10:59:31 +00:00
Laurenz 2188a4bf48
Fix equations in RTL text (#4150) 2024-05-17 08:36:07 +00:00
Wenzhuo Liu 4ae376f2c7
Fix raw block has extra space when end with backtick (#4162)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-17 08:35:51 +00:00
Laurenz 5f5a8f0f3f
Bump hayagriva (#4144) 2024-05-16 10:37:13 +00:00
Gabriel Araújo 017f2f4566
Fix hyphen duplication rule for some languages (#4058) 2024-05-15 13:42:13 +00:00
Leedehai 484a0e60d8
`show math.equation: set align(..)` shall not break alignment points (#4094) 2024-05-15 07:48:35 +00:00
Laurenz 560791afe8
Fix footnote migration (#4095) 2024-05-08 09:31:28 +00:00
Leedehai cbb01fc81a
Make more characters stretchable by mid() (#4092) 2024-05-07 14:08:42 +00:00
Leedehai aa38b96849
Fix: `number-align` should align line/number baselines (#4024) 2024-05-07 13:46:18 +00:00
bluebear94 2f390c5317
Add `auto` option for page headers/footers (#4051)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-06 15:23:32 +00:00
Wenzhuo Liu f120932bcd
Add support for circled number numbering (#4049) 2024-05-06 14:09:35 +00:00
T0mstone c4c53ab52e
Add `exact` argument to `array.zip` (#4030) 2024-05-06 14:02:27 +00:00
Yip Coekjan 556979c83b
Change `smallcaps` into an element function (#3981)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-05-06 12:57:16 +00:00
bluebear94 d27414937a
Add support for Eastern Arabic numerals (#4036) 2024-05-01 08:07:45 +00:00
PgBiel 1247c6d8e1
Add `std` module for names in the standard library (#4038) 2024-04-30 12:49:18 +00:00
Leedehai 44bc51ba4f
Let let-binding raise error on unexpected keywords (#4034) 2024-04-30 12:30:38 +00:00
hardlydearly 6ba94c4518
Remove repetitive words (#3991)
Signed-off-by: hardlydearly <799511800@qq.com>
2024-04-30 12:22:59 +00:00
JustForFun88 d7838ab128
Add `reduce` method to `array` (#3911) 2024-04-30 12:21:40 +00:00
Matt Fellenz 97de0a0595
Various text layout config improvements (#3787) 2024-04-30 12:18:19 +00:00
Ian Wrzesinski 45245f0695
Fix empty 2-d math args with whitespace/trivia (#3786)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-04-19 14:31:45 +00:00
Heinenen d65d9d0fe6
Localization with custom key-value format (#3728) 2024-04-19 14:26:49 +00:00
Laurenz a6a331bd2d
Add regression tests for container sizing with layoutable child (#3955) 2024-04-18 12:55:20 +00:00
Malo c5c73ec931
Fix compiler panic on stack with infinite spacing (#3918) 2024-04-18 12:20:05 +00:00
Laurenz 02285e8b1f
Fix path in sized container (#3954) 2024-04-18 09:33:36 +00:00
Niklas Mohrin 0523f22d83
Warn about unknown font families during parsing (#3854) 2024-04-17 15:25:16 +00:00
Laurenz 401ba82927
Make some changes that were deferred until after 0.11 (#3934) 2024-04-15 09:00:48 +00:00
Laurenz 020294fca9
Better test runner (#3922) 2024-04-13 08:39:45 +00:00