Skip to content

Commit

Permalink
Merge pull request jlevy#580 from reiscigit/master
Browse files Browse the repository at this point in the history
zh-Hant: Update iconv and uconv example
  • Loading branch information
jlevy authored Mar 17, 2019
2 parents 03e57f0 + 435a1f6 commit 2e56088
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README-zh-Hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,13 @@ mkdir empty && rsync -r --delete empty/ some-dir && rmdir some-dir

- 二進制檔案對比(Delta 壓縮),使用`xdelta3`

- 使用 `iconv` 更改文字編碼。而更高階的用法,可以使用`uconv`它支援一些高階的Unicode 功能。例如,這條命令將所有母音字母轉為小寫並移除了
- 轉換文字編碼可使用 `iconv` `uconv`後者支援 Unicode 相關的進階用法。例如:
```sh
      uconv -f utf-8 -t utf-8 -x '::Any-Lower; ::Any-NFD; [:Nonspacing Mark:] >; ::Any-NFC; ' < input.txt > output.txt
# 顯示十六進制碼或字元標準名稱(有益於除錯)
uconv -f utf-8 -t utf-8 -x '::Any-Hex;' < input.txt
uconv -f utf-8 -t utf-8 -x '::Any-Name;' < input.txt
# 將文字轉換為小寫並移除所有重音標記(展開字元並移除標記):
uconv -f utf-8 -t utf-8 -x '::Any-Lower; ::Any-NFD; [:Nonspacing Mark:] >; ::Any-NFC;' < input.txt > output.txt
```

- 拆分檔案,檢視`split`(按大小拆分)和`csplit`(按模式拆分)。
Expand Down

0 comments on commit 2e56088

Please sign in to comment.