Prince for Books is a new venture that allows us to spend more time on features particularly sought by publishers.
The initial focus of work is on features common to all books: making the pagination and line-breaking choices expected of books.
Read more in the Prince for Books documentation section of the User Guide.
Synchronised with Prince latest build 2022-07-01.
Synchronised with Prince 14.1.
Synchronised with Prince 13.
Fixed bug affecting fonts on MacOS 10.14 (Mojave).
Better handling of paragraphs containing a float, including the case of a drop cap.
(The line breaking will still be non-optimal around where each float starts and ends, where the line width changes, but most of the paragraph will now be more consistent with the rest of the document.)
Line breaking in multi-line headings now uses lookahead by default.
Change the balancedness criterion to include bottom margin, allowing that margin to be truncated for purposes of deciding whether the two pages can be considered to have the same length.
New @page
property prince-page-fill
to allow suppressing spread balancing.
Note that in this initial release, the value to suppress spread balancing is called auto
,
whereas in future releases the value will instead be called prefer-fill
.
CSS error-handling rules allow giving one declaration with each value for now.
Make spacing in justified paragraphs less dependent on the width of the font's space glyph.
Minor other line-breaking tweaks, including reducing degree of insistence on the last line being a fair proportion of the measure; and slight increase in insistence of being at least as long as the text indent.
Based on Prince 12.
prince-hyphenate-lines
limit.:lang(de)
).prince-text-wrap
to
prince-line-break-choices
, but retain prince-text-wrap
as alias.wrap
to body
.body-lookahead
', 'heading-lookahead
',
'title-lookahead
',
to enable paragraph-at-a-time line breaking for non-justified text:
that is, to allow revisiting an earlier line to improve a later line,
rather than deciding line ends one at a time before seeing what problems arise
in the rest of the paragraph.
The *-lookahead values will usually improve line-breaking choices in ragged paragraphs
(at the cost of using more time and memory),
and we expect them to become the default in future releases once we've had more
experience that they don't cause significant regression; please let us know if
you find they make anything worse.fast
, for quick web-browser–style line breaking:
useful for testing the effect of styling changes that don't depend on good
line breaking.prince-text-wrap: wrap | heading | title
.
[Renamed to prince-line-break-choices
in 2018-04.]prince-wrap-inside
and
prince-forced-breaks
for manually influencing line-breaking decisions.
text-indent
.