CSS replace() function: selection of the content of an element
Oxygen general issues.
-
- Posts: 2
- Joined: Tue Sep 06, 2011 3:30 pm
CSS replace() function: selection of the content of an element
Hi there,
I am trying to replace characters with Oxygen XML Editor Custom CSS Function replace() or oxy_replace().
Already seen: http://www.oxygenxml.com/forum/post11666.html ; http://www.oxygenxml.com/forum/post12665.html
My xml file (e.g.)
I'd like to see:
Post mortem equidem et sepulturam prefati philiberti
And replace:
ſ => s ; ꝛ => r ; δ => d ; ɼ => r
I've tried with
but cannot find the value for the first argument, selecting the content of the element <p> .
How can I do that?
Thank you,
Dominique
I am trying to replace characters with Oxygen XML Editor Custom CSS Function replace() or oxy_replace().
Already seen: http://www.oxygenxml.com/forum/post11666.html ; http://www.oxygenxml.com/forum/post12665.html
My xml file (e.g.)
Code: Select all
<p> [...] Poſt moꝛtem equiδem et ſepulturam prefati philibeɼti </p>
Post mortem equidem et sepulturam prefati philiberti
And replace:
ſ => s ; ꝛ => r ; δ => d ; ɼ => r
I've tried with
Code: Select all
p{
text-transform:oxy_replace(*,"ſ", "s",false);
text-transform:oxy_replace(*,"ꝛ", "r",false);
}
How can I do that?
Thank you,
Dominique
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: CSS replace() function: selection of the content of an element
Dear Dominique,
Oxygen supports for the text-transform property the values specified in the CSS 2.1 specification:capitalize | uppercase | lowercase | none | inherit
So we do not support using custom extension functions for the property value which would replace the text of the paragraph with a custom filtered text.
What is your use case? Why are you trying to do this?
Regards,
Radu
Oxygen supports for the text-transform property the values specified in the CSS 2.1 specification:capitalize | uppercase | lowercase | none | inherit
So we do not support using custom extension functions for the property value which would replace the text of the paragraph with a custom filtered text.
What is your use case? Why are you trying to do this?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Tue Sep 06, 2011 3:30 pm
Re: CSS replace() function: selection of the content of an element
Dear Radu,
thank you so much for such a quick answer.
My research team works on medieval scripts. The excerpt I gave is simplified (lots of "html-entities" declared in another file for increasing the working speed, as
For statistical purposes or publishing, we use XSLT:
<xsl:value-of select="replace()"/>
But, for the people working either in Editor or in Author mode, I am looking for a quick and easy way (i.e. CSS) to read, search and check the text with normalized letters.
The need is theoretically fulfilled with CSS3 (http://www.cssportal.com/css-properties ... eplace.htm)
How would you do that?
Thank you!
Dominique
thank you so much for such a quick answer.
My research team works on medieval scripts. The excerpt I gave is simplified (lots of "html-entities" declared in another file for increasing the working speed, as
so that the original file is human-*un*readble, with parts like:<!ENTITY de-δ-tilde "<choice><expan>de</expan><abbr>δ̃</abbr></choice>">
standing for<persName>goδefriδ&tilde4-us; &de-δ-tilde;i</persName>
which is easy to let appear like<persName>goδefriδ<choice><expan>us</expan><abbr>⁹</abbr></choice> <choice><expan>de</expan><abbr>δ̃</abbr></choice>i</persName>
orgoδefriδ⁹ δ̃i
But replacing the letters withouth coding them with <choice> (in TEI) is very issue.goδefriδus dei
For statistical purposes or publishing, we use XSLT:
<xsl:value-of select="replace()"/>
But, for the people working either in Editor or in Author mode, I am looking for a quick and easy way (i.e. CSS) to read, search and check the text with normalized letters.
The need is theoretically fulfilled with CSS3 (http://www.cssportal.com/css-properties ... eplace.htm)
How would you do that?
Thank you!
Dominique
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: CSS replace() function: selection of the content of an element
Hi Dominique,
We do not have so much support for presenting the actual text content in a different manner than it actually is in the XML because when the user would also want to edit the content there would be a lot of confusion for him as to what the actual content really looks like.
If you want to do this only for review purposes you can define an XSLT transformation which applies over the original XML document and outputs the same XML document with the characters translated. That XML document you can also view by opening it in Oxygen.
Regards,
Radu
We do not have so much support for presenting the actual text content in a different manner than it actually is in the XML because when the user would also want to edit the content there would be a lot of confusion for him as to what the actual content really looks like.
If you want to do this only for review purposes you can define an XSLT transformation which applies over the original XML document and outputs the same XML document with the characters translated. That XML document you can also view by opening it in Oxygen.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service