Skip to content

Commit 9944f79

Browse files
committed
pinyin.txt add line comments
1 parent 85a446a commit 9944f79

4 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
* Fix some pinyin: 罗 via [468ffaa8](https://github.com/mozillazg/pinyin-data/commit/468ffaa8eb678637c7565a02e6836255bd0df06c) .
77
* 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).
8+
* pinyin.txt add line comments that startswith `#`.
89

910

1011
## 0.2.0 (2016-07-19):

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55

66
## 数据介绍
77

8-
数据格式:`{code point}: {pinyins} # {hanzi}` (示例:`U+4E2D: zhōng,zhòng # 中`
8+
数据格式:
9+
10+
* 格式:`{code point}: {pinyins} # {hanzi}` (示例:`U+4E2D: zhōng,zhòng # 中`
11+
*`#` 开头的行是注释
12+
913

1014
[Unihan Database][unihan] 数据版本:
1115
> Date: 2016-06-01 07:01:48 GMT [JHJ]

merge_unihan.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,6 @@ def extend_pinyins(old_map, new_map, only_no_exists=False):
9393
assert set(overwrite_pinyin_map.keys()) - code_set == set()
9494
assert set(pua_pinyin_map.keys()) - code_set == set()
9595
with open('pinyin.txt', 'w') as fp:
96+
fp.write('# version: 0.3.0\n')
97+
fp.write('# source: https://github.com/mozillazg/pinyin-data\n')
9698
save_data(new_pinyin_map, fp)

pinyin.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# version: 0.3.0
2+
# source: https://github.com/mozillazg/pinyin-data
13
U+3007: líng # 〇
24
U+3400: qiū # 㐀
35
U+3401: tiàn # 㐁

0 commit comments

Comments
 (0)