Page 1 of 1

How do you type a non-breaking space in the Editor?

Posted: Fri May 29, 2015 4:57 pm
by DanTemple
Is there some shortcut? I've tried Shift-Space, Ctrl-Space... ?

best regards,

Re: How do you type a non-breaking space in the Editor?

Posted: Fri May 29, 2015 5:59 pm
by Costin
Hello,

As the no-break space entity is not available in all of the XML document types, but for the common ones, in order to see if a shortcut key combination can be assigned to such entity, could you please let us know what document type are you using? Is it a general XML file, or is it a DITA/DocBook/XHTML document?

Also, where exactly do you need to insert " " entities - do you need that in "Text", or in the "Author" (visual) editing mode?

By default there is no key-combination assigned for adding this entity, but, if you need to add the non-breaking space in one of the above mentioned common document types mentioned in the Author editing mode, this could be most probably done by defining a custom action in the Document Type Association (from oXygen menu Options > Preferences > Document Type Association) appropriate to your document type (DITA/DocBook/XHTML).
Basically this could be done by defining a new Action in the Author section of the appropriate document type, which would use the "InsertFragmentOperation" default operation with the " " set as the value.

In the configuration window for your custom action, you should be able to choose a key-combination, but this should be choose wisely, to not interfere with other combinations already bound to other actions which could be performed in a same given context.

Regards,
Costin

Re: How do you type a non-breaking space in the Editor?

Posted: Mon Jun 01, 2015 2:44 pm
by DanTemple
Thanks - I seem to have got it working, by duplicating one that existed already and modifying it.

Ctrl-Shift-Space is now the non-breaking space.

Re: How do you type a non-breaking space in the Editor?

Posted: Thu Jul 27, 2017 7:36 am
by Sathya
Hi, We can also use the following options:

For Nonbreaking space:
Edit > Insert from Character Map > select No-break Space

For Nonbreaking Hyphen:
Edit > Insert from Character Map > select Non-breaking Hyphen

Hope this helps.