Skip to content
Paranoid text spacing in Elixir
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Initial commit Feb 14, 2016
lib Fix quote regex pattern Feb 15, 2016
test More and more tests Feb 15, 2016
.gitignore Initial commit Feb 14, 2016
.travis.yml Add CI Feb 20, 2016 Add badge for build status Feb 20, 2016
mix.exs Correct version Feb 20, 2016


Build Status version

Paranoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).


Add pangu to your mix.exs dependencies:

def deps do
  [{:pangu, "~> 0.1.0"}]

and run $ mix deps.get.


require Pangu
Pangu.spacing("Sephiroth見他這等神情,也是悚然一驚:不知我這Ultimate Destructive Magic是否對付得了?")
# output: Sephiroth 見他這等神情, 也是悚然一驚: 不知我這 Ultimate Destructive Magic 是否對付得了?


Released under the MIT License.

You can’t perform that action at this time.