Prevent insertion of multiple spaces between words in normal text

Are you missing a feature? Request it's implementation here.
Drew
Posts: 5
Joined: Thu Oct 25, 2018 7:14 pm

Prevent insertion of multiple spaces between words in normal text

Post by Drew » Thu Nov 01, 2018 6:59 pm

Just moving from Arbortext to Oxygen now. In Arbortext, if you are editing "normal text", e.g., in a paragraph (

Code: Select all

<p>
), and you hit the Space bar more than once, you do not get multiple consecutive space chars; it automatically keeps only one space char. In code samples (e.g.

Code: Select all

<codeph>
,

Code: Select all

<codeblock>
) you can of course insert multiple consecutive space chars.

I haven't found how to prevent Oxygen from inserting multiple space chars in "normal text" contexts. For example, if I insert an

Code: Select all

<xref>
element I need to be sure that there is a (single) space char before and after that element, so the surrounding text looks OK. Similarly, if I delete a word, in Oxygen I'm left with two consecutive space chars.

It's a pain to try to tell whether there is a space char, and only one space char, in such contexts. Sometimes I need to zoom in and check carefully.

Is there a simple way to get the behavior I'm looking for with Oxygen?

Thx.

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

Re: Prevent insertion of multiple spaces between words in normal text

Post by Radu » Fri Nov 02, 2018 11:56 am

Hi Drew,

Indeed Oxygen allows you to insert multiple spaces even in non-space preserve areas.
We have a plan to remove this flexibility but we were skeptical to implement this because sometimes it's useful to allow two consecutive whitespaces, for example if you want to insert an extra word before two words, you may want to insert a second space between them and then move the caret one position to the left and add that word.
As far as I know having multiple spaces in the content should not influence the publishing output in any way.

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

chrispitude
Posts: 81
Joined: Thu May 02, 2019 2:32 pm

Re: Prevent insertion of multiple spaces between words in normal text

Post by chrispitude » Sat May 11, 2019 3:29 pm

FrameMaker has an option for this ("Smart Spaces"). Unfortunately, sometimes we need it (example reports from software output) and sometimes we don't (regular body text). Personally I'd like this capability, but with the ability to exempt certain elements from it.

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

Re: Prevent insertion of multiple spaces between words in normal text

Post by Radu » Mon May 13, 2019 3:09 pm

Hi Chris,

Thanks for the feedback. Indeed if we implement this improvement of preventing extra white spaces between words we will probably do that only for elements which are not space-preserve, so you will probably not need an extra way to specify the excepted elements because Oxygen already knows the space preserve elements.
I will update this forum thread if we manage to implement this in a future release.

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

chrispitude
Posts: 81
Joined: Thu May 02, 2019 2:32 pm

Re: Prevent insertion of multiple spaces between words in normal text

Post by chrispitude » Tue May 14, 2019 2:38 am

Radu wrote:
Mon May 13, 2019 3:09 pm
Thanks for the feedback. Indeed if we implement this improvement of preventing extra white spaces between words we will probably do that only for elements which are not space-preserve, so you will probably not need an extra way to specify the excepted elements because Oxygen already knows the space preserve elements.
Ahh, that would work perfectly. Thanks Radu!

Post Reply