Customizing tags in the Author?

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
Faros65
Posts: 5
Joined: Wed Jun 25, 2008 12:23 pm

Customizing tags in the Author?

Post by Faros65 » Wed Jun 25, 2008 12:38 pm

Hello!

I'm currently evaluating the Author and up to now find it quite useful for my purpose (that is authoring technical documents in DocBook) and definitely good value for money. However, there is one important thing I could not find.

Maybe I just overlooked it in the documentation, but I would need to redesign the graphical tags (font size, tag height, foreground and background colour) in the "Author" view. At the moment they are too big and too dark and thus hampering the reading/writing flow by catching the author's eye instead of humbly submitting info in the background as a good butler would do.

Is such a setting possible as it is e.g. in XMetaL? I would not mind hacking some configuration or ini file as there seem to be nothing in the Preferences dialogue window.

Thank you in advance!

Greetings,

Faros

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Customizing tags in the Author?

Post by sorin_ristache » Wed Jun 25, 2008 2:25 pm

Hello,

No, the design of the graphical tags of the Author mode is not configurable in the current version, that is version 9.2. We will consider making them configurable in a future version.


Thank you for your suggestion,
Sorin

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Customizing tags in the Author?

Post by sorin_ristache » Tue Jun 02, 2009 11:59 am

Hello,

We implemented a part of your request. The foreground and background color of the tags used in Author mode will be configurable starting with version 10.3.


Regards,
Sorin

honyk
Posts: 168
Joined: Wed Apr 29, 2009 4:55 pm

Re: Customizing tags in the Author?

Post by honyk » Mon Jun 15, 2009 2:32 pm

Good news, but with config of font size it would be even better. I would also suggest replacing current font with better readable one.

Jan

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: Customizing tags in the Author?

Post by sorin_ristache » Mon Jun 15, 2009 2:53 pm

Faros65 wrote:Maybe I just overlooked it in the documentation, but I would need to redesign the graphical tags (font size, tag height, ...
honyk wrote:Good news, but with config of font size it would be even better. I would also suggest replacing current font with better readable one.
The tags font in Author mode is the same as the text font so when you change the font for text in Author mode (Author default font in Preferences) that changes the XML tags font too. The size of the tags font is smaller with two pixels than the text font so the font size for the XML tags is also changed together with the font family from the Preferences setting.


Regards,
Sorin

honyk
Posts: 168
Joined: Wed Apr 29, 2009 4:55 pm

Re: Customizing tags in the Author?

Post by honyk » Mon Jun 15, 2009 4:24 pm

Thanks for quick response, you are absolutely right, it works fine!

SSC
Posts: 206
Joined: Thu Dec 01, 2011 4:22 pm
Location: Hamburg, Germany

Re: Customizing tags in the Author?

Post by SSC » Thu Dec 08, 2011 6:39 pm

Hello,

just did a search in the forum about "coloring tag elements" in the Author view and found this thread.

I found the possibility to change the color of all the tag elements in the preferences ( oXygen -> Editor -> Edit modes/Pages -> Author )

What can I do if I want to color certain tag elements with a particular tag name?
For instance I want to color tags named publication green and topic tags red...
Can I do it via CSS or programm code or something else?
Simon Scholz
vogella GmbH
http://www.vogella.com

Radu
Posts: 6592
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing tags in the Author?

Post by Radu » Fri Dec 09, 2011 10:15 am

Hi,

We already have such an improvement request registered and you'll be notified when it gets implemented.
The implementation of this feature will probably involve having some additional custom Oxygen CSS properties to style background, foreground colors for the full tags mode.

In the meantime, a workaround I gave previously for this would be that instead of changing to Full Tags using our action, to create an additional CSS stylesheet which imports the standard DITA one (in your case) and which adds some before and after content for each element.
If you specify the new CSS as alternate in the Document Type Association then you could switch to it using the CSS selector available on the toolbar.

Example:

Code: Select all


p:before{
color:blue;
background-color:brown;
border:ridge 1px;
content:"<" local-name() ">";
}


p:after{
color:blue;
background-color:brown;
border:ridge 1px;
content:"</" local-name() ">";
}
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

SSC
Posts: 206
Joined: Thu Dec 01, 2011 4:22 pm
Location: Hamburg, Germany

Re: Customizing tags in the Author?

Post by SSC » Mon Jul 02, 2012 10:44 am

Radu wrote:Hi,
We already have such an improvement request registered and you'll be notified when it gets implemented.
[...]
Does Oxygen 14 now support changing the color of certain tag elements?
If yes, how can I implement this feature?

Best regards,

Simon
Simon Scholz
vogella GmbH
http://www.vogella.com

Radu
Posts: 6592
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing tags in the Author?

Post by Radu » Mon Jul 02, 2012 11:46 am

Hi Simon,

No, sorry. We have a lot of things to do and it's a very tough call to decide which issue gets done and on what version.
Right now the issue is scheduled for version 14.2 (maybe in 6 months or so). I will contact you directly when it becomes available.
How urgent is this to you?
So you just want to have different coloring of the full tags markers controlled from the CSS?
Do you also want to change the name which appears on those tags, which right now is the name of the XML element?

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

SSC
Posts: 206
Joined: Thu Dec 01, 2011 4:22 pm
Location: Hamburg, Germany

Re: Customizing tags in the Author?

Post by SSC » Mon Jul 02, 2012 12:26 pm

Hello Radu,

we´d like to be able to only change the color(not the text) of certain tags programmatically, so that the color can be changed during runtime under certain circumstances.
CSS is maybe too static, or would it be possible to use the StylesFilter in order to alternate the tag colors?
Radu wrote:How urgent is this to you?
We would appreciate in having this feature in version 14.1, if it would be possible for you to change your schedule a bit?
Hopefully the fact that we do not want to change the text of the tags makes it a bit easier for you to implement this feature.
Maybe you could release the coloring of tags in version 14.1 and implement the rest of the issue in version 14.2.


Best regards,

Simon
Simon Scholz
vogella GmbH
http://www.vogella.com

Radu
Posts: 6592
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing tags in the Author?

Post by Radu » Wed Jul 04, 2012 5:21 pm

Hi Simon,

I cannot make any promises yet but I'll update this thread when we reach a conclusion.

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

Radu
Posts: 6592
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing tags in the Author?

Post by Radu » Fri Oct 19, 2012 2:21 pm

Hi,

Oxygen 14.1 which was just released added this new feature of customizing the colors of the full tags:

http://www.oxygenxml.com/doc/ug-oxygen/ ... -tags.html

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

Post Reply