Giter Club home page Giter Club logo

automatic-nbsp's Introduction

=== Automatic NBSP ===
Contributors: damian-gora
Tags: typography, nbsp, non-breaking space, line-break, polish, czech, french, punctuation marks
Requires at least: 3.0
Tested up to: 4.2.2
Stable tag: 1.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html


Automatically adds a non-breaking space (&nbsp) in the content.

== 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 `&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 


If you have any ideas for how Automatic NBSP could be improved, you write to us.

== Installation ==

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


== Changelog ==

= 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.


== Upgrade Notice ==

= 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 `!` `?` `;` `%` `«` `»`

automatic-nbsp's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.