Author mode: working with -oxy-placeholder-content
Posted: Thu Oct 15, 2015 4:44 pm
Dear Forum,
I have an issue when trying to use "-oxy-placeholder-content".
Using TEI, I want to identify later and earlier stages of a historical text, by parallel markup. Here is an example:
Which says that "lived" appears in two other sources as "liveth" and "livd" respectively.
This is the CSS used in the Author mode:
It results in:
lived] w2 liveth w3 livd
Which fits quite nice to the purpose.
Now, imagine another source in which the word "lived" does not appear at all. It had to be marked up like that:
And I want it to be rendered like that:
lived] w2 liveth w3 livd w4 ∅
I tried adding this line to my CSS:
text body app rdg { -oxy-placeholder-content:attr(wit)' ∅ '; }
But it does not seem to work when :before { content:'...' } is in used on the same class.
Furthermore, when omitting the rdg:before styles, it will display only the first expression, attr(wit), but not the following string, ' ∅ '.
Is there a fix or a workaround to achieve this? I would appreciate this very much.
I have an issue when trying to use "-oxy-placeholder-content".
Using TEI, I want to identify later and earlier stages of a historical text, by parallel markup. Here is an example:
Code: Select all
<app>
<lem wit="#w1">lived</lem>
<rdg wit="#w2">liveth</rdg>
<rdg wit="#w3">livd</rdg>
</app>
This is the CSS used in the Author mode:
Code: Select all
app lem:after { content:']'; }
app rdg:before { content:' 'oxy_replace(attr(wit),'#','')': '; font-style:italic; }
lived] w2 liveth w3 livd
Which fits quite nice to the purpose.
Now, imagine another source in which the word "lived" does not appear at all. It had to be marked up like that:
Code: Select all
<app>
<lem wit="#w1">lived</lem>
<rdg wit="#w2">liveth</rdg>
<rdg wit="#w3">livd</rdg>
<rdg wit="#w4"/>
</app>
lived] w2 liveth w3 livd w4 ∅
I tried adding this line to my CSS:
text body app rdg { -oxy-placeholder-content:attr(wit)' ∅ '; }
But it does not seem to work when :before { content:'...' } is in used on the same class.
Furthermore, when omitting the rdg:before styles, it will display only the first expression, attr(wit), but not the following string, ' ∅ '.
Is there a fix or a workaround to achieve this? I would appreciate this very much.