Can you give us some more information? Indesign version, OS. How did you get the text into Indesign? Maybe a screenshot showing the problem. You can use the camera icon to insert the image.
If disabling hyphenation and/or applying the correct language code and font don't/doesn't work, then you'll have to apply no-break to everything between white space. You can use this GREP expression for that:
Find what: (?<=\s).+?(?=\s)
Change to: leave empty
and set No Break in the Change Format panel.
This ignores the first and the last word in a story, but the first word won't need the no-break. The last word in a story you can capture with this expression:
Wouldn't it be easier to create a character style with the No Break attribute and apply it to [^\s] as a GREP style?
GREP styles execute every time there's a change in the document, and
because that no-break style has such a wide application, I suspect that
the GREP would slow the document down considerably.
On Fri, 19 Dec 2014 10:36:43 -0000, Peter Spier <firstname.lastname@example.org>
Thanks for the suggestions! I will try them out. I didn't realize there was a no-break attribute that could be applied to words, I thought it was only for spaces.
That's a valid point.
Using the [^\s] class seems more efficient to me, though, than the look-arounds as it doesn't excluded any words, so perhaps it could be used in Find/Change?
Using the class seems more efficient to me, though, than the
look-arounds as it doesn't excluded any words, so perhaps it could be
used in Find/Change?
But (or just \S) has many more matches than the one with
look-arounds so it may be slower. Just a hunch, no real evidence.