Copy link to clipboard
Copied
Hi,
I have a long text to work on inDesign and I noticed that sometimes the space is missing between the full stop/period and the first word of the next sentence. What should I write in the GREP tool in the entering field "Find what"?
Thank you for your answers!
[Here is the list of all Adobe forums... https://forums.adobe.com/welcome]
[Moved from Comments forum to specific Program forum... Mod]
\.\w
Should do the basic search.
But I'm sure GREP enthusiasts will come up with a more elegant solution.
I'm thinking about excluding emails or URL of the query, i.e.
Copy link to clipboard
Copied
\.\w
Should do the basic search.
But I'm sure GREP enthusiasts will come up with a more elegant solution.
I'm thinking about excluding emails or URL of the query, i.e.
Copy link to clipboard
Copied
Assuming new sentence always starts with Capital letter:
\.\u
Well, it's not more elegant and still can give you a certain number of false positives (depends on actual text).
Copy link to clipboard
Copied
It works too, thank you!
Copy link to clipboard
Copied
I don't know about elegance, but you don't want to have to type in the change each time. This will work as a complete Find/Change:
Find:
\.(\w)
Replace
. $1
Note: There's a space between \. and $1
Copy link to clipboard
Copied
Perfect! Thank you!
Copy link to clipboard
Copied
It works perfectly, thanks!
Copy link to clipboard
Copied
Does this ever happen with question marks or exclamation marks? If so there should be a way to do it for those too. I just don't know it myself.
Copy link to clipboard
Copied
I guess, vinny and I just wanted to leave some space for OP's creative mind
Well, this one will insert a space after any punctuation and any character (with Change to field revealed):
Find what: ([[:punct:]])(\w)
Change to: $1 $2
Copy link to clipboard
Copied
And for question and exclamation marks only, a bit different approach:
Find what: [\?\!]\K\w
Change to: \s$0
Copy link to clipboard
Copied
Forum is incredibly laggy today, while everything other is just fine. Am I the one? Question is already marked as 'answered', but one of my (rather early) posts is still 'being moderated'
Well...
Copy link to clipboard
Copied
Just for comment! Not global but really less risky!
(^/)