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
Atom -> Preferences...
Install
tabpangu
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
~/.atom/packages/pangu
To access the Pangu Settings:
Atom -> Preferences...
or cmd-,
Filter Packages
type pangu
# 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.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.