Title: Post Typographer
Author: enivid
Published: <strong>July 29, 2009</strong>
Last modified: December 5, 2017

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/post-typographer.svg)

# Post Typographer

 By [enivid](https://profiles.wordpress.org/enivid/)

[Download](https://downloads.wordpress.org/plugin/post-typographer.zip)

 * [Details](https://wordpress.org/plugins/post-typographer/#description)
 * [Reviews](https://wordpress.org/plugins/post-typographer/#reviews)
 *  [Installation](https://wordpress.org/plugins/post-typographer/#installation)
 * [Development](https://wordpress.org/plugins/post-typographer/#developers)

 [Support](https://wordpress.org/support/plugin/post-typographer/)

## Description

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:
 4.  * at
     * or
     * and
     * the
     * a
     * an
     * in
     * on
     * of
     * for
     * to
     * as
     * i
     * or
     * my
 5. Double and more spaces are replaced with the single ones.
 6. All misplaced spaces near dots, colons, semicolons, exclamation marks and question
    marks are fixed, where possible.
 7. Composed words with hyphens in them (e.g. _easy-to-use_) will be wrapped in `<nobr
    ></nobr>` tags.
 8. `<pre></pre>` tag and its contents are preserved.

#### Problems:

 1. The plugin **will not** mess with the HTML tags or other mark-up tags delimited
    with < and >. It **will** mess with the Javascript code and such constructions 
    as:
 2.     ```
            [code]
            bla bla bla
            [/code]
        ```
    
 3. Though, since version 6, the mess is minimized for [code] and [video] tags.
 4. 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.

### Thanks to

[Typograf by Artemy Lebedev](https://www.artlebedev.ru/typograf/)

## Installation

#### From your WordPress dashboard

 1. Visit ‘Plugins > Add New’
 2. Search for ‘Post Typographer’
 3. Activate Post Typographer from your Plugins page.

#### From WordPress.org

 1. Download Post Typographer.
 2. Upload the ‘post-typographer’ directory to your ‘/wp-content/plugins/’ directory.
 3. Activate Post Typographer from your Plugins page.

## FAQ

  Installation Instructions

#### From your WordPress dashboard

 1. Visit ‘Plugins > Add New’
 2. Search for ‘Post Typographer’
 3. Activate Post Typographer from your Plugins page.

#### From WordPress.org

 1. Download Post Typographer.
 2. Upload the ‘post-typographer’ directory to your ‘/wp-content/plugins/’ directory.
 3. Activate Post Typographer from your Plugins page.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Post Typographer” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ enivid ](https://profiles.wordpress.org/enivid/)

[Translate “Post Typographer” into your language.](https://translate.wordpress.org/projects/wp-plugins/post-typographer)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/post-typographer/),
check out the [SVN repository](https://plugins.svn.wordpress.org/post-typographer/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/post-typographer/)
by [RSS](https://plugins.trac.wordpress.org/log/post-typographer/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 12

 * Fixed: Will no longer mess with the contents of the [pmath] shortcodes.

#### 11

 * Fixed: Replaced numeric HTML entities with literal ones.
 * Fixed: Minor formatting and grammar error issues.

#### 10

 * Fixed: Contents of `<pre></pre>` tag aren’t messed up with typographing.

#### 9

 * Fixed: No longer removes backslashes from posts.
 * Fixed: Tries not to mess with the files’ extensions (like .txt).

#### 8

 * Added: Tries to remove unneeded spaces before colons and semicolons without messing
   with the smiles.
 * Added: Word ‘by’ included to the list of words for `&nbsp;` after them.

#### 7

 * Fixed: No longer removes spaces before colons and semicolons – not to mess with
   the smiles.

#### 6

 * Fixed: Double (and more) wrapping with the `<nobr>` tags.
 * Fixed: `<nobr>` wrapping and some other formatting in the [code] and [video] 
   embedded text.

#### 5

 * Added: Wrapping the composed words with hyphens with `<nobr>` tags.

#### 4

 * Fixed: Nasty double-space bug on post-updating.
 * Fixed: M-dash placement didn’t work in version 3.
 * Fixed: N-dashes are now placed correctly even if the value ranges are near the
   beginning or the end of the text.

#### 3

 * Added: Replaces misplaced spaces near punctuation marks.
 * Fixed: Phone numbers and dates are now avoided (except single-hyphen phone numbers)
   when the hyphens in the value ranges are transformed into n-dashes.

#### 2

 * Added: Replaces 2 or more spaces with a single space in the text.
 * Added: Word ‘my’ included to the list of words for `&nbsp;` after them.

#### 1

 * The first working version.

## Meta

 *  Version **12**
 *  Last updated **9 years ago**
 *  Active installations **10+**
 *  WordPress version ** 2.5 or higher **
 *  Tested up to **4.9.29**
 * Tags
 * [formatting](https://wordpress.org/plugins/tags/formatting/)[post](https://wordpress.org/plugins/tags/post/)
   [posts](https://wordpress.org/plugins/tags/posts/)[typography](https://wordpress.org/plugins/tags/typography/)
 *  [Advanced View](https://wordpress.org/plugins/post-typographer/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/post-typographer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/post-typographer/reviews/)

## Contributors

 *   [ enivid ](https://profiles.wordpress.org/enivid/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/post-typographer/)