Reply To: GREP — Moving "one-letter" words to next line

Home Page / Forums / General InDesign Topics (CLOSED) / GREP — Moving "one-letter" words to next line / Reply To: GREP — Moving "one-letter" words to next line

#61682

Manually:

Search for this GREP string

b[ul] ww

and specify “No Break” in the Replace With Formatting (you don't need to put anything in the Replace With Text field).

Maybe better:

1. Create a new character style called “No Break”, and only switch on the No Break attribute.

2. Add this GREP style to the paragraph style you are using for the little piggy text:

b[ul] ww

3. Set the character style to apply to your “No Break” style.

.. and from hence on all single letter words will always be kept with the next one, totally fully 100% automatic!

The GREP works like this: b is the word delimiter — before the next code there should not be another letter. [ul] is a set, consisting of all Uppercase and all Lowercase letters. Any single one of these will be matched. Then there is a space, which will match a regular space only. Next, there should follow a word consisting of at least two more characters — w stands for 'any word character at all', and repeating it tells ID to use two in a row.

This article was last modified on February 23, 2012

Comments (0)

Loading comments...