It will translate all chinese punctuation to english punctuation Chinese punctuation in Wikipedia
any linux version and bash
git clone [email protected]:rainysia/punctuation_cn_to_en.git
cd punctuation_cn_to_en && chmod +x punctuation_cn_to_en.sh
./punctuation_cn_to_en.sh absolute_path
./punctuation_cn_to_en.sh relative_path
./punctuation_cn_to_en.sh file_name
- change
punctuation_en_arr[1]="."
topunctuation_en_arr[1]=".\ "
if you want space - add
file_type_arr[n]='file_type'
if you want more filetype support. - add
punctuation_zh_arr[n]='new_chinese_punc'
andpunctuation_en_arr[n]="new_english_punc"
if you want more punctuation support.
./punctuation_cn_to_en.sh ./test.md
Follow me @rainy_sia in twitter, @rainysia in weibo, mail me at rainysia#gmail.com
Copyright by rainy.sia, 2010 Licensed under the MIT license
2016-05-31 14:27:58 Initial the script<br />