Skip to content

Commit

Permalink
pinyin.txt add line comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Aug 19, 2016
1 parent 85a446a commit 9944f79
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

* Fix some pinyin: 罗 via [468ffaa8](https://github.com/mozillazg/pinyin-data/commit/468ffaa8eb678637c7565a02e6836255bd0df06c) .
* Support Chinese that in PUA([Private Use Area](https://en.wikipedia.org/wiki/Private_Use_Areas>)) via [#2](https://github.com/mozillazg/pinyin-data/pull/2).
* pinyin.txt add line comments that startswith `#`.


## 0.2.0 (2016-07-19):
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

## 数据介绍

数据格式:`{code point}: {pinyins} # {hanzi}` (示例:`U+4E2D: zhōng,zhòng # 中`
数据格式:

* 格式:`{code point}: {pinyins} # {hanzi}` (示例:`U+4E2D: zhōng,zhòng # 中`
*`#` 开头的行是注释


[Unihan Database][unihan] 数据版本:
> Date: 2016-06-01 07:01:48 GMT [JHJ]
Expand Down
2 changes: 2 additions & 0 deletions merge_unihan.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,6 @@ def extend_pinyins(old_map, new_map, only_no_exists=False):
assert set(overwrite_pinyin_map.keys()) - code_set == set()
assert set(pua_pinyin_map.keys()) - code_set == set()
with open('pinyin.txt', 'w') as fp:
fp.write('# version: 0.3.0\n')
fp.write('# source: https://github.com/mozillazg/pinyin-data\n')
save_data(new_pinyin_map, fp)
2 changes: 2 additions & 0 deletions pinyin.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# version: 0.3.0
# source: https://github.com/mozillazg/pinyin-data
U+3007: líng # 〇
U+3400: qiū # 㐀
U+3401: tiàn # 㐁
Expand Down

0 comments on commit 9944f79

Please sign in to comment.