Skip to content

lostandfound/textlint-rule-no-surrogate-pair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlint-rule-no-surrogate-pair

Detects surrogate pairs (D800-DBFF and DC00-DFFF) in sentences.

文章の中でUnicodeのサロゲートペアの文字が使われていると検出します。サロゲートペアの文字は一部の電子書籍のリーディングシステムで表示ができないため注意が必要です。

参考:電書ラボEPUB制作仕様 2016.07.28 β0.99

Install

Install with npm:

npm install textlint-rule-no-surrogate-pair

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "no-surrogate-pair": true
    }
}

Via CLI

textlint --rule no-surrogate-pair README.md

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

MIT ©

About

Detects surrogate pairs in sentences.

Resources

Stars

Watchers

Forks

Packages

No packages published