Movable Type Plugin: Hyphenation

| | Comments (0) | TrackBacks (0)
Categories:
Hyphenation for Movable Type is a plug-in for Movable Type 4 that provides automatic hyphenation of your text based on OpenOffice hyphenation dictionaries.

Automatic hyphenation is very useful if you often use left-aligned or right-aligned images with text flowing along the side of the image in a narrow column. With Firefox 3, hyphenation is now displayed on all major browsers.

The screenshot below is an actual example of Hyphenation for Movable Type in action:


hyphenate-screensnhot-small.pngOnce installed and properly configured, the plug-in provides automatic hyphenation of your entry text.

Requirements

  • Movable Type 4
  • Downloaded OpenOffice hyphenation dictionary files.
Installation

  1. Download Hyphenation for Movable Type, and extract the archive file.
  2. Upload the contents of the archive to the "plugins" folder in your Movable Type installation. (There should now be a directory called "Hyphenation" in the plugins directory.)
  3. Download your preferred OpenOffice hyphenation dictionary from the OpenOffice localization web site.
  4. Go to the system administration and select the plug-ins settings. Use the Hyphenation's "Install New Dictionary" button to install the downloaded hyphenation dictionaries (you don't need to unzip them).
  5. Go to Preferences -> Plugins for each of the blogs where you want to enable Hyphenation for Movable Type.
  6. Check the "Enable" box.
  7. Select your preferred default hyphenation dictionary from the drop-down box. The list should contain the dictionaries that you installed earlier.
  8. Save your changes.
  9. Edit the templates that display entries (in the MT4 default templates, these would be the "Entry Detail" and the "Entry Summary" template modules), adding the tag modifier (i.e., global filter) hyphenate="1" to the <$MTEntryBody$>, <$MTEntryMore$>, and <$MTEntryExcerpt$> tags; for example:

<$MTEntryBody hyphenate="1"$>

As of version 1.0 (out soon!) you should also add the tag modifier hyphenate="0" in your feed templates (the RSS and the Atom feeds) to explicitly disable hyphenation in your feeds.

Usage

Hyphenation for Movable Type has two modes of operation: it either hyphenates all text in your entries, or only the text you've marked for hyphenation. Since automatic hyphenation of all text will significantly increase the size of your HTML pages, you should consider manual selection of the text that should be automatically hyphenated.

To indicate that a text section should be automatically hyphenated, enclose the text between the tags [hyphenate] and [/hyphenate] in your entry.

You may specify an alternative dictionary for a particular text section by adding the attribute dict="xx_YY" in the [hyphenate] tag, where xx_YY is the name of the alternative directory. For example, if your default hyphenation dictionary is en_US, you might specify a German dictonary by enclosing the German text within the tags [hyphenate dict="de_DE"] and [/hyphenate].

The tags will be stripped from your entries if Hyphenation for Movable Type is disabled, or if hyphenation for your template has been explicitly turned off with the tag modifier hyphenate="0".

(Please note that if you installed version 0.1 of Hyphenation for Movable Type, you'll have to install your dictionaries and select your default dictionary.)

To report bugs or request features, please use the comments.

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

If you liked this post, share it with others:
  • Digg it!
  • Add to Del.Icio.Us
  • Add to Technorati
  • Stumble It!
  • NewsVine
  • Slashdot
  • Google Bookmarks
  • YahooMyWeb
  • Live
  • Facebook
  • Facebook
  • Add this post to Ma.gnolia
  • Add this post to Reddit
  • Thoof it

Categories

0 TrackBacks

Listed below are links to blogs that reference this entry: Movable Type Plugin: Hyphenation.

TrackBack URL for this entry: http://blog.blazingangles.net/MT/mt-tb.cgi/1379

Leave a comment

Sign In

About This Entry

This page contains a single entry by Ole Wolf published on June 12, 2008 6:50 PM.

Previous entry: Movable Type Plugin Curvaceous 1.0 Released.

Next entry: Hyphenation for MT4 Updated.

Find recent content on the main index or look in the archives to find all content.

Subscribe to Comments

Recent Comments

Creative Commons License
This weblog is licensed under a Creative Commons License.