« Universal To Offer Free Music To Script Kiddies | Main | Techmeme's new advertising model »

MT Plugin: NaughtyText 1.0

Naughty Text 1.0 is a port of Andy Yaco-Mink's NaughtyWordChars for Movable Type version 3.3 (and above). The plugin catches and cleans characters pasted in from Microsoft Word documents and other sources that contain "special" characters that tend to break site validation schemes - especially RSS. Using Naughty Text you can automatically clean smart double quotes, apostrophes, en dashes, em dashes, and ellipses from titles, entries, excerpts, and comments.


Requirements: Movable Type version 3.31 (or above), Movable Type Enterprise version 1.02 (or above). NaughtyText is only known to operate on UTF-8 encoded data (which is the default for Movable Type blogs), use on other data encoding schemes is not supported.


Download:

Naughty Text 1.0 [zip / gz].


Thanks:

Thanks to Andy for a great plugin and AOG for help in debugging this version.


Documentation:

Naughty Text has three cleaning modes - entry, comment, and title.

naughtytext.jpg


Naughty Entries

For entries you can select which fields Naughty Text will operate on. The choices include; Title, Entry Extended, Entry, Keywords, Excerpt. After you select which fields to clean you need to pick a replacement encoding scheme:

Character entities (”, “, etc.) [*Default*]
ASCII equivalents (", ', ..., -, --)

If readability in the editing process is of chief concern to you, select "ASCII equivalents." HTML Character replacement will preserve the "look" of the pasted data, while making it semantically valid, but the resulting text may confuse authors unfamiliar with the HTML character codes.

Naughty Text can make its replacements on item save or item load. For maximum protection select both.


Naughty Comments


Naughty Text offers the same protection for your comment section. The comment cleaning function uses the same settings as those specified for entries. This is especially useful if you publish RSS feeds that include comments, as stylized characters in your comment section will cause your RSS feed not to validate.


Naughty Titles

Naughty Text has two options for cleaning titles in the MT interface before the basename is constructed. The first option is to trim trailing and leading spaces and remove line-breaks from the title field. The second option is to clean title characters using ASCII equivalents. The use of both these options is recommended if you have authors pasting in entry titles and you find that yourself with RSS feeds that won't validate and/or strange entry basenames are being created. This is particularly an issue if you are not using MT 3.3x's built-in basename generation capabilities.


System vs. Blog Settings:

NaughtyText can be configured at the system level and at the blog level. For mutiblog sites NaughtyText can be configured at both the system and blog level, with the blog level settings taking precedence over the system settings. If NaughtyText is configured at the system level all of the blogs in the Movable Type installation (except those individually configured) will inherit the system level settings. To clear settings for an individual blog, chose the "Reset To Defaults" option.

  • Currently 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 0/5 (0 votes cast)


Close

Email this entry to:


Your email address:


Message (optional):


Comments (5)

Kevin -This looks ... (Below threshold)

Kevin -

This looks like a great plugin--only problem is, I get an error trying to unzip it: "The Compressed (zipped) Folder is invalid or corrupted."

I tried downloading with FireFox and IE, and tried using the built-in Windows unzipper and 7-zip to extract, but didn't have any luck. Any thoughts?

Thanks!

Thanks for keeping the drea... (Below threshold)

Thanks for keeping the dream alive Kevin! You've not only updated it for 3.3 but added some much needed documentation.

Definitely something a bit ... (Below threshold)
Su:

Definitely something a bit off. It "extracts" with IZArc, but only a 0-byte license file shows up in the directory. If I use the program to open/browse the archive, I can see the files that should be in there, but can't extract them manually.

Sorry, that's what happens ... (Below threshold)

Sorry, that's what happens when your FTP client is set to upload everything in ASCII :-). The zip file is fixed now...

OK, this looks like there's... (Below threshold)

OK, this looks like there's gonna be one LESS way I can screw up the page... dang, Kevin, you're gonna make me find NEW ways to break it.

J.




Advertisments







Archives

Categories