Joomla! Plugin for insecable spaces in content

Here is a little plugin for Jooma 1.5.x which allows to replace automatically secable spaces by insecable spaces in an article.

This plugin is especially for those that are obsessed by typography rules. According to these rules, many characters must not be broke by a line.

Here are the replaces characters :

  1. word :
  2. « word »
  3. word ?
  4. word !
  5. cash $
  6. pourcentage %
  7. slash / word

The plugin inserts the HTML entity   instead of secable spaces, for all characters above. When you write your article, you must write a normal space, else the plugin wouldn't recognize that you wish to insert insecable spaces.

This plugin was wrote for french rules; I have no idea for english ones... Note that in Quebec, you must not insert any space before question and exclamation marks; I included them because because people from France would need it.

You may see this plugin in action in this blog. It's not a big thing, but it's quite useful to me.

AttachmentDateSize
[file] plg_Insecable_fr_ca_1.0_beta.zip05/05/09 7:51 am2.68 KB

Comments

I love joomla on the world

I love joomla on the world wide web. They are the main stream production people!
Causes Of Divorce

The plugin is working

The plugin is working perfectly and am happy and thanks for sharing this

This plugin will be perfect

This plugin will be perfect if it was running also when an artcile is just displayed with the "Read More" link.. any update schedule ? (and handling of " ;" BTW)
Thank you very much to make Joomla! really internationalized. ;)

Hi Eric, thanks for your

Hi Eric, thanks for your comment. Yes, updates are planned, I wish to include more rules and extend it to specific french, french-canadian, english-canadian and US English rules. If you wish to suggest things and help me out with this (rules, etc.) don't hesitate to contact me.

I just got the plugin and am

I just got the plugin and am getting some good use out of it. Any chance for updates?

ha, I'm totally obsessed with

ha, I'm totally obsessed with these rules. In English, they aren't that different.

awsome plugin, thanks for

awsome plugin, thanks for sharing

GOOD!

GOOD!

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <actionscript>, <apache>, <bash>, <dos>, <html>, <javascript>, <mysql>, <php>, <xml>.
  • Every instance heading tags will be modified to include an id attribute for anchor linking.
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
  • Image links with 'rel="lightshow"' in the <a> tag will appear in a Lightbox slideshow when clicked on.
  • Links to HTML content with 'rel="lightframe"' in the <a> tag will appear in a Lightbox when clicked on.
  • Links to video content with 'rel="lightvideo"' in the <a> tag will appear in a Lightbox when clicked on.
  • Links to inline or modal content with 'rel="lightmodal"' in the <a> tag will appear in a Lightbox when clicked on.
  • Links to specified hosts will have a rel="nofollow" added to them.

  • Insert <!--tableofcontents [list: ol; title: Table of Contents; minlevel: 2; maxlevel: 3; attachments: yes;]--> to insert a mediawiki style collapsible table of contents. Arguments within [] are optional.

More information about formatting options