Parentheses

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Parentheses

Dovilė Gervytė
Hi,

I'm wondering, is there any smarter way in coding the following case,  
in which the parentheses rather indicate a doubt than just a  
punctuation: "... (word) (alternative word)". Here's what I've got so  
far (but am not sure about):

<add n="1">
   <g ref="#parent">(<g>
   word
   <g ref="#parent">)<g>
</add>
<add n="2">
   <g ref="#parent">(<g>
   alternative word
   <g ref="#parent">)<g>
</add>

- with detalizing this different 'glyph's' function in the header.

Would it be fine or should I just put a <p> element, exlpaining the  
case inline?

Thank You for answers,

Dovilė
Reply | Threaded
Open this post in threaded view
|

Re: Parentheses

Vanessa Bigot Juloux
Hi Dovilé,

If I understand your question, the brackets between <g> before/after the “word” and “alternative word” are not included in the manuscript. I suppose that you added <g> element for the bracket only, but that your “word” in the manuscript is between <w> element. I hope I understood correctly.
So my suggestion would be to use the element(s) <damage> (+ maybe <unclear> according to the context) in your manuscript (maybe you did it already) and then <supplied>, see “11.3.3.1 Damage, Illegibility, and Supplied Text” (http://www.tei-c.org/release/doc/tei-p5-doc/en/html/PH.html#PHDA)—more information about the use of damage/unclear/supplied (http://www.tei-c.org/release/doc/tei-p5-doc/fr/html/PH.html#PHCOMB).Then in your XSL file for displaying the TEI content, you can add a class in <span> or the brackets between <xsl:text> :

In your TEI file:
Your word in your manuscript:
<damage><unclear><w  xml:id=“id-word”>damage word</w></unclear></damage>
And then
<supplied n=“1”><w ana=“#id-word”>word</w></supplied>
<supplied n=“2”><w ana=“#id-word”>alternative word</w></supplied>

Afterwards, in your XSL file:
<xsl:for-each select=“supplied[@n]">
<span class=“NAMEOFYOURCLASS"> <xsl:value-of select=“./w” /></span>
</xsl:for-each>

span.NAMEOFYOURCLASS::before {content: “(”;}
span.NAMEOFYOURCLASS::after {content: “)”;}
Note double-colon used in CSS3 doesn’t work with IE8, so you can also use single-colon (CSS2).

If you don’t want to use a CSS selector, then you can add in your XSL file:
<xsl:for-each select=“supplied[@n]”>
<xsl:text>(</xsl:text><xsl:value-of select=“./w” /><xsl:text>)</xsl:text>
</xsl:for-each>

Thus, I think it is important to consider XSL (and CSS) when working on a TEI file, in particular for the adding of content which is not included in a manuscript. But perhaps other TEI practitioners won’t agree with me.

Hope it helps—and that I’m not wrong ;)

Best,

Vanessa

Le 16 juil. 2018 à 23:53, Dovilė Gervytė <[hidden email]> a écrit :

Hi,

I'm wondering, is there any smarter way in coding the following case, in which the parentheses rather indicate a doubt than just a punctuation: "... (word) (alternative word)". Here's what I've got so far (but am not sure about):

<add n="1">
 <g ref="#parent">(<g>
 word
 <g ref="#parent">)<g>
</add>
<add n="2">
 <g ref="#parent">(<g>
 alternative word
 <g ref="#parent">)<g>
</add>

- with detalizing this different 'glyph's' function in the header.

Would it be fine or should I just put a <p> element, exlpaining the case inline?

Thank You for answers,

Dovilė