21 Commits

Author SHA1 Message Date
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
Wenzhuo Liu
b97ee93b8f
Support adjustment of more CJK punctuation (#2456) 2023-10-22 13:45:51 +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
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
tingerrr
063e9afccf
Add custom smart quotes (#2209) 2023-09-25 16:19:22 +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
b471ac7d59 First-class types
Makes types first-class values.
2023-09-11 14:40:22 +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
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
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
damaxwell
8a57395ee4
Support OpenType writing script (#1697) 2023-07-19 12:25:24 +02:00
T0mstone
46a6f92bf3
Add alternative smartquotes (#1631) 2023-07-06 13:52:24 +02:00
Sébastien d'Herbais de Thun
07553cbe71
Raw syntax definition loading (#1655) 2023-07-06 13:51:28 +02:00
Laurenz
ebfdb1dafa Move everything into crates/ directory 2023-07-02 20:07:43 +02:00