Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Jul 30, 2022
1 parent 8880f0f commit 5f4ef79
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ vocab.large.bin
.mypy_cache/
.pytest_cache/
/pypinyin/phrases_dict_large.py
/docs/CHANGELOG.html
18 changes: 18 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@ Changelog
---------


`0.47.0`_ (2022-07-30)
+++++++++++++++++++++++++

* **[New]** **[Changed]** 自定义拼音风格的回调函数新增关键字参数 ``han`` ,用于接收对应的原始汉字:

.. code-block:: python
@register('new_style')
def new_style_func(pinyin, **kwargs):
return kwargs.get('han', '') + pinyin
pinyin('北京', style='new_style') # output: [['北běi'], ['京jīng']]
* **[Improved]** 使用 `phrase-pinyin-data`_ v0.13.0 的词语拼音数据。
* **[Improved]** 使用 `pinyin-data`_ v0.13.0 的拼音数据。


`0.46.0`_ (2022-02-12)
+++++++++++++++++++++++++

Expand Down Expand Up @@ -973,3 +990,4 @@ __ https://github.com/mozillazg/python-pinyin/issues/8
.. _0.44.0: https://github.com/mozillazg/python-pinyin/compare/v0.43.0...v0.44.0
.. _0.45.0: https://github.com/mozillazg/python-pinyin/compare/v0.44.0...v0.45.0
.. _0.46.0: https://github.com/mozillazg/python-pinyin/compare/v0.45.0...v0.46.0
.. _0.47.0: https://github.com/mozillazg/python-pinyin/compare/v0.46.0...v0.47.0

0 comments on commit 5f4ef79

Please sign in to comment.