Posted by mikl on
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 announcement
- Original Typogrify example page
- Original Typogrify project page
- Typogrify.module uses PHP Typogrify
- 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.
Project Information
- Maintenance status: Seeking co-maintainer(s)
- Development status: Under active development
- Reported installs: 3,677 sites currently report using this module. View usage statistics.
- Downloads: 91,589
- Last modified: December 2, 2014
Downloads
Recommended releases
| Version | Download | Date |
|---|---|---|
| 7.x-1.0-rc10 | tar.gz (24.01 KB) | zip (28.12 KB) | 2015-Apr-14 |
| 6.x-1.0 | tar.gz (19.3 KB) | zip (23.58 KB) | 2009-May-29 |