這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 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:

  • 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 &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. Activate the plugin through the ‘Plugins’ menu in 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.
2021 年 3 月 12 日
I installed this plugin mainly to auto-add non-breakable space after prepositions. This works well. I also appreciate the easy settings page of this plugin. However, there are many things which could be done better: 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 &nbsp; 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 &nbsp; 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.
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!
閱讀全部 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.