How to troubleshoot Double Hyphenation in Finish Compound Words Using GREP in InDesign?
Finnish is a language with many hyphenated compound words. I am looking for a way to prevent double hyphenation in those by using GREP in paragraph styles. The solution I came up with is creating a “no break” character style and applying it to both sides of the hyphen
[\l\u]+(?=-)
and
(?<=-)[\l\u]+
But for some reason InDesign will then not hyphenate the word at the correct location either. Even adding a discretionary hyphen does not help. What am I doing wrong?
Here’s a picture to clarify what the problem is (with magenta color added to the "no break" character style):

<Title renamed by moderator>
