
FYI
- Plugin Name: JSM's Non-Breaking Space for French Content
- Stable Version: 1.9.0
- Author: JS Morisset
- Description: Adds a non-breaking space between words and punctuation marks to avoid inappropriate line-breaks in French.
- License: GPLv3
- Requires PHP: 5.6 or newer
- Requires WordPress: 3.9 or newer
- Tested Up To WordPress: 5.3
- Last Updated: 2 days ago
- Plugin Homepage »
This plugin adds non-breaking spaces required by the French language in the content, excerpt, comments, text widget, and WooCommerce short description — skipping over pre-formatted code blocks, styles and scripts.
If the <!--:fr-->
HTML tag is found (used by some multilingual plugins), non-breaking spaces are added only between the <!--:fr-->
and <!--:-->
HTML tags.
There are no plugin settings — simply install and activate the plugin.
Filters for Developers
'nbsp_french_add_filters' ( array $filter_names )
An associative array of filter names (and priority) for the plugin to hook.
1 2 3 4 5 6 7 8 9 10 11 |
array( 'the_title' => 10, 'the_content' => 10, 'the_excerpt' => 10, 'comment_text' => 10, 'widget_title' => 10, 'widget_text' => 10, 'woocommerce_short_description' => 10, ) |
To hook additional filters, include their names (and priority) in the 'nbsp_french_add_filters' array, or hook them individually in your functions.php:
1 2 3 4 |
add_filter( 'another_text_filter_name', array( 'NbspFrench', 'filter' ), 10, 1 ); |
'nbsp_french_currencies' ( $regex )
A regular expression of recognized currency symbols.
Automated Install
- Go to the wp-admin/ section of your website.
- Select the Plugins menu item.
- Select the Add New sub-menu item.
- In the Search box, enter the plugin name.
- Click the Search Plugins button.
- Click the Install Now link for the plugin.
- Click the Activate Plugin link.
Semi-Automated Install
- Download the plugin ZIP file.
- Go to the wp-admin/ section of your website.
- Select the Plugins menu item.
- Select the Add New sub-menu item.
- Click on Upload link (just under the Install Plugins page title).
- Click the Browse... button.
- Navigate your local folders / directories and choose the ZIP file you downloaded previously.
- Click on the Install Now button.
- Click the Activate Plugin link.
Version Numbering
Version components: {major}.{minor}.{bugfix}[-{stage}.{level}]
- {major} = Major structural code changes / re-writes or incompatible API changes.
- {minor} = New functionality was added or improved in a backwards-compatible manner.
- {bugfix} = Backwards-compatible bug fixes or small improvements.
- {stage}.{level} = Pre-production release: dev < a (alpha) < b (beta) < rc (release candidate).
Repositories
Changelog / Release Notes
Version 1.9.0 (2018/09/26)
- New Features
- None.
- Improvements
- Added a hook for the 'woocommerce_short_description' filter.
- Bugfixes
- None.
- Developer Notes
- Maintenance release.