Page 1 of 1

Customizing tags in the Author?

Posted: Wed Jun 25, 2008 12:38 pm
by Faros65
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

Re: Customizing tags in the Author?

Posted: Wed Jun 25, 2008 2:25 pm
by sorin_ristache
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

Re: Customizing tags in the Author?

Posted: Tue Jun 02, 2009 11:59 am
by sorin_ristache
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

Re: Customizing tags in the Author?

Posted: Mon Jun 15, 2009 2:32 pm
by honyk
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

Re: Customizing tags in the Author?

Posted: Mon Jun 15, 2009 2:53 pm
by sorin_ristache
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

Re: Customizing tags in the Author?

Posted: Mon Jun 15, 2009 4:24 pm
by honyk
Thanks for quick response, you are absolutely right, it works fine!

Re: Customizing tags in the Author?

Posted: Thu Dec 08, 2011 6:39 pm
by SSC
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?

Re: Customizing tags in the Author?

Posted: Fri Dec 09, 2011 10:15 am
by Radu
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

Re: Customizing tags in the Author?

Posted: Mon Jul 02, 2012 10:44 am
by SSC
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

Re: Customizing tags in the Author?

Posted: Mon Jul 02, 2012 11:46 am
by Radu
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

Re: Customizing tags in the Author?

Posted: Mon Jul 02, 2012 12:26 pm
by SSC
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

Re: Customizing tags in the Author?

Posted: Wed Jul 04, 2012 5:21 pm
by Radu
Hi Simon,

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

Regards,
Radu

Re: Customizing tags in the Author?

Posted: Fri Oct 19, 2012 2:21 pm
by Radu
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