DITA Reusable Components - Change double-click behavior

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
B-E-N
Posts: 122
Joined: Thu Mar 24, 2016 5:54 pm

DITA Reusable Components - Change double-click behavior

Post by B-E-N » Wed Jan 17, 2018 4:47 pm

Hi,

we are about to switch to keywords instead of variables. Now when I want to insert a new <keyword> into my text, I thought that double-clicking the keyword I want in the "DITA Reusable Components" window would insert a <keyword> element. However, it inserts a <ph> element with a "keyref" attribute. It works fine, but before discovering the "DITA Reusable Components" window we've already inserted a lot of <keyword> elements and would like to stick to this semantic.

A work-around is to right click the keyword in the list, select "Insert as Keyref" and then select "keyword" from the menu.

But my question: Is there a way to change the double-click behavior to insert <keyword> instead of <ph>?

We are using Oxygen 19 with a customized framework.

Thank you,
Benjamin

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

Re: DITA Reusable Components - Change double-click behavior

Post by Radu » Thu Jan 18, 2018 2:20 pm

Hi Ben,

I'm afraid we do not yet have a setting for this. As you are not the first ones to ask for this, we'll probably add one in a future Oxygen version (probably Oxygen 20.1 in Autumn 2018).
If you have heavy customizations of the DITA framework, we do have Java API which would allow you to intercept insertions in Oxygen of "ph keyref" and maybe modify them to "keyword keyref":

https://www.oxygenxml.com/doc/versions/ ... marks.html

but this would make it impossible for anyone to insert a ph with keyref.
Or you can use our XML Refactor operations (Tools menu) to replace all your "keyword keyref" with "ph keyref" in all your topics and continue with using "ph keyref". Or you can use ph keyref in some places and keyword keyref in others. Does not matter much, more about the difference between the two constructs:

post43869.html?hilit=ph%20keyword%20keyref#p43869

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

B-E-N
Posts: 122
Joined: Thu Mar 24, 2016 5:54 pm

Re: DITA Reusable Components - Change double-click behavior

Post by B-E-N » Fri Jan 19, 2018 4:30 pm

Thanks for considering this for a Oxygen 20. In the meantime I will have a look at your suggestions.

zoelawson17
Posts: 1
Joined: Mon Apr 22, 2019 10:41 pm

Re: DITA Reusable Components - Change double-click behavior

Post by zoelawson17 » Mon Apr 22, 2019 10:47 pm

I would also very much appreciate being able to chose the behavior of the DITA Reusable Components panel, so select which element is used for the keys. I also prefer keyword over ph.

Thanks!
Zoë Lawson

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

Re: DITA Reusable Components - Change double-click behavior

Post by Radu » Tue Apr 23, 2019 10:33 am

Hi Zoë,

Thanks for the feedback, I added your request on the opened issue. When this gets done I will update this forum thread.

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

Post Reply