Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.
/ xuanwu Public archive

A simple command line front end of pangu which could automatically insert whitespace between CJK and half-width characters

License

Notifications You must be signed in to change notification settings

EAimTY/xuanwu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xuanwu

Xuanwu is a simple command line front end of pangu-rs which could automatically insert whitespace between CJK(Chinese, Japanese, Korean) and half-width characters(alphabetical letters, numerical digits and symbols).

Xuanwu (玄武) is a powerful deity in Chinese religion, one of the higher-ranking deities in Taoism. In Chinese mythology, Xuanwu is the son of Pangu (盘古; 盤古), who separated heaven and earth and became geographic features such as mountains and rivers.

Usage

Usage: xuanwu [options] [TEXT]

Options:
    -f FILE             read text from file
    -v, --version       Print the version
    -h, --help          Print this help menu

Input from argument

$ xuanwu "當你凝視著bug,bug也凝視著你"
當你凝視著 bug,bug 也凝視著你

Input from file

$ cat /PATH/TO/FILE
當你凝視著bug,bug也凝視著你

$ xuanwu -f /PATH/TO/FILE
當你凝視著 bug,bug 也凝視著你

Output to file

$ xuanwu "當你凝視著bug,bug也凝視著你" > /PATH/TO/FILE

$ cat /PATH/TO/FILE
當你凝視著 bug,bug 也凝視著你

Compile

Required Rust 1.59 or above

$ git clone https://github.com/EAimTY/xuanwu && cd xuanwu
$ cargo build --release

You can find the compiled binary in target/release/

License

GNU General Public License v3.0

About

A simple command line front end of pangu which could automatically insert whitespace between CJK and half-width characters

Topics

Resources

License

Stars

Watchers

Forks

Languages