Copy link to clipboard
Copied
Hi there I work with Scottish Gaelic language everyday. And there is a rule that there can't be any apostrophes left on the end of paragraphs.
For example this:
Tha mi a’
dol a cheannach
would have to change to this:
Tha mi a’dol a cheannach
Its frustrating because I have to search all of my documents at the end and add in forced line breaks to any that are overhanging. I was wondering if there was a Grep style I could apply to stop overhanging apostophes and recognise that they can't break away from the following word (very similar to hyphenation).
Copy link to clipboard
Copied
There are probably more elegant ways to do it and account for possible exceptions, if there are any, but I'd try adding a GREP style to the primary Paragraph Style that applies NO BREAK (a Character Style that does nothing but apply the No Break attribute) to all instances of [appostrophe][space][wildcard:any character].
Copy link to clipboard
Copied
Thank you! This worked perfectly
Copy link to clipboard
Copied
Seems like a simple search for [apostrophe][paragraph return] (replace with just the apostrophe) would do it, without any need for GREP or more complex approaches.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now