• Stars
    star
    1
  • Language
    Crystal
  • License
    MIT License
  • Created about 5 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Paranoid text spacing in Crystal

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

More Repositories

1

V2exOS

一个用 SwiftUI 编写的 V2ex macOS/iOS/tvOS 客户端 (A V2ex macOS/iOS/tvOS client written in SwiftUI)
Swift
629
star
2

ISEmojiView

Emoji Keyboard for iOS
Swift
496
star
3

CubicBezier

CubicBezier Generator for macOS
Objective-C
143
star
4

fir-mac

fir.im client on macOS
Swift
117
star
5

JingRound

仿jing.fm的音乐播放视图,支持旋转和自定义参数。
Objective-C
106
star
6

crystal-web-framework-stars

⭐️ Web frameworks for Crystal, most starred on Github
TypeScript
68
star
7

NSLoger

A forum based on Django
Python
57
star
8

NSPress

A Swift Blogging Platform. (No longer maintenance)
CSS
54
star
9

MyMacMusicPlayer

我的 Mac 音乐播放器!
Objective-C
46
star
10

V2exAPI

V2ex API 的 Swift 封装,支持 iOS/macOS (A V2ex API wrapper for iOS/macOS, built with Swift)
Swift
46
star
11

QiniuMacUploader

Mac 平台的七牛云拖拽上传小工具
Swift
23
star
12

flarum-ext-email-verification-switch

Disable new registered user email verification, will be activated automatically.
PHP
22
star
13

GTMBase64

A Simple Example For GTMBase64
Objective-C
18
star
14

awesome-cocoa-weekly

A curated list of awesome cocoa weekly
18
star
15

VVTool

VirtualView 实时预览工具
Ruby
16
star
16

emlog2typecho

帮你从Emlog转换到Typecho(数据库)
Python
15
star
17

Aoxiang

A lightweight HTTP server library written in Swift for iOS/macOS/tvOS.
Swift
14
star
18

appstore-connect-sdk

A TypeScript module for Node.js that interacts with the App Store Connect API, providing support for all APIs based on OpenAPI specification.
TypeScript
13
star
19

HowColor

A small game, written in Swift.
Swift
11
star
20

ISFIRVersionCheck

fir 版本自动检测,有新版本弹 Alert 前往更新
Objective-C
11
star
21

Worktile-SwiftSDK

Worktile 基于 Swift 的 SDK
Swift
8
star
22

react-native-cupertino-list

a Cupertino/iOS list for React Native
Java
7
star
23

pan-naming-master

夸克/阿里网盘批量重命名油猴脚本
Svelte
6
star
24

ISPhotoBrowser

A simple iOS photo browser written in Swift.
Swift
4
star
25

SwiftWhois

SwiftWhois is a Swift library for retrieving WHOIS information of domains.
Swift
4
star
26

react-flex-images

A lightweight react wrapper for creating fluid galleries as seen on Flickr and Google Images, based on Pixabay/JavaScript-flexImages
TypeScript
3
star
27

PTFakeTouch

Simulate touch events for iOS[User mode]
Ruby
2
star
28

react-ui-framework-stars

⭐️ React UI frameworks, most starred on Github
TypeScript
2
star
29

logpage

Helps you quickly deploy a live updated Changelog page based on a CHANGELOG.md file, inspired by headwayapp.co, LogLive.
JavaScript
1
star
30

ISRefresh

Add pull-to-refresh to UIScrollView,UITableView,UICollectionView
Objective-C
1
star
31

FaceDetectionDemo

An example of face recognition on iOS
Swift
1
star
32

ISHappyPuzzle

just want to hapyy puzzle!
Swift
1
star
33

cocoa.directory

A searchable and filterable directory of iOS/OC/Swift libraries.
JavaScript
1
star
34

ScreenFlashEffect

iOS屏幕闪烁效果
Objective-C
1
star
35

isaced

1
star
36

SwiftRubyStyle

Write Ruby style code in Swift.
Swift
1
star
37

isaced_Blue

自己搞的一个用于Emlog的模板,名为简约蓝。
PHP
1
star
38

typerom-skip-take-error-example

A example for typeorm skip/take iessue : https://github.com/typeorm/typeorm/issues/9059
TypeScript
1
star