Skip to content

davidxuang/Pangu.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pangu.NET

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

NuGet Package

Pangu.NET on NuGet.org

Usage

using Pangu;

var text = "当你凝视着bug,bug也凝视着你";
var newText = Pangu.SpacingText(text); // 当你凝视着 bug,bug 也凝视着你
Pangu.SpacingText(ref text);
using Pangu.Extensions;

var text = "与PM战斗的人,应当小心自己不要成为PM".SpacingText(); // 与 PM 战斗的人,应当小心自己不要成为 PM