Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print CSS improvements #141

Merged
merged 38 commits into from
Feb 12, 2023
Merged

Print CSS improvements #141

merged 38 commits into from
Feb 12, 2023

Conversation

wolfgangmm
Copy link
Member

@wolfgangmm wolfgangmm commented Jan 5, 2023

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.

@wolfgangmm wolfgangmm merged commit e0ed5af into master Feb 12, 2023
@windauer windauer deleted the printcss branch March 16, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants