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 »

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: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Customizing tags in the Author?

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Customizing tags in the Author?

Post 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
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

Re: Customizing tags in the Author?

Post 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
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Customizing tags in the Author?

Post 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
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

Re: Customizing tags in the Author?

Post by honyk »

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 »

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: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing tags in the Author?

Post 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
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 »

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: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing tags in the Author?

Post 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
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 »

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: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing tags in the Author?

Post by Radu »

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: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Customizing tags in the Author?

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply