[tei-council] @style
Martin Holmes
mholmes at uvic.ca
Fri Oct 5 14:09:20 EDT 2012
This is interesting. These are actually instances where a CSS
pseudo-element is needed, so they're not naturals for @style or even
@rendition/<rendition>. For instance, in the case of the first, in
XHTML/CSS, you would do:
#el:before{
content: '\2018';
}
#el:after{
content: '\2019';
}
It's not possible to put this kind of CSS into an XHTML @style attribute
AFAIK, because a key part of the information is in the selector, not the
ruleset. You could do something like this:
<rendition xml:id="saidBefore">content: '\2018';</rendition>
<rendition xml:id="saidAfter">content: '\2019';</rendition>
and then link with:
<said rendition="#saidBefore #saidAfter">...
but this relies on the processor "knowing" that <rendition>s with
"Before" or "After" suffixes in their @xml:ids are to be converted into
pseudo-elements in CSS.
Can anyone see a more elegant way to do this?
Cheers,
Martin
On 12-10-05 10:41 AM, Lou Burnard wrote:
> I am currently working my way through CO, HD, and ST implementing our
> decision to introduce @style. Mostly it's pretty plain sailing, but I
> have just hit a passage in CO where I'd appreciate Council's guidance.
>
> At the end of COHQQ I find the following rather exotic examples :
>
> <egXML xmlns="http://www.tei-c.org/ns/Examples"
> corresp="#DSHD-eg-30"><said rend="PRE lsquo POST rsquo">Who-e debel
> you?</said> — he at last said —
> <said rend="PRE lsquo POST rsquo">you no speak-e,
> damme, I kill-e.</said> And so saying,
> the lighted tomahawk began flourishing
> about me in the dark.</egXML>
>
> <egXML xmlns="http://www.tei-c.org/ns/Examples"
> corresp="#COHQQ-eg-23" xml:lang="fr">Adolphe se tourna vers lui :
> <said>— Alors, Albert, quoi de neuf?</said>
> <said>— Pas grand-chose.</said>
> <said>— Il fait beau,</said> dit Robert.</egXML>
>
> <egXML xmlns="http://www.tei-c.org/ns/Examples" corresp="#COHQQ-eg-23"
> xml:lang="fr">Adolphe se tourna vers lui :
> <said rend="PRE mdash">Alors,
> Albert, quoi de neuf ?</said>
> <said rend="PRE mdash">Pas grand-chose.</said>
> <said rend="PRE mdash">Il fait beau,</said>
> dit Robert.</egXML>
> </p>
>
> Would someone like to propose better encodings for these, using @style
> and/or @rendition? Or should we leave them?
>
>
>
--
Martin Holmes
University of Victoria Humanities Computing and Media Centre
(mholmes at uvic.ca)
More information about the tei-council
mailing list