Pangu is a plugin for adding space between Chinese/Japanese/Korean and English characters to file in Atom.io editor.
The algorithm is from pangu.js
- Go to
Atom -> Preferences...
- Then select the
Install
tab - Enter
pangu
in the search box
$ apm install pangu
Alternatively, if you are a git user, you can install the package and keep up to date by cloning the repo directly into your ~/.atom/packages
directory.
$ git clone https://github.com/7kfpun/atom-pangu.git ~/.atom/packages/pangu
$ cd ~/.atom/packages/pangu
$ npm install
- Download the files using the GitHub .zip download option and unzip them
- Move the files inside the folder to
~/.atom/packages/pangu
- Install packages:
npm install
To access the Pangu Settings:
- Go to
Atom -> Preferences...
orcmd-,
- In the
Filter Packages
typepangu
# Auto spacing on save
Enabled | default: `false` (true, false)
# Auto spacing ignored names
ignoredNames | default: ``
# Skip on lines without Chinese, Japanese and Korean
skipNoCKJLine | default: false
# Ignoring text with the matched pattern, e.g. \\*\\*[^\\*\\*]+\\*\\*, <pre>(.*?)</pre>
ignoredPattern | default: ``
The following commands are available and are keyboard shortcuts.
pangu:spacing
- Spacing -ctrl-alt-p
ctrl-alt-g
Released under the MIT License.