Copy link to clipboard
Copied
Some words in my files have prefixes attached in parentheses, e.g. "(an)treffen" or "(zer)streuen". Now when these happen to appear near the end of a line, InDesign chooses to break them as follows:
xxx (an)
treffen
xxx (zer)
streuen
whereas, of course, these should be
xxx (an-)
treffen
xxx (zer-)
streuen
How make InDesign insert a hyphen in such circumstances?
I tried inserting U+00AD discretionary hyphen before the closing parenthesis, but it will remain invisible even though InDesign breaks the word at this point.
It sure feels like InDesign ought to be able to do this on its own, so someone may still come up with a pure InDesign-based solution. I can't think of any -- all "reasonable" attempts with any combination of visible and/or invisible characters don't work.
But here is a solution using … a custom font! (I used my own IndyFont​ , which automatically takes care of the required OpenType programming, but of course you can use other font editor you want. All I'm saying it took 5 minutes, no more, to pul
...Copy link to clipboard
Copied
Did you try adding them to your user dictionary?
Copy link to clipboard
Copied
Thanks Mike. Yes, I've tried adding "(an~)treffen" and "(zer~)streuen" to my user dictionary but got this message:
Words containing punctuation other than ending periods may not be added to the dictionary
Even if adding these forms to the user dictionary would have been possible, the closing parenthesis would then probably have been moved to the new line when hyphenating, which would not have been the desired result.
Copy link to clipboard
Copied
Hi there,
Please take a look at this help article: Compose and hyphenate text in Adobe InDesign.
Feel free to let us know if you still need assistance.
Regards,
Srishti
Copy link to clipboard
Copied
Thanks Srishti. I have studied the help article you linked to but did not find the solution to my problem.
Obviously I could simply insert a regular hard hyphen before the closing parenthesis but for various reasons this is a no-go.
I could also insert U+00AD discretionary hyphen in front of these forms to prevent them from being broken at the end of a line. But since the body copy is set in narrow columns (with lots of words in another alphabet that cannot be broken) I'd prefer to allow the Paragraph Composer to hyphenate as many German words as possible.
Copy link to clipboard
Copied
samar1234 wrote
… whereas, of course, these should bexxx (an-)
treffen
xxx (zer-)
streuen
The way you like the hyphen automatically work is not possible. The closing paranthesis would go to the next line.
All you can do is manually add a "hyphen" character Unicode 002D.
Why not doing a hyphen in both cases?
A. xxx (an-)treffen
B. xxx (an-)
treffen
Regards,
Uwe
Copy link to clipboard
Copied
If there is a text reflow due to some edits elsewhere in the paragraphs (sometimes these can be quite long), I fear I'll forget to check whether such a hyphen sits in some other place than at the very end of a line.
I've come to the conclusion that as a workaround I'll simply prevent such words from breaking at the closing parenthesis spot by applying a "No Language and don't hyphenate" character style to closing parenthesis followed by letters. Breaking "(an)tref-fen" would then still be possible.
Thanks
Samuel
Copy link to clipboard
Copied
It sure feels like InDesign ought to be able to do this on its own, so someone may still come up with a pure InDesign-based solution. I can't think of any -- all "reasonable" attempts with any combination of visible and/or invisible characters don't work.
But here is a solution using … a custom font! (I used my own IndyFont​ , which automatically takes care of the required OpenType programming, but of course you can use other font editor you want. All I'm saying it took 5 minutes, no more, to pull this off with IF </plug>.)
For this, all you need is a font that has 3 characters: a regular closing parenthesis, a regular hyphen (because that is the character that InDesign inserts when it needs to display a soft hyphen), and a ligature consisting of a closing parenthesis followed by a hyphen. Make sure it does not look like that -- it actually looks like this!
Then, use Find/Change to add a soft hyphen after all closing parentheses, and at the same time set the font for just these two characters to your custom font. This is what it looks like when not hyphenated, when the closing parenthesis is shown "as usual":
but this is what happens when InDesign breaks on the discretionary hyphen, and so displays the combination ")-" using the custom font!
… for clarity, without the frames and invisibles it looks like this:
Find more inspiration, events, and resources on the new Adobe Community
Explore Now