WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Post Typographer

Adds non-breaking spaces, tags, common spaces, tags and dashes where needed. Works with English texts only.

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

  1. Double and more spaces are replaced with the single ones.

  2. All misplaced spaces near dots, colons, semicolons, exclamation marks and question marks are fixed, where possible.

  3. Composed words with hyphens in them (e.g. "easy-to-use") will be wrapped in

<nobr></nobr>

tags.

  1. <pre></pre> tag and its contents are preserved.

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.

Requires: 2.5 or higher
Compatible up to: 3.0.5
Last Updated: 2010-9-11
Downloads: 1,955

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
100,1,1