additional CSS features for Author mode
Are you missing a feature? Request its implementation here.
-
- Posts: 48
- Joined: Wed Oct 22, 2014 4:11 pm
additional CSS features for Author mode
Post by friedemann_bach »
Dear Forum,
is there a chance that the Author mode will support one or more of the following CSS features in one of the next releases?
is there a chance that the Author mode will support one or more of the following CSS features in one of the next releases?
- property/value "font-variant: small-caps"
- property "text-decoration-color"
- selector "::first-letter"
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: additional CSS features for Author mode
Hi,
Please see some possible answers below:
But there are free TTF fonts which render with small-caps by default (you can google for "TTF small caps font").
And Oxygen can dynamically load a font using the CSS font-face property:
https://www.oxygenxml.com/doc/versions/ ... media.html
so instead of using small-caps font variant you could change the font-family on that element to use a particular font which renders everything with small caps.
Regards,
Radu
Please see some possible answers below:
We do not yet have support for this, we tried to do this once but we do not seem to have much support in the Java VM for it.property/value "font-variant: small-caps"
But there are free TTF fonts which render with small-caps by default (you can google for "TTF small caps font").
And Oxygen can dynamically load a font using the CSS font-face property:
https://www.oxygenxml.com/doc/versions/ ... media.html
so instead of using small-caps font variant you could change the font-family on that element to use a particular font which renders everything with small caps.
Oxygen should support this already. Could you give me a small example of what your CSS selector looks like?property "text-decoration-color"
I will add an improvement request for this. Could you tell me about your use-case?selector "::first-letter"
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 48
- Joined: Wed Oct 22, 2014 4:11 pm
Re: additional CSS features for Author mode
Post by friedemann_bach »
Good workaround, this works fine in our case. Thanks!property/value "font-variant: small-caps"
We do not yet have support for this, we tried to do this once but we do not seem to have much support in the Java VM for it.
But there are free TTF fonts which render with small-caps by default (you can google for "TTF small caps font").
Sure:property "text-decoration-color"
Oxygen should support this already. Could you give me a small example of what your CSS selector looks like?
in XML(TEI): <hi rend="underline">Beobachter</hi>
in CSS: text body hi[rend~='underline'] { text-decoration:underline; text-decoration-color:red; text-decoration-style:double; }
It is rendered double underlined, but not red. I am still using Oxygen 16, so maybe I just have to update?
Of course. We are working with historical texts and use Oxygen Author for transcriptions. It would be nice to configure the transcription Author mode in a way that looks similar to the original design. In many of our historical texts, sometimes the first letter of a paragraph is enlarged. This is documented in an attribute on the paragraph (@rendition in TEI). Of course, we could also enclose the initial letter in another element, but it would be more convenient for the editors if it was possible to deduce the design by the rendition attribute of the whole paragraph.selector "::first-letter"
I will add an improvement request for this. Could you tell me about your use-case?
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: additional CSS features for Author mode
Hi,
A workaround for this could be done using a double bottom border like:
Regards,
Radu
Sorry about that, I managed to reproduce the problem on my side and we'll probably fix it in Oxygen 18.0 (next year in Spring).in XML(TEI): <hi rend="underline">Beobachter</hi>
in CSS: text body hi[rend~='underline'] { text-decoration:underline; text-decoration-color:red; text-decoration-style:double; }
It is rendered double underlined, but not red. I am still using Oxygen 16, so maybe I just have to update?
A workaround for this could be done using a double bottom border like:
Code: Select all
hi[rend ~= 'underline']{
border-bottom:double red;
text-decoration:none;
}
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 48
- Joined: Wed Oct 22, 2014 4:11 pm
-
- Posts: 19
- Joined: Thu Nov 14, 2013 1:04 pm
Re: additional CSS features for Author mode
Post by joerg.hambuch »
Hello,
I just tried small-caps in oXygen XML Editor 20. As far as I can see, the CSS features
and
still are not supported by oXygen.
This is the relevant part of my CSS:
This is the XML code snippet:
Please tell me I am just missing something.
Best regards,
Jörg Hambuch
I just tried small-caps in oXygen XML Editor 20. As far as I can see, the CSS features
Code: Select all
:first-letter
Code: Select all
font-variant: small-caps;
This is the relevant part of my CSS:
Code: Select all
[rend="kapitaelchen"] {
text-transform: uppercase;
font-variant: small-caps; /* non-functional in oXygen? */
font-size: 80%;
}
[rend="kapitaelchen"]:first-letter { /* ::first-letter seems to be non-functional, too. */
font-size: 100%;
}
Code: Select all
<katalognachweis>
<hi rend="kapitaelchen">fehlt</hi>
</katalognachweis>
Best regards,
Jörg Hambuch
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: additional CSS features for Author mode
Hi Jörg,
You are correct, our Author visual editing mode does not have support for ":first-letter" and font-variant small-caps.
If at some point we manage to add this support we'll update this forum thread.
The workaround for "small-caps" could be an idea I posted in this same thread, loading in the CSS and using a specific font which only displays as small-caps.
Regards,
Radu
You are correct, our Author visual editing mode does not have support for ":first-letter" and font-variant small-caps.
If at some point we manage to add this support we'll update this forum thread.
The workaround for "small-caps" could be an idea I posted in this same thread, loading in the CSS and using a specific font which only displays as small-caps.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 13
- Joined: Wed Dec 11, 2013 4:45 pm
Re: additional CSS features for Author mode
Hello,
Has there been any recent consideration to respect the CSS font-variant small-caps property in the XML Web Author?
I'd like to add my vote for implementing this feature in an upcoming release.
Thanks much,
Bruce
Has there been any recent consideration to respect the CSS font-variant small-caps property in the XML Web Author?
I'd like to add my vote for implementing this feature in an upcoming release.
Thanks much,
Bruce
-
- Posts: 515
- Joined: Wed May 20, 2009 2:40 pm
Re: additional CSS features for Author mode
Hi,
For the moment the font-variant small-caps property is not supported in Web Author. I have added your vote for this feature. We will analyze it again and we will update this thread if it will be available.
Regards,
Mihaela
For the moment the font-variant small-caps property is not supported in Web Author. I have added your vote for this feature. We will analyze it again and we will update this thread if it will be available.
Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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