Typogrify Sample

Printer-friendly versionPrinter-friendly versionE-mail page to friendE-mail page to friendPDF versionPDF version

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.
Here’s the quick list of the included filters:

  • Widon’t — as coined by Shaun Inman
  • SmartyPants – originally created by John Gruber. Requires smartypants.py.
  • Initial quotes wrapped in class=”dquo” or class=”quo” depending on if they are single or double
  • Ampersands wrapped in class=”amp”. Requires smartypants.py.
  • Multiple adjacent capital letters wrapped in class=”caps” (also caps separated by .s, and caps mixed with digits)

also includes SmartyPants, which translates plain ASCII punctuation characters into “smart” typographic punctuation HTML entities including Straight quotes, Backticks-style quotes, dashes and three consecutive dots..

Straight quotes ( ” and ’ ) into “curly” quote HTML entities
Backticks-style quotes (“like this”) into “curly” quote HTML entities
Dashes (“—” and “—-”) into en- and em-dash entities
Three consecutive dots (“…”) into an ellipsis entity

sample:

Jayhawks” & KU fans act extremely obnoxiously

By J.D. Salinger, Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. “Excepteur sint occaecat ‘cupidatat’ non proident” sunt RFID22 in….

User Login

Free Giveaway Mailing

TV, DVD, BLU-RAY & THEATER REVIEWS

  • Manhunt

    CHICAGO – Patrick McDonald of HollywoodChicago.com appears on “The Morning Mess” with Dan Baker on WBGR-FM (Monroe, Wisconsin) on March 21st, 2024, reviewing the new streaming series “Manhunt” – based on the bestseller by James L. Swanson – currently streaming on Apple TV+.

  • Topdog/Underdog, Invictus Theatre

    CHICAGO – When two brothers confront the sins of each other and it expands into a psychology of an entire race, it’s at a stage play found in Chicago’s Invictus Theatre Company production of “Topdog/Underdog,” now at their new home at the Windy City Playhouse through March 31st, 2024. Click TD/UD for tickets/info.

Advertisement



HollywoodChicago.com on Twitter

archive

HollywoodChicago.com Top Ten Discussions
referendum
tracker