Automatic NBSP
Automatic NBSP
Description
Support typographic rules in Polish and Czech
Moves conjunctions, prepositions, etc. to the new line. ( sierotki )
Support punctuation marks in French
Adds a non-breaking space before punctuation marks as ! ? ; % « »
How it works?
The plugin automatically adds HTML entity ( non-breaking space ) after selected words or phrases. E.g. ‘Mr. Someone’ should be ‘Mr. Someone’. Works with:
- posts
- titles
- pages
- custom post types
- comments
- widgets
- custom contents
You can create your own list of words/phrases or import our proposals.
Custom contents
You can use the function <?php auto_nbsp($content, $echo); ?> to add to the custom content. Use this in your code.
1. Param $content – (string) (required) Free text
2. Param $echo – (bool) (optional) true (echo), false (return), Default: true
Other features:
* Advanced Custom Fields compatibility
If you have any ideas for how Automatic NBSP could be improved, you write to us.
Installation
- Install the plugin from within the Dashboard or upload the directory
automatic-nbspand all its contents to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Go to Settings -> Automatic NBSP and set your preferences.
- Enjoy automatically added non-breaking spaces
Reviews
Breaks code blocks
By Radek Lat (rala) on July 10, 2021
Good but could be better
By melebius on March 12, 2021
- The plugin page claims to cover Czech but I can only choose between Polish and English vocabulary in the settings.
- There is no information on whether the plugin kicks in when saving a post or rendering it. I discovered it’s while rendering. This is good to fix older posts as well but it might make each rendering a bit slower.
- A link to the plugin settings could be shown on the Plugins page.
- The plugin only offers adding
after the customizable vocabulary words and before preset punctuation marks. I’d be glad if both lists were customizable. - The plugin offers no way to automatically add
in more complicated situations, e.g. after numbers, especially ordinal ones (the German or Czech way). - And last but not least, the plugin should be tested with the latest WordPress releases, although it’s doing well for me with WordPress 5.6.
Must have
By Cyrille Sanson (css31) on August 2, 2020
Easy and perfect
By kuldaoo on March 13, 2020
Doesn't work. Fix it or remove it.
By jasonbear on August 18, 2018
Great plugin
By Marek (muti-wp) on September 8, 2017
So glad Damian made this plugin
By francois.massart on March 23, 2017
Easy and works great!
By gruntek on December 14, 2016
Super easy
By gordonlangley on December 6, 2016
Działa jak należy
By Anonymous User 14345574 (anonymized_14345574) on September 3, 2016
Wszystko w porządku. Po włączeniu wtyczki 'sierotki' przenoszą się automatycznie do nowego wiersza.
Changelog
1.5.4, April 11, 2019
- CHANGE: Nothing changed. Only version.
1.5.3, November 25, 2016
- FIX: special case for a mark
«(by francois.massart)
1.5.2, April 24, 2016
- FIX: Escaping another special characters from phrases
1.5.1, January 28, 2016
- ADD Integration with the Advanced Custom Fields plugin.
- DEL Problematic feature (keep numbers together).
1.5
- ADD Keep numbers together as option
- FIX Bug with words ending with a dot
.
1.4
- FIX Bug with disappearing titles.
1.3
- ADD New function
auto_nbsp($content, $echo)allows to add nbsp to the custom content. Use this in your code. - ADD
before punctuation marks as!?;%«»
1.2
- Title is now supported.
- Excerpt is now supported.
- Comment text is now supported.
- Widget text is now supported.
- Phrases is now allowed.
- Add case sensitive for words or phrases.
- Add list of conjunctions and other phrases for the Polish and English language.
- Fix mechanism for adding a   entitie.
- Polish translation
1.1
- Fix bug compatibility wordpress 3.6.
1.0
- First version.