CSS features

Are you missing a feature? Request it's implementation here.
friedemann_bach
Posts: 48

CSS features

Wed Oct 22, 2014 4:30 pm

Dear developers,

I noticed that some CSS features, which are of great importance for some of my projects, are currently not supported in the Author Mode. They are CSS 2 standard, though, and supported by all standard browsers. Would it be possible to support them in one of the next versions?

This concerns (for my purposes, so far):
- letter-spacing
- text-indent
- text-align:justify

It would be great if I could use these properties not only in my broser, but also in the Author Mode.

Or maybe somebody knows a workaround?

Best regards,
friedemann_bach
Radu
Posts: 5749

Re: CSS features

Thu Oct 23, 2014 11:01 am

Hi,

Thanks for the feature requests. We already have issues opened for all three of them and I added your contact details to all of them so that when one of them is done the forum thread will be updated.
Probably at some point in a future version we'll manage to work and implement the letter-spacing and the text-indent properties. The justify text alignment is quite hard to do and requires quite a lot of architecture changes on our side, so no guarantees for implementing this one in a future version.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
friedemann_bach
Posts: 48

Re: CSS features

Thu Oct 23, 2014 11:54 am

Hi Radu,

thank you for your response, that is good news. In fact, my two personal priorities are letter-spacing and text-indent, while text-align:justify would more be like a "luxury" feature.

Best regards,
friedemann
Radu
Posts: 5749

Re: CSS features

Thu Oct 23, 2014 12:04 pm

Hi,

I forgot to ask you about the use case, probably your main use case is to have the edited content look more like the generated HTML content in a web browser, correct?
For example, why would you use the text-indent for? Do you need negative indent for certain paragraphs?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
friedemann_bach
Posts: 48

Re: CSS features

Thu Oct 23, 2014 12:36 pm

Hi Radu,

we are planning to transcribe 19th century texts (from print, mostly journals or newspapers) to TEI XML. Wide letter-spacing and indented paragraphs are very typical for that time. It would be perfect for the transcribers if I could configure the Author Mode to look as similar as possible to the originals. Negative indent is much less frequent, but appears sometimes as well. My priority would be first line indent.

Many thanks!
friedemann
Radu
Posts: 5749

Re: CSS features

Thu Oct 23, 2014 12:41 pm

Hi,

For indenting the first line of a paragraph you can add an inline before element with a little bit of spacing in it like:

Code: Select all

p:before{
    content: "  ";
}


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
friedemann_bach
Posts: 48

Re: CSS features

Fri Oct 24, 2014 1:36 pm

Yes, indeed this is a practical workaround, which I had figured out some days before. Thanks nonetheless :) Of course, from an ideal perspective, it would be nice to have the Author Mode CSS as similar as possible to a standard web browser CSS.

I still haven't found a workaround for the letter-spacing - if somebody had any hint ...

Best regards,
friedemann
Radu
Posts: 5749

Re: CSS features

Fri Oct 24, 2014 1:42 pm

Hi,

No workaround for now, besides loading and using another TTF font family for those elements, maybe a font in which characters are by default spaced out.
I looked a little bit into providing support for letter spacing, it looks feasible and if all goes well you will have that in Oxygen 17 (spring of 2015).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
stdu
Posts: 81

Re: CSS features

Mon Oct 27, 2014 1:45 pm

Hi Radu,

support for letter-spacing would be great.
+1 from me ;-)

Thx & Greets,
Stefan
Radu
Posts: 5749

Re: CSS features

Mon Oct 27, 2014 2:48 pm

Thanks Stefan,

I added your vote for it. The feature will probably work in the Oxygen standalone but it will not work in the Oxygen plugin for Eclipse because we do not have enough platform support there to make this work there.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
friedemann_bach
Posts: 48

Re: CSS features

Tue Oct 28, 2014 3:27 pm

Hi Radu,

spring 2015 would be just perfect for our project. Thank you very much for looking into our issue!

I will also try the method with the font family you proposed.

All the best,
friedemann

Return to “Feature Request”

Who is online

Users browsing this forum: No registered users and 0 guests