Typogrify

3rd Party (Free)

340 downloads (last 90 days)

MIT License Download v1.0

EE Version Support

  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

The Typogrify plugin for Expression Engine is a reinterpretation of the Django templates of the same name.

The plugin includes the following functions:

{exp:typogrify:amp} - Wrap ampersands in a span with class=“amp”.  This enables you to follow Bringhursts recommendation to “In heads and titles, use the best available ampersand”.

{exp:typogrify:caps} - Wrap sequences of capital letters in a span with class=“caps”.  This is useful if you want to set sequences of capitals as small capitals.  There must be at least two capital letters in the sequence, the letters may be separated by periods, and the sequence must be surrounded by characters other than letters.  This will not wrap the initials in a name like W. B. Yeats, because it is not usually considered good practice in typography to set those capitals as small capitals.

{exp:typogrify:initial_quote} - Wrap a quote character that is the first character in a paragraph in the two classes “initial” and “quote”.  A paragraph in this context means either an actual paragraph element, a heading element or a list element.  The quote characters that we recognize here are the left double angle, the left angle, the left double and the left single entities—the characters classified in Unicode as initial quote characters.

{exp:typogrify:final_quote} - Wrap a quote character that is the last character in a paragraph in the two classes “final” and “quote”.  A paragraph in this context means either an actual paragraph element, a heading element or a list element.  The quote characters that we recognize here are the right double angle, the right angle, the right double and the right single entities—the characters classified in Unicode as final quote characters.

{exp:typogrify:smartypants attr=“2”} - This is just a wrapping of the PHP port by Michel Fortin of John Grubers SmartyPants perl script.  I have made one change from the original script; the default attribute is set to 2, which means that   “—-” is used for em-dashes and “—” for en-dashes; this default can be overridden with the attr parameter.

{exp:typogrify:widont} - Insert a non-breaking space entity between the two last words in every paragraph.  A paragraph in this context means either an actual paragraph element, a heading element or a list element.  This will avoid what typographers refer to as “widows”—a single word on its own line at the end of a paragraph.

{exp:typogrify} - A shortcut to apply all the functions in the plugin.

Download Typogrify

EE Support Downloads Add-On Version Release Date
Not Specified Download 1.0 Sep 17, 2012

This entry was created June 5, 2013, 11:57 am.
This entry was last updated June 5, 2013, 11:57 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!