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

Render TEI annotations #221

Merged
merged 4 commits into from
Dec 9, 2024
Merged

Render TEI annotations #221

merged 4 commits into from
Dec 9, 2024

Conversation

gythaogg
Copy link
Collaborator

@gythaogg gythaogg commented Dec 9, 2024

This pull request introduces new behaviors and styling rules to handle specific elements in the show_popup.js script and tei.css stylesheet. The changes primarily focus on processing and displaying different XML elements.

Enhancements in element handling:

  • Added behavior for lg element to create a quote element and process its child nodes.
  • Added behavior for l element to create a div element and process its child nodes.
  • Added behavior for unclear element to wrap content in a span with a specific class and display it with parentheses using CSS.
  • Added behavior for foreign element to wrap content in a span with a specific class and display it in italics with a title attribute for the language.
  • Added behavior to discard milestone elements.

Styling updates:

  • Added CSS rules to style foreign elements in italics and wrap unclear elements with parentheses.

fixes #134

@gythaogg gythaogg merged commit 191843d into main Dec 9, 2024
@gythaogg gythaogg deleted the tei-styles branch December 9, 2024 14:16
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.

TEI to HTML
1 participant