Shortcut to type a non-breaking space

Hi group Can a shortcut, for example CTRL+SHIFT+spacebar, be used to type a non-breaking space ( ) in oXygen's XML Author Author mode? If yes, how? Thanks -- Yves Barbion www.scripto.nu

Hi Yves, You could create an Author action for it and assign a keyboard shortcut to the action. If in the Preferences->"Document Type Association" page you edit the DITA document type in the "Author" tab there is an "Actions" tab to which you can add a new action. The action should be enabled in any XPath context (you can set true() to the activation XPath context) and should call a predefined operation "ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation" with a parameter which represents the small XML fragment to insert, in our case:
You can also add your action to the toolbars, main and contextual menus. More about creating a custom action here: http://www.oxygenxml.com/doc/ug-oxygen/#tasks/dg-insert-section-action.html Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/18/2014 10:58 AM, Yves Barbion wrote:
Hi group
Can a shortcut, for example CTRL+SHIFT+spacebar, be used to type a non-breaking space ( ) in oXygen's XML Author Author mode?
If yes, how?
Thanks
-- Yves Barbion www.scripto.nu <http://www.scripto.nu>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Hi Radu Sorry, but you've lost me after "If in the Preferences->"Document Type Association" page you edit the DITA document type in the "Author" tab there is an "Actions" tab to which you can add a new action". This is where I got so far: 1. Choose Options > Preferences. 2. Go to The Document Type Association preferences. 3. Select the DITA document type and click the Edit button. 4. In the Document type dialog, click the Author tab and the Actions tab in the left-hand pane. 5. Click the + icon button to add a new action. I now see the Action dialog which says: Operations 1 When this XPath expression is true invoke the operation [ text box ] [Choose] with the arguments I guess I have to type () after "When this XPath expression is true"? But when I click the Choose button to select the predefined operation "ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation", I can't find this operation in the list. Any ideas? Thanks -- Yves Barbion www.scripto.nu

Hi Yves, The "InsertFragmentOperation" should be in the list. I'm attaching a screenshot which should clarify things. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 2/18/2014 5:06 PM, Yves Barbion wrote:
Hi Radu
Sorry, but you've lost me after "If in the Preferences->"Document Type Association" page you edit the DITA document type in the "Author" tab there is an "Actions" tab to which you can add a new action".
This is where I got so far:
1. Choose Options > Preferences. 2. Go to The Document Type Association preferences. 3. Select the DITA document type and click the Edit button. 4. In the Document type dialog, click the Author tab and the Actions tab in the left-hand pane. 5. Click the + icon button to add a new action.
I now see the Action dialog which says:
Operations
1
When this XPath expression is true
invoke the operation [ text box ] [Choose]
with the arguments
I guess I have to type () after "When this XPath expression is true"? But when I click the Choose button to select the predefined operation "ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation", I can't find this operation in the list.
Any ideas?
Thanks
-- Yves Barbion www.scripto.nu <http://www.scripto.nu>

Hi Radu Yes, your screen shot helped me out. Thank you very much again. Cheers -- Yves Barbion www.scripto.nu
participants (2)
-
Oxygen XML Editor Support
-
Yves Barbion