spacifier

A simple & handy tool to insert a space between a Chinese character and a western character

MIT License

Downloads
8.2K
Stars
4
Committers
1

Spacifier

Insert a space between a Chinese character and a western character.

在中西文字符之间插入空格。

Installation

$ gem install spacifier

Usage

Put inputs with pipe to spacifier:

$ echo "何为跨域?何为JSONP?JSONP技术能实现什么?是否有必要使用JSONP技术?" | spacifier

Output:

$ 何为跨域?何为 JSONP?JSONP 技术能实现什么?是否有必要使用 JSONP 技术?

Jekyll-spacify

Jekyll-spacify is a Liquid filter plugin for Jekyll, based on spacifier. As soon as you get spacifier, Jekyll-spacify is embedded in.

Add spacifier to Gemfile:

gem "spacifier"

And then,

$ bundle install

Add spacifier to _config.yml:

plugins:
  - spacifier

Use in your contents:

{{ "你好,Hello世界world" | spacify }}

License

MIT License.

Copyright (c) David Zhang, 2020.