Page 1 of 1

mis-placed softwrap

Posted: 2020-12-16 13:53:53
by dushanm
I’m running NWE 4.2 under macOS 13.6, and would like to fix two issues that I sometimes run into. I’ll split them into two posts.

The first one is long-standing over several previous versions of NWE, namely: Soft-wrapping occasionally misbehaves by sending the next word to a new line long before it needs to. Here’s an image showing the behavior:
softwrap1.png
softwrap1.png (11.34 KiB) Viewed 9146 times
But if _any_ character other than a space, not just the comma shown below, is placed after that next word, the misbehavior disappears:
softwrap2.png
softwrap2.png (10.64 KiB) Viewed 9146 times
How do I prevent this weird behavior?

Re: mis-placed softwrap

Posted: 2020-12-17 09:55:01
by martin
This is an (intended) quirk of the line wrapping rules, as decided by Apple and the Unicode consortium. You can read more about the behavior in this forum thread.

The quick solution is that you can prevent the undesirable wrapping by inserting a "zero-width non-joiner" character. You should see that character listed in Nisus Writer's special characters, under the "Spaces" category.

I hope that helps!

Re: mis-placed softwrap

Posted: 2020-12-17 12:02:55
by dushanm
Thanks for the explanation, bizarre as it is, and for the solution. Yes, I did notice the "zero-width non-joiner" and will use it next time.