Commit Graph

61 Commits

Author SHA1 Message Date
Anton Wetzel ba05164bb6
Change rectangle clip to use the inside of the stroke, not the middle. (#2626) 2023-11-08 15:30:00 +01:00
KronosTheLate 3a1e47913d
Make reference to spreading in arguments of `grid` (#2593)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-11-07 16:56:09 +01:00
Sébastien d'Herbais de Thun c0f6d2004a
Content rework 2 - Electric Boogaloo (#2504) 2023-11-06 21:37:50 +01:00
Laurenz c177a63c9b Fix citation grouping bug with spaces 2023-10-31 12:19:30 +01:00
Laurenz ab5dd2a1cb CSL support 2023-10-31 01:33:06 +01:00
Fritz Rehde c3114fa380
Fixed typos (#2524) 2023-10-30 23:25:28 +01:00
Laurenz 995fc40363 Remove duplicated lookup 2023-10-29 22:41:28 +01:00
Laurenz 4c75adbb04 Simplify linebreaking
Switches from an iterator to callback style, which significantly increases the clarity of the whole thing.
2023-10-28 23:03:09 +02:00
Laurenz 0f4f37cc09 Bump ICU data 2023-10-28 20:35:38 +02:00
Laurenz aa62d05453 Fix justification with hanging indent and negative spacing
Fixes #2419
2023-10-28 20:05:51 +02:00
Laurenz c3b1e32d11 Fix justified linebreaking without justifiables 2023-10-28 18:02:16 +02:00
tingerrr 1603e2df26
Fix trailing mandatory breaks being swallowed (#2502) 2023-10-27 00:17:47 +02:00
Francisco J. Sanchez c29a31b6c5
Fix pagebreak.to check (#2475) 2023-10-25 17:16:34 +02:00
Wenzhuo Liu b97ee93b8f
Support adjustment of more CJK punctuation (#2456) 2023-10-22 13:45:51 +02:00
MALO cf9ca6cb59
Fix compiler panic for float with no vertical alignment (#2437) 2023-10-22 13:43:24 +02:00
Eric Biedert 3ed6462ee0
Don't hyphenate on no-break characters (#2396) 2023-10-22 13:36:33 +02:00
tingerrr 80175db397
Filter out prohibited line breaks in `par` (#2376) 2023-10-17 11:26:34 +02:00
Peng Guanwen e4d9db83ea
Automatically add spacing between CJK and Latin characters (#2334) 2023-10-17 11:14:09 +02:00
Sébastien d'Herbais de Thun 9bca0bce73
Fix clipping when a box/block has a `radius` (#2338) 2023-10-10 11:51:22 +02:00
HydroH 7b61d722dd
Adjust table inset behavior to the same as container's (#1979) (#2323) 2023-10-09 15:52:04 +02:00
bluebear94 6bb776029e
Fix crashes with infinite lengths (part 2) (#2298) 2023-10-05 10:26:36 +02:00
Sébastien d'Herbais de Thun a4e357fb37
Gradient Part 2 - Linear gradients (#2279) 2023-10-03 19:31:02 +02:00
bluebear94 d709b0e247
Honor text’s fallback option for hyphenation (#2301) 2023-10-03 15:04:15 +02:00
DVDTSB e84cd13ce7
initial Romanian support (#2246) 2023-09-28 11:15:45 +02:00
bluebear94 553da642bd
Handle compiler panics when handling infinite lengths (#2215) 2023-09-28 11:15:09 +02:00
Eric Biedert 0d39fa021f
Prevent block spacing with placed elements (#2244) 2023-09-26 16:59:51 +02:00
Eric Biedert c8ebcd70d6
Resolve spacing before comparing (#2235) 2023-09-26 11:42:05 +02:00
DVDTSB 34b3f72370
Add `wide` spacing for math (#2224) 2023-09-26 10:29:43 +02:00
tingerrr 063e9afccf
Add custom smart quotes (#2209) 2023-09-25 16:19:22 +02:00
LU Jialin 079ccd5e5b
Fixing the styling issues of the empty pages caused by pagebreak (#2182) 2023-09-25 14:13:54 +02:00
FlyinPancake 44bbfded5f
feat: inital Hungarian language support (#2229) 2023-09-25 13:52:26 +02:00
Peng Guanwen 50f354e989
Correct the consecutive hyphen cost (#2190)
This just fixes a mistake previously made. `0.3` is the correct number that is proportional to the parameters in Knuth's paper. The previously choosed value `300` is due to my calculation mistake and is too large that essentially prevent any consecutive hyphens.
2023-09-19 17:05:32 +02:00
Laurenz 72d8a9c89a Fix duplicate state manipulation
The flow layouts footnotes twice in some cases, which messed up the Vt's locator state. Typically, we use `thing.measure` instead of `thing.layout` to prevent side effects, but in this case it was simpler to just undo the modification. A future layout engine rewrite should try to make this kind of error harder to make.

Fixes #1597
2023-09-18 10:51:29 +02:00
Laurenz 3dd12d13f8
Fix invisibles on final page (#2141) 2023-09-14 13:36:39 +02:00
Laurenz ff2650373c Fix floating placement within containers
Fixes #1879
2023-09-13 15:26:23 +02:00
Laurenz 8fb225feb4 Fix box in 100% width block
Fixes #2128
2023-09-13 13:44:28 +02:00
Kevin K 8927f3d572
Add logical numbering support for PDF export (#1933)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-09-13 10:18:08 +02:00
Laurenz b471ac7d59 First-class types
Makes types first-class values.
2023-09-11 14:40:22 +02:00
Laurenz b76e8d5db9 Interpret vertical page number alignment differently
The vertical alignment of `number-align` now selects header or footer instead of aligning within the footer. This is a minor breaking change because
- top behaves differently now
- horizon is now forbidden
- bottom (the new default) behaves differently, too
Typical number-align usage will likely not use the vertical component at all, though.

Fixes #645
2023-09-06 10:32:54 +02:00
Laurenz 7c42c9bab0 Docs fixes
Fixes #2059
Fixes #1946
Fixes #1936
Fixes #1862
Fixes #1820
Fixes #1383
2023-09-04 13:18:35 +02:00
bluebear94 499c5f2444
Fix improper line wrapping in the presence of medial newlines (#2056)
Fixes #2019.
2023-09-04 11:46:17 +02:00
Martin Haug ba043a8d70
Add a page setup guide (#1911) 2023-09-04 11:43:11 +02:00
Beiri22 e1558268f9
Introduce second variant of Ignorant Behaviour and prevent weak page breaks at basically empty pages (#1929) 2023-08-30 12:58:16 +02:00
Kivi Kaitaniemi 139328bb95
Add Finnish translations (#1996) 2023-08-25 14:32:11 +02:00
Beiri22 ea469c2df6
calm down clippy even more (#1997) 2023-08-25 14:27:50 +02:00
bluebear94 3fcb5ea73c
Render opening smart quote after another opening quote of a different type (#1559) 2023-08-23 14:55:43 +02:00
bluebear94 b59b8bfb35
linebreak_optimized: Handle breakpoints separated only by spaces (#1821) 2023-08-23 13:39:22 +02:00
Matt Fellenz f56060c1b3
Penalize runts (#1858) 2023-08-08 11:27:15 +02:00
Laurenz 07c80e9a81 Touch up docs 2023-08-07 15:58:16 +02:00
bluebear94 c5a103867d
layout::par::finalize: Bound allotted width when fitting to width (#1828)
Sometimes, optimized line breaking outputs lines that are wider
than the allotted width so that spacing between words can be
narrowed to fit. However, the width calculation for the fit-to-width
case does not account for this, causing the resulting width to exceed
the width of the region. This commit takes the minimum of the
calculated width with the width of the region. Fixes #1825.
2023-08-03 00:45:40 +02:00