tei-publisher-lib v3.0.0 changes the output modes: the mode named "print", which previously was a synonym for "fo", now refers to HTML combined with paged media CSS. It is based on the web output mode, but allows users to apply separate models for printing. This is important for behaviours like alternate or note, which must behave differently in print.
The PR integrates this functionality into TEI Publisher. Further enhancements:
a separate print preview based on pagedjs. This library adds a polyfill to make the browser respect paged media expressions in the CSS
XML documents can now specify which output modes (other than 'web') they prefer by adding a media property to the <?teipublisher?> processing instruction, e.g.: <?teipublisher media="tex,printcss,pdf"?>
Requires tei-publisher-lib version 3.0.0, which is a breaking change as output mode "print" has been reassigned.
Tests will fail until tei-publisher-lib 3.0.0 has been released to the public repo.
tei-publisher-lib v3.0.0 changes the output modes: the mode named "print", which previously was a synonym for "fo", now refers to HTML combined with paged media CSS. It is based on the web output mode, but allows users to apply separate models for printing. This is important for behaviours like alternate or note, which must behave differently in print.
The PR integrates this functionality into TEI Publisher. Further enhancements:
media
property to the<?teipublisher?>
processing instruction, e.g.:<?teipublisher media="tex,printcss,pdf"?>
Requires
tei-publisher-lib
version 3.0.0, which is a breaking change as output mode "print" has been reassigned.Tests will fail until tei-publisher-lib 3.0.0 has been released to the public repo.