summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/layout/par.rs
AgeCommit message (Collapse)Author
2023-11-24Merge `typst` and `typst-library`Laurenz
2023-11-19Added `ghost` attr to `elem` macro (#2718)Sébastien d'Herbais de Thun
2023-11-19Streamline importsLaurenz
2023-11-13Filter out meta items when adding CJK-Latin (#2655)Wenzhuo Liu
spacing.
2023-11-06Content rework 2 - Electric Boogaloo (#2504)Sébastien d'Herbais de Thun
2023-10-30Fixed typos (#2524)Fritz Rehde
2023-10-29Remove duplicated lookupLaurenz
2023-10-28Simplify linebreakingLaurenz
Switches from an iterator to callback style, which significantly increases the clarity of the whole thing.
2023-10-28Bump ICU dataLaurenz
2023-10-28Fix justification with hanging indent and negative spacingLaurenz
Fixes #2419
2023-10-28Fix justified linebreaking without justifiablesLaurenz
2023-10-27Fix trailing mandatory breaks being swallowed (#2502)tingerrr
2023-10-22Support adjustment of more CJK punctuation (#2456)Wenzhuo Liu
2023-10-22Don't hyphenate on no-break characters (#2396)Eric Biedert
2023-10-17Filter out prohibited line breaks in `par` (#2376)tingerrr
2023-10-17Automatically add spacing between CJK and Latin characters (#2334)Peng Guanwen
2023-10-03Gradient Part 2 - Linear gradients (#2279)Sébastien d'Herbais de Thun
2023-10-03Honor text’s fallback option for hyphenation (#2301)bluebear94
2023-09-25Add custom smart quotes (#2209)tingerrr
2023-09-19Correct the consecutive hyphen cost (#2190)Peng Guanwen
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-11First-class typesLaurenz
Makes types first-class values.
2023-09-04Docs fixesLaurenz
Fixes #2059 Fixes #1946 Fixes #1936 Fixes #1862 Fixes #1820 Fixes #1383
2023-09-04Fix improper line wrapping in the presence of medial newlines (#2056)bluebear94
Fixes #2019.
2023-08-23Render opening smart quote after another opening quote of a different type ↵bluebear94
(#1559)
2023-08-23linebreak_optimized: Handle breakpoints separated only by spaces (#1821)bluebear94
2023-08-08Penalize runts (#1858)Matt Fellenz
2023-08-03layout::par::finalize: Bound allotted width when fitting to width (#1828)bluebear94
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-07-19Support OpenType writing script (#1697)damaxwell
2023-07-06Add alternative smartquotes (#1631)T0mstone
2023-07-06Raw syntax definition loading (#1655)Sébastien d'Herbais de Thun
2023-07-02Move everything into `crates/` directoryLaurenz