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

Option to ignore <BR> elements #1

Open
simongray opened this issue Dec 12, 2023 · 2 comments
Open

Option to ignore <BR> elements #1

simongray opened this issue Dec 12, 2023 · 2 comments

Comments

@simongray
Copy link
Member

simongray commented Dec 12, 2023

Problem statement

Many of the TEI documents on Clarin.dk are extemely narrow, making reading them pretty hard if once is to respect the original formatting. An option to enable/disable this on-demand could be pretty useful.

Implementation

This could be implemented as

br { display: none; }

However, one complication is the fact that it would need to also apply to shadow-dom elements since it is used in the TEI reader. Perhaps the way to do it is by setting a variable in the page :root and using this as the display value for
in tei.css, e.g.

br { display: var(--tei-br-display) ; }

Unsure if this would work. Another option is to rebuild the Hiccup every time this setting changes.

@simongray
Copy link
Member Author

A lot of this is caused by a lack of column support, though, so perhaps this is worth exploring first? e.g. dkclarin-7106986f-0142-419a-8e6d-d84b66d4ae3e_bolli_1678-B_CTB_body.xml uses the <cb> element to mark column beginnings.

@simongray
Copy link
Member Author

Column support has been added in c9677ba

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

No branches or pull requests

1 participant