Post Typographer

Post Typographer Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 3,755 downloads
Post Typographer Icon

Try plugin: Post Typographer

We'll create fresh WordPress site with Post Typographer installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Post Typographer

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

0


0


0


0


0

updated: 6 years ago
since: 14 years ago
author: Andriy Moraru

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:

    • 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, colons, semicolons, 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 <nobr></nobr> tags.

  7. <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:

        [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.

Thanks to

Typograf by Artemy Lebedev