Prevent insertion of multiple spaces between words in normal text
Are you missing a feature? Request its implementation here.
-
- Posts: 6
- Joined: Thu Oct 25, 2018 7:14 pm
Prevent insertion of multiple spaces between words in normal text
Just moving from Arbortext to Oxygen now. In Arbortext, if you are editing "normal text", e.g., in a paragraph (), 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. , ) 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 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.
Code: Select all
<p>
Code: Select all
<codeph>
Code: Select all
<codeblock>
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>
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.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Prevent insertion of multiple spaces between words in normal text
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Prevent insertion of multiple spaces between words in normal text
Post by chrispitude »
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.
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Prevent insertion of multiple spaces between words in normal text
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
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
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 922
- Joined: Thu May 02, 2019 2:32 pm
Re: Prevent insertion of multiple spaces between words in normal text
Post by chrispitude »
Ahh, that would work perfectly. Thanks Radu!Radu wrote: ↑Mon May 13, 2019 3:09 pmThanks 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.
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service