/punctuation_cn_to_en

It will translate all chinese punctuation to english punctuation

Primary LanguageShellMIT LicenseMIT

Punctuation_cn_to_en

It will translate all chinese punctuation to english punctuation Chinese punctuation in Wikipedia

Enviroment


any linux version and bash

Usage


  1. git clone git@github.com:rainysia/punctuation_cn_to_en.git
  2. cd punctuation_cn_to_en && chmod +x punctuation_cn_to_en.sh
  3. ./punctuation_cn_to_en.sh absolute_path
  4. ./punctuation_cn_to_en.sh relative_path
  5. ./punctuation_cn_to_en.sh file_name
  6. change punctuation_en_arr[1]="." to punctuation_en_arr[1]=".\ " if you want space
  7. add file_type_arr[n]='file_type' if you want more filetype support.
  8. add punctuation_zh_arr[n]='new_chinese_punc' and punctuation_en_arr[n]="new_english_punc" if you want more punctuation support.

Screenshot


./punctuation_cn_to_en.sh ./test.md

punc

Contact


Follow me @rainy_sia in twitter, @rainysia in weibo, mail me at rainysia#gmail.com

License


Copyright by rainy.sia, 2010 Licensed under the MIT license

Updates


2016-05-31 14:27:58 Initial the script<br />