Popularity
1.5
Growing
Activity
0.0
Stable
1
3
0

Programming language: Crystal
License: MIT License
Tags: Misc    
Latest version: v0.1.0

pangu.cr alternatives and similar shards

Based on the "Misc" category.
Alternatively, view pangu.cr alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of pangu.cr or a related project?

Add another 'Misc' Shard

README

pangu Build Status GitHub releases

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).

This is the Crystal copy version from bugtender/rangu.

Installation

Add the dependency to your shard.yml:

dependencies:
  pangu:
    github: isaced/pangu.cr

Run shards install

Usage

require "pangu"

Pangu.spacing("當你凝視著bug,bug也凝視著你")
=> "當你凝視著 bug,bug 也凝視著你"

Pangu.spacing("path/to/file.txt")
=> "與 PM 戰鬥的人,應當小心自己不要成為 PM"

Contributing

  1. Fork it (https://github.com/isaced/pangu.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request