Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.Typogrify.module brings the typographic refinements of Typogrify to Drupal.
- Wraps ampersands (the “&” character) with
<span class="amp"></span>. - Prevents single words from wrapping onto their own line using Shaun Inman's Widont technique.
- Converts straight quotation marks "" to typographer's quotation marks “”, „“ or «» using SmartyPants language dependent.
- Converts multiple hyphens to en dashes and em dashes (according to your preferences), using SmartyPants.
- Wraps multiple capital letters with
<span class="caps"></span>. - Wraps initial quotation marks with
<span class="quo"></span>or<span class="dquo"></span>. - Adds a css style sheet that uses the
<span>tags to substitute a showy ampersand in headlines, switch caps to small caps, and hang initial quotation marks. - Inserts ligatures (if supported by platform and browser).
- Replaces ascii arrows with unicode arrows (if supported by platform and browser).
- Inserts thin-space in abbreviations.
- Groups digits in large numbers.
- Replaces
=in words with a soft hyphen (­), to allow hyphenated line-breaks.
Learn more about Typogrify
The original Typogrify is Python code by Christian Metts. Typogrify.module uses Hamish Macpherson's PHP port of that code, php-typogrify.
- Original Typogrify project page
- Typogrify.module uses PHP SmartyPants
- Typogrify.module implements Widont
Learn more about setting type for the web
- The Elements of Typographic Style Applied to the Web
- Five simple steps to better typography
- Thinking With Type
- And if you're going to buy one book, make it Robert Bringhurst's The Elements of Typographic Style.
Hints
- After updates: open all filter using typogrify, check the new features and save.
- To avoid conflicts with other filter, typogrify should be the last in the filter-queue.
Drupal 8
The 8.x-1.0 release is compatible with Drupal 8 and Drupal 9.
Supporting organizations:
Supporting contrib time for @jpamental and @benjifisher
Project information
Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues.- Module categories: Content Display, Filters/Editors
2,161 sites report using this module
- Created by Tim Gambell on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.1
released 12 July 2020
Works with Drupal: ^8 || ^9
✓ Recommended by the project’s maintainer.
Bug fix and expanded tests
Install:
Development version: 8.x-1.x-dev updated 12 Jul 2020 at 15:11 UTC
- Testing result: PHP 7.4 & MySQL 5.7, D9.0.0-rc1 Build Successful all results
7.x-1.0-rc10
released 14 April 2015
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 18 Dec 2015 at 21:18 UTC












