162 Commits

Author SHA1 Message Date
Laurenz
ff2650373c Fix floating placement within containers
Fixes #1879
2023-09-13 15:26:23 +02:00
Laurenz
305524d005 Update tests for type system changes 2023-09-11 14:42:43 +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
bluebear94
499c5f2444
Fix improper line wrapping in the presence of medial newlines (#2056)
Fixes #2019.
2023-09-04 11:46:17 +02:00
Laurenz
8c9c959f4f Rename test
The name `empty` shall not appear in any test but `empty.typ`.
2023-09-01 11:48:57 +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
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
Matt Fellenz
823fc5e5c4
Fix incomplete line endings (#1866) 2023-08-06 00:15:29 +02:00
Laurenz
fa9e2c6237 Resolve place deltas relative to real container size 2023-07-19 12:59:34 +02:00
Laurenz
3dcd8e6e6b
Positions placed elements relative to real container size (#1745)
This positions placed elements relative to the real container size instead of relative to the base size of the region. This makes its usage more versatile.

Fixes #82
Fixes #685
Fixes #1705
2023-07-19 12:53:36 +02:00
Laurenz
78f96f844b Basic floating placement 2023-07-10 18:16:59 +02:00
Laurenz
04bffc4f12 Reintroduce --root 2023-06-28 10:36:53 +02:00
Zachary Capalbo
19bf1f5894
Clear page to Even Or Odd (#1427)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-06-12 14:28:25 +02:00
Luis David Licea Torres
3284e7fac7
Support for inside and outside margins (#1308)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-06-12 12:46:34 +02:00
Peng Guanwen
a54cde71cb
Bugfix of CJK punctuation adjustment (#1384) 2023-06-01 15:14:56 +02:00
Sung Jeon
08b49291bc
Add NumberingKind variants for Korean (#1360)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-05-30 18:42:24 +02:00
Peng Guanwen
e2bf2327b5
Use icu4x for linebreaking algorithm (#1355) 2023-05-30 17:53:10 +02:00
Peng Guanwen
659f27bf6a
Do not hang CJK punctuation (#1211) 2023-05-15 08:57:17 +02:00
jassler
fd84d23ade
Support for align parameter in table to take an array (#1087) (#1149) 2023-05-12 12:26:14 +02:00
Pg Biel
1a6224f566
Default enum number alignment to 'end' (#1042) 2023-05-11 16:36:41 +02:00
Peng Guanwen
d19a4124de
Implement sophisticated CJK punctuation adjustment (#954) 2023-05-11 15:02:52 +02:00
Pg Biel
f88ef45ee6
Function scopes (#1032) 2023-05-03 14:20:53 +02:00
Leedehai
605b0b5f73
Remove trailing blankspaces (#1001) 2023-04-27 11:27:38 +02:00
Alexander Seiler
c941baa7ee
Correct some typos (#987) 2023-04-27 11:26:43 +02:00
Pg Biel
ae4accc071
Fix alignment of list markers & enum numbers (#988) 2023-04-26 10:03:34 +02:00
HarmoGlace
42b93b7b53
Add quo, trunc and fract calculation methods and rename mod to rem (#890) 2023-04-20 16:09:41 +02:00
Peng Guanwen
480ad7670b
More Chinese punctuation adjustment (#836)
and also general linebreak improvements
2023-04-17 18:20:59 +02:00
Peng Guanwen
ff16f3fb37
Refine linebreak algorithm for better Chinese justification (#701) 2023-04-13 10:44:39 +02:00
Pg Biel
ca71081d05
Add 'layout' function to obtain the size of the outer container (#557) 2023-04-06 15:36:36 +02:00
Marmare314
0f8219b392
Unpacking syntax (#532)
Closes #341
2023-04-06 15:26:09 +02:00
Laurenz
a73149767c Fix block child spacing 2023-04-06 15:13:26 +02:00
Laurenz
4f4af02ace Fix path and polygon strokes 2023-04-06 12:58:27 +02:00
Laurenz
f9b9be16f9 Fix box and block sizing 2023-04-06 12:26:39 +02:00
Laurenz
e13c72b301 Fix first line indent with styled text 2023-04-05 00:15:51 +02:00
Laurenz
b469f30c83 Fix block spacing 2023-04-02 19:47:42 +02:00
Birk Tjelmeland
ed79ecbb44
Add support for cliping content in block and box (#431) 2023-04-01 16:04:38 +02:00
Chris Ohk
418bd89ba4
Correct minor typos (#474) 2023-03-31 16:51:12 +02:00
Laurenz
e724d04253 Update changelog 2023-03-27 16:51:03 +02:00
Laurenz
a5c88c19b3 Fix enum parsing and allow zero in numberings
Fixes #353.
2023-03-27 12:12:57 +02:00
Ryan Pitasky
8b1852cffb
Replace infinite repeat layout panic with error (#235)
When a page has auto width and there were no other constraints on the repetition width, this would previously panic. Now, there is an explicit check with a new error and test case.
2023-03-24 09:15:24 +01:00
Kian-Meng Ang
25acefeb5b
Fix typos (#115)
Found via `codespell -S target -L
crate,ist,thi,alle,dedented,ue,tung,nd,ende,overriden,dependant`
2023-03-22 09:02:51 +01:00
Laurenz
ab43bd802e Renaming and refactoring 2023-03-19 22:39:19 +01:00
Laurenz
0ba99ab8aa Measurement and introspection rework 2023-03-19 10:19:34 +01:00
Laurenz
312197b276 Counters 2023-03-17 11:45:57 +01:00
Laurenz
2bacbaf2bd Hanging indent 2023-03-14 22:30:21 +01:00
Laurenz
e5eab73374 Streamline field names 2023-03-08 11:02:27 +01:00
Laurenz
1b2b53ecb9 Require font to be a named argument 2023-03-08 10:44:24 +01:00
Laurenz
25b5bd1175 Fully untyped model 2023-03-07 15:17:13 +01:00
Laurenz
7597b99789 New default style 2023-02-25 20:04:30 +01:00