Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 924269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:19:33+00:00 2026-05-15T19:19:33+00:00

I migrated from Dotclear (2.2) to WordPress (3.0) a few days ago and I

  • 0

I migrated from Dotclear (2.2) to WordPress (3.0) a few days ago and I have solved all my problems except one. I have not found a pluging to handle “french spacing”.

WordPress is better than Dotclear, but since Dotclear is a French project, it manages this correctly.

By “french spacing”, I mean replacing the space by an insecable space ( ) before the double punctuation (: ; ! and ?).

I tried “WP-typography” but it doesn’t handle this specificity of French language.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:19:34+00:00Added an answer on May 15, 2026 at 7:19 pm
    function my_super_awesome_french_spacer($content){
      $content = preg_replace( '/\s([:;!?])\s/', ' $1 ', $content );
      return $content;
    }
    
    foreach(array('the_content','the_title','comment_text') as $filter)
      add_filter($filter, 'my_super_awesome_french_spacer',9);
    

    Drop that into your theme’s functions.php file and it will enforce the French spacing for the double punctuation (as long as you formatted it that way in the visual editor) in post content, titles, and comments. If you want it to do it even if there’s no space before or after, replace the RegEx with this:

    '/\s?([:;!?])\s?/'
    

    Basically, adding the question marks after the ‘s’ tells it to replace a space w/ a non-breaking space if it’s there, and to insert one if there’s no space there to begin with.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a solution containing several projects that have migrated from VS 2003, 2005,
We have just 'migrated' an SQL Server 2005 database from DEVEL into TEST. Somehow
We have recently migrated a large, high demand web application to Tomcat 5.5 from
Is it really advantageous to move to Rake from ant? Anyone migrated from ant
I've got a fairly large MFC application that has just been migrated from VS6.0
I have written a very simple bash script to help me migrate from dev
I have a library, and I want to migrate it from an old system
We want migrate from Delphi 7.0 to Delphi 2009, to stay up with a
I'm on the lookout for tools to migrate from ClearCase to SVN. Ideally would
I am writing code to migrate data from our live Access database to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.