Plugin Directory

Post Typographer

Author: Andriy Moraru

When you publish a post or update an already published post, this plugin will format the post's content to certain typographic rules:

  1. All hyphens between two words (surrounded by spaces) will be transformed to m-dashes with the non-breaking spaces ahead of them.
  2. All hyphens between digits (without spaces) will be transformed to n-dashes. But it tries to preserve phone numbers.
  3. All spaces following these words will be replaced with the non-breaking spaces:
    • at
    • or
    • and
    • the
    • a
    • an
    • in
    • on
    • of
    • for
    • to
    • as
    • i
    • or
    • my
  4. Double and more spaces are replaced with the single ones.
  5. All misplaced spaces near dots, commas, semicolons, colons, exclamation marks and question marks are fixed, where possible.
  6. Composed words with hyphens in them (e.g. "easy-to-use") will be wrapped in tags.

Porblems:

  1. The plugin won't mess with the HTML tags or other mark-up tags delimited with < and >. It will mess with the Javascript code and such constructions as: [code] bla bla bla [/code] Though, since version 6 the mess is minimized for [code] and [video] tags.

  2. The n-dash thing will mess up with the phone numbers that have only one hyphen in them. They will be confused with the value ranges.

Download

FYI

Compatibility beta

Your Setup

Log in to vote.

The Consensus

No data
100,1,1
100,1,1

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(0 ratings)