Post Typographer

0

When you publish a post or update an already published post, this plugin will format the post’s content to certain typographic rules: All hyphens between two words (surrounded by sp

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

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