이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

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   (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 | Plugin Directory Page | GitHub | Author Homepage

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 ‘.!?’.

Arguments:

  • $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?

Yes.

후기

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!
모든 2 평가 읽기

기여자 & 개발자

“Extra Sentence Space”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Extra Sentence Space”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록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.