Skip to content
cataskaPublic

About

Paranoid text spacing in Elixir

Resources

Stars

6 stars

Watchers

1 watching

Forks

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pangu.ex

Build Status hex.pm 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).

Installation

Add pangu to your mix.exs dependencies:

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

and run $ mix deps.get.

Usage

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

License

Released under the MIT License.

About

Paranoid text spacing in Elixir

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages