Sidebar Network

typogrify A set of Django template filters to make caring about typography on the web a bit easier.

The Basics

Typogrify is a collection of Django template filters that help prettify your web typography by preventing ugly quotes and widows and providing CSS hooks to style some special cases.

Project Homehttp://code.google.com/p/typogrify/
Grab the Repository – svn checkout http://typogrify.googlecode.com/svn/trunk/
 

Recent Commits

  • 16 was committed 4 months, 1 week ago.
    Updated the info in setup.py to reflect the new version
  • 15 was committed 4 months, 1 week ago.
    Added a titlecase filter Requires Stuart Colville’s titlecase.py to be installed http://muffinresearch.co.uk/archives/2008/05/27/titlecasepy-titlecase-in-python/ Thanks to Myles.Braithwaite for the patch
  • 14 was committed 4 months, 1 week ago.
    Added support for apostrophes to the caps filter It should be noted that this only supports “dumb” single prime apostrophes. Be sure to call smartypants after the caps filter.
  • 13 was committed 4 months, 1 week ago.
    Made typogrify force unicoding. This provides the same effect as marking each as a stringfilter while getting around the fact that stringfilter breaks doctests. Fixes #4
  • 12 was committed 4 months, 1 week ago.
    Added support for django’s autoescaping. All filters in typogrify now output “safe” strings. What this means is that any truly unsafe date should be run through |force_escape before it’s sent into typogrify. The fix is kind of heavy-handed, but typogrify needs HTML input to do it’s job. Escaped HTML wouldn’t work well. If you want to use it on comments you could run them through |markdown:”safe” before typogrify.
  • 11 was committed 4 months, 1 week ago.
    A little bit of clean up
  • 10 was committed 1 year, 1 month ago.
    Getting some bits ready for release
  • 9 was committed 1 year, 1 month ago.
    Adding some real install documentation and fixes some typos. Fixes #1. Big thanks to ubernostrum!
  • 8 was committed 1 year, 1 month ago.
    Fixed standalone amps getting munged in attributes. Fixes #3 [thanks medhat.assaad]
  • 7 was committed 1 year, 1 month ago.
    Fixed issue where single word elements that had spaces in the markup before their word would get nbsp’d