# Conditional hyphenation with &shy; does not work

**URL:** <https://forums.realmacsoftware.com/t/conditional-hyphenation-with-shy-does-not-work/55939>\
**Category:** Elements\
**Created:** [April 30, 2026, 2:04pm UTC](https://forums.realmacsoftware.com/t/conditional-hyphenation-with-shy-does-not-work/55939 "2026-04-30T14:04:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Berthold](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@Berthold](https://forums.realmacsoftware.com/u/Berthold)\
**Post date:** [April 30, 2026, 2:04pm UTC](https://forums.realmacsoftware.com/t/conditional-hyphenation-with-shy-does-not-work/55939/1 "2026-04-30T14:04:21Z")

</div>

Longer words such as Donau­dampf­schiff­fahrts­kapitäns­mütze can be hyphenated using ­­. This does not work with the Text and Typography components.  
See here: [Zeilenumbruch erlauben](https://wiki.selfhtml.org/extensions/Selfhtml/example.php/Beispiel:Zeilenumbruch3.html)

---

<div class="post-metadata">

**Author:** ![Berthold](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@Berthold](https://forums.realmacsoftware.com/u/Berthold)\
**Post date:** [April 30, 2026, 2:08pm UTC](https://forums.realmacsoftware.com/t/conditional-hyphenation-with-shy-does-not-work/55939/2 "2026-04-30T14:08:00Z")

</div>

Unfortunately, the command in my first post has disappeared. The separators are &_s\_h\_y_; the underscores need to be removed.

---

<div class="post-metadata">

**Author:** ![Pegasus](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/pegasus/32/25035_2.png) [@Pegasus](https://forums.realmacsoftware.com/u/Pegasus)\
**Post date:** [April 30, 2026, 2:17pm UTC](https://forums.realmacsoftware.com/t/conditional-hyphenation-with-shy-does-not-work/55939/3 "2026-04-30T14:17:15Z")

</div>

use either `hyphens-auto` or `text-balance` for this

> **[hyphens - Typography](https://tailwindcss.com/docs/hyphens)**
>
> Utilities for controlling how words should be hyphenated.

---

<div class="post-metadata">

**Author:** ![Berthold](https://avatars.discourse-cdn.com/v4/letter/b/b2d939/32.png) [@Berthold](https://forums.realmacsoftware.com/u/Berthold)\
**Post date:** [April 30, 2026, 2:39pm UTC](https://forums.realmacsoftware.com/t/conditional-hyphenation-with-shy-does-not-work/55939/4 "2026-04-30T14:39:26Z")

</div>

Pegasus, thanks for the tip. It works.
