From 2d335e6411ae19e699355e5eb14e49bb0d76cc0c Mon Sep 17 00:00:00 2001 From: mozillazg Date: Tue, 19 Jul 2016 21:10:36 +0800 Subject: [PATCH 1/3] add ci --- .travis.yml | 7 +++++++ README.md | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d484eae --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: python +python: + - "3.5" + +script: + - cd unihan && make update && make diff && cd - + - make merge_unihan diff --git a/README.md b/README.md index 7293807..e91697f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ -# pinyin-data +# pinyin-data [![Build Status](https://travis-ci.org/mozillazg/pinyin-data.svg?branch=master)](https://travis-ci.org/mozillazg/pinyin-data) 汉字拼音数据。 + ## 数据介绍 数据格式:`{code point}: {pinyins} # {hanzi}` (示例:`U+4E2D: zhōng,zhòng # 中`) @@ -19,6 +20,7 @@ * `pinyin.txt`: 合并上述文件后的拼音数据 * `zdic.txt`: [汉典网](http://zdic.net) 的拼音数据 + ## 参考资料 * [Unihan Database Lookup](http://www.unicode.org/charts/unihan.html) From 19c74aa09386940d93179a33b9b9cc76fb0d186f Mon Sep 17 00:00:00 2001 From: mozillazg Date: Tue, 19 Jul 2016 21:17:54 +0800 Subject: [PATCH 2/3] ignore rm error --- unihan/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unihan/Makefile b/unihan/Makefile index ab079f5..2286b4a 100644 --- a/unihan/Makefile +++ b/unihan/Makefile @@ -10,7 +10,7 @@ parse: .PHONY:update update: - rm Unihan* + -rm Unihan* wget ftp://ftp.unicode.org/Public/UNIDATA/Unihan.zip -O Unihan.zip unzip Unihan.zip python parse_pinyin.py From 79cbc325ce5dba2c1c65c0bf7d031f54963b6256 Mon Sep 17 00:00:00 2001 From: mozillazg Date: Tue, 19 Jul 2016 21:31:50 +0800 Subject: [PATCH 3/3] v0.2.0 --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d31af5..69ca901 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # ChangeLog -## 0.2.0 (2016-mm-dd): +## 0.2.0 (2016-07-19): -* Update to the latest [Unihan Database](http://www.unicode.org/charts/unihan.html): +* Update to the latest version of [Unihan Database](http://www.unicode.org/charts/unihan.html): > Date: 2016-06-01 07:01:48 GMT [JHJ] > Unicode version: 9.0.0