-
Notifications
You must be signed in to change notification settings - Fork 0
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
Italic rendering in the <note type="biblio"> #98
Comments
According to the CSS (https://github.com/IUBLibTech/newton_chymistry/blob/master/static/css/tei.css), the TEI should contain a rendition value of "rend-i" so |
It is sure that CSS has an italic rendition part, but the XSLT code that can transform Of course I can copy the same XSLT code to the XSLT for manuscripts, but I am not really sure it is good idea to hardcode the same thing at the two separate place, which might not be good for the maintainability. |
I checked the P5 to HTML XSL (https://github.com/IUBLibTech/newton_chymistry/blob/master/xslt/p5-to-html.xsl) and I see a template match for the |
I've got a new clue. We could not see any tags on the rendered HTML because I used |
When I copied line 77-82 of
then the text is properly italicized. |
Finally, I think problem solved! |
After going over this with @jawalsh he pointed out that we would need to add a rendition for '' in the TEI Header: /TEI/teiHeader/encodingDesc/tagsDecl and that the XSLT appends the "rend" to the "I" as you discovered. I think using the XSLT from the bibliography works and I would stick to that since it's using the CSS span to create the italics. |
Oh, sorry. I already committed to the |
This feature appears to work as desired. I looked at Keynes 60 (ALCH00049) which has this note type. The bibl popups contain the added citation features and the italics is working nicely. I'm going to close this issue. (I hope there's an override somewhere, in case.) |
Yes. I included it in #99. I just confirmed in my local environment. |
This has been updated in Carbon. Looks good. |
I thought the existing tei code transformed the <xsl:template match="hi" mode="citation-popup">
<xsl:element name="span">
<xsl:attribute name="class" select="replace(@rend,'(.+)','rend-$1')"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
|
The italics are appearing as requested. |
Currently, Alex's demo xml file uses the same tagging as authoritative bibliography for italicizing. That is, it is
<hi rendition="#i">
. However, I am not sure if we should code in this way. For example, the cited title of the work in the popup is italicized by<cite>
whose tag is added in the xslt file. I think the coding rule should be clarified.The text was updated successfully, but these errors were encountered: