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

Inline list is not rendered properly #151

Open
tubesoft opened this issue Feb 17, 2025 · 1 comment
Open

Inline list is not rendered properly #151

tubesoft opened this issue Feb 17, 2025 · 1 comment
Assignees
Labels
rendering Rendering of TEI markup

Comments

@tubesoft
Copy link
Collaborator

I am posting the issue in order to clarify the change.

@wehooper said,

The names should appear inline in blocks like paragraphs but instead each item lands on its own row.

At line 1743 of ‘ALCH00002.xml’, following ‘2 Authores Vetutissimi. ’, we currently have this code: . The encoder’s goal would be to apply a ‘display:inline’ class to the list in the HTML, but the ‘rend=“inline”’ attribute is not being read or used by the XSLT template in ‘p5-tohtml.xsl’.

I have been experimenting with the available attributes and classes and, frankly, our app’s current XSLT code seems to need some adjustment by me or Takatomo.

Perhaps we should be using the ‘type’ attribute, like ‘type=”rend-inline”’, since there are two styles in ‘tei.css’ that respond to “rend-inline”. But even that attribute fails to apply the ‘inline’ class using the current ‘list’ template.

This use case has simply not been worked out for ‘list’. So, do we remove the ‘list’, ‘ul’, and ‘item’ elements from those blocks, and retain the rest, or do we fix the code so it does what we need it to do?

@tubesoft
Copy link
Collaborator Author

I found that just making the list inline on CSS does not work. To render just as the manuscript shows, we should not use <ul> and <li> elements at all. So, I added XSLT code only in the case of @rend=inline.

Then it becomes like this:

Image

@tubesoft tubesoft self-assigned this Feb 17, 2025
@tubesoft tubesoft added the rendering Rendering of TEI markup label Feb 17, 2025
tubesoft pushed a commit that referenced this issue Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rendering Rendering of TEI markup
Projects
None yet
Development

No branches or pull requests

1 participant