Title: Extra Sentence Space
Author: Scott Reilly
Published: <strong>2009年6月11日</strong>
Last modified: 2020年1月1日

---

プラグインを検索

![](https://ps.w.org/extra-sentence-space/assets/banner-772x250.png?rev=820860)

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/extra-sentence-space/assets/icon-128x128.png?rev=972882)

# Extra Sentence Space

 作者: [Scott Reilly](https://profiles.wordpress.org/coffee2code/)

[ダウンロード](https://downloads.wordpress.org/plugin/extra-sentence-space.1.3.9.zip)

 * [詳細](https://ja.wordpress.org/plugins/extra-sentence-space/#description)
 * [レビュー](https://ja.wordpress.org/plugins/extra-sentence-space/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/extra-sentence-space/#installation)
 * [開発](https://ja.wordpress.org/plugins/extra-sentence-space/#developers)

 [サポート](https://wordpress.org/support/plugin/extra-sentence-space/)

## 説明

Even though you may add two spaces after each sentence when writing a post (assuming
you subscribe to a writing style that suggests such spacing) web browsers will collapse
consecutive blank spaces into a single space when viewed. This plugin adds a `&nbsp;`(
non-breaking space) after sentence-ending punctuation to retain the appearance of
your two-space intent.

NOTE: The plugin will only enforce the two-space gap in places where two or more
spaces actually separate sentences in your posts. It will NOT insert a second space
if only one space is present.

Links: [Plugin Homepage](http://coffee2code.com/wp-plugins/extra-sentence-space/)
| [Plugin Directory Page](https://wordpress.org/plugins/extra-sentence-space/) |
[GitHub](https://github.com/coffee2code/extra-sentence-space/) | [Author Homepage](http://coffee2code.com)

### Hooks

The plugin is further customizable via two filters. Typically, these customizations
would be put into your active theme’s functions.php file, or used by another plugin.

**c2c_extra_sentence_space**

The ‘c2c_extra_sentence_space’ filter allows you to use an alternative approach 
to safely invoke `c2c_extra_sentence_space()` in such a way that if the plugin were
deactivated or deleted, then your calls to the function won’t cause errors in your
site. This only applies if you use the function directly, which is not typical usage
for most users.

例:

Instead of:

    ```
    <?php echo c2c_extra_sentence_space( $mytext ); ?>
    ```

Do:

    ```
    <?php echo apply_filters( 'c2c_extra_sentence_space', $mytext ); ?>
    ```

**c2c_extra_sentence_space_punctuation**

The ‘c2c_extra_sentence_space_punctuation’ filter allows you to customize the punctuation,
characters, and/or symbols after which double-spacing (when present) is preserved.
By default these are ‘.!?’.

引数:

 * $punctuation (string): The default characters after which double-spacing should
   be preserved. Default is ‘.!?’.

例:

    ```
    /**
     * Modifies the list of characters after which two spaces should be preserved
     * to include a forward slash.
     *
     * @param string $punctuation The punctuation.
     * @return string
     */
    function more_extra_space_punctuation( $punctuation ) {
        // Add the '/' and ')' characters to the list of characters
        return $punctuation . '/)';
    }
    add_filter( 'c2c_extra_sentence_space_punctuation', 'more_extra_space_punctuation' );
    ```

## インストール

 1. Install via the built-in WordPress plugin installer. Or download and unzip `extra-
    sentence-space.zip` inside the plugins directory for your site (typically `wp-content/
    plugins/`)
 2. Activate the plugin through the ‘Plugins’ admin menu in WordPress
 3. Begin (or continue) to use two spaces to separate your sentences when writing a
    post.

## FAQ

  What text does this plugin modify (aka filter)?

This plugin potentially modifies the post content, excerpt, title, comment text,
and widget text.

  Why do my sentences still appear to be separated by only one space despite the
plugin being active?

Did you use two spaces to separate the sentences when you wrote the post? This plugin
only retains the appearance of those two spaces when the post is viewed in a browser;
it does not insert a second space if there wasn’t one originally present.

  Can I enforce double-spacing after other types of punctuation?

Yes. See the Filters section for an example of the code you’ll need to use.

  Does this plugin include unit tests?

はい。

## 評価

![](https://secure.gravatar.com/avatar/3397165e70e93cf935eae7f8f3df8f071b98268c4033f45bf45f0047feb032c8?
s=60&d=retro&r=g)

### 󠀁[Does NOTHING](https://wordpress.org/support/topic/does-nothing-81/)󠁿

 [jasonbear](https://profiles.wordpress.org/jasonbear/) 2018年8月18日

I exported my Wordpress 4.9.8 database, added 2 spacebar clicks after all end-of-
sentence punctuation marks, and imported. Well, this plugin does nothing. Complete
waste of time. Either fix this thing or remove it!

![](https://secure.gravatar.com/avatar/16646a7b5429fb6935d0687d3cc385a38cf67447578a45891ee7f47da582eed7?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-3013/)󠁿

 [creed3](https://profiles.wordpress.org/creed3/) 2016年9月3日

It simply works!

 [ 2件のレビューをすべて表示 ](https://wordpress.org/support/plugin/extra-sentence-space/reviews/)

## 貢献者と開発者

Extra Sentence Space はオープンソースソフトウェアです。以下の人々がこのプラグイン
に貢献しています。

貢献者

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

[“Extra Sentence Space” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/extra-sentence-space)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/extra-sentence-space/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/extra-sentence-space/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/extra-sentence-space/)
を [RSS](https://plugins.trac.wordpress.org/log/extra-sentence-space/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.3.9 (2019-12-31)

 * Fix: Use full path to CHANGELOG.md in the Changelog section of readme.txt
 * Change: Note compatibility through WP 5.3+
 * Change: Update copyright date (2020)

#### 1.3.8 (2019-06-08)

 * Change: Update unit test install script and bootstrap to use latest WP unit test
   repo
 * Change: Note compatibility through WP 5.2+
 * Change: Add link to CHANGELOG.md in README.md

#### 1.3.7 (2019-02-05)

 * New: Add CHANGELOG.md and move all but most recent changelog entries into it
 * New: Add inline documentation for hook
 * Change: Rename readme.txt section from ‘Filters’ to ‘Hooks’
 * Change: Add inline documentation to example in readme.txt
 * Change: Split paragraph in README.md’s “Support” section into two
 * Change: Note compatibility through WP 5.1+
 * Change: Update copyright date (2019)
 * Change: Update License URI to be HTTPS

_Full changelog is available in [CHANGELOG.md](https://github.com/coffee2code/extra-sentence-space/blob/master/CHANGELOG.md)._

## メタ

 *  バージョン **1.3.9**
 *  最終更新日 **7年前**
 *  有効インストール数 **50+**
 *  WordPress バージョン ** 1.5またはそれ以降 **
 *  検証済み最新バージョン: **5.3.21**
 *  言語
 * [English (US)](https://wordpress.org/plugins/extra-sentence-space/)
 * タグ
 * [coffee2code](https://ja.wordpress.org/plugins/tags/coffee2code/)[content](https://ja.wordpress.org/plugins/tags/content/)
   [formatting](https://ja.wordpress.org/plugins/tags/formatting/)[post](https://ja.wordpress.org/plugins/tags/post/)
   [space](https://ja.wordpress.org/plugins/tags/space/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/extra-sentence-space/advanced/)

## 評価

 5つ星中3つ星

 *  [  1 5-星レビュー     ](https://wordpress.org/support/plugin/extra-sentence-space/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/extra-sentence-space/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/extra-sentence-space/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/extra-sentence-space/reviews/?filter=2)
 *  [  1 1-星レビュー     ](https://wordpress.org/support/plugin/extra-sentence-space/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/extra-sentence-space/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/extra-sentence-space/reviews/)

## 貢献者

 *   [ Scott Reilly ](https://profiles.wordpress.org/coffee2code/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/extra-sentence-space/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522)