该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Automatic NBSP

描述

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:

  • 文章
  • titles
  • 页面
  • custom post types
  • 评论
  • 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 &nbsp; 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.

安装

  1. Install the plugin from within the Dashboard or upload the directory automatic-nbsp and all its contents to the /wp-content/plugins/ directory.
  2. 通过WordPress的“插件”菜单激活插件。
  3. Go to Settings -> Automatic NBSP and set your preferences.
  4. Enjoy automatically added non-breaking spaces

评价

2021年7月10日
I was hunting for a mysteriously broken code block formatting, where some line breaks were stripped away. It turned out this plug-in was the cause. Share it seems not longer maintained. I would love to continue to use it.
2020年8月2日
Hello, While WordPress is at version 5, I don't understand why it is still necessary to use a plugin to fix the problem of no break spaces before double height signs. Fortunately Damian Gora developed Automatic NBSP and solved the problem. Many thanks Damian for this great plugin, simple and efficient.
2020年3月13日
No bloatware, ads, no useless fields. Simple a usefull. GREAT. thank you
2017年9月8日
I love to have good formated text! With this plugin it is possible 🙂 Thank you!
2017年3月23日
This plugin is awesome, I hate seeing some punctuation on a newline because people don't use unbreakable spaces, this beauty makes it automatic and only if a space has been typed, so it does not force the usage of spaces but makes it simple and clever.
阅读所有12条评价

贡献者及开发者

“Automatic NBSP” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Automatic NBSP”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

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 &nbsp; 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 &nbsp entitie.
  • Polish translation

1.1

  • Fix bug compatibility wordpress 3.6.

1.0

  • First version.