Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Soft hyphen

Security covered Under active development 65 sites

This module allows you to add soft hyphens to plain text fields in Drupal. Soft hyphens tell browsers where a word can be broken to improve the display of long words, especially on smaller screens. It can be enabled in field display settings or used in Twig templates.

Use soft hyphen (­) HTML tag in Text (plain) and Text (plain, long) fields (eg. title).

Usage on UI

  1. Create your field (in type of Text (plain) or Text (plain, long) )
  2. Check Enable soft hyphen checkbox on Manage display tab on given field Plain text field formatter setting.
  3. Fill your field data like this: Lorem­Ipsumissimply dummy­textoftheprinting and typesetting industry.

Usage on twig file

You can use shy twig filter in twig file {{ field_name|shy }}

Similar module

CKEditor Soft hyphen Plugin

Background

There is a nice article from Tamás Hajas about this topic, https://integralvision.eu/en/blog/long-words-case-browser

Drupal 9–11

Ask your assistant about Soft hyphen

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Apr 2023
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.1 Stable 9–11 Jul 7, 2026
1.0.0 Stable 9–10 Apr 3, 2023
1.0.x-dev Dev 9–11 Apr 3, 2023