Restore 0.1.5 version from stash
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Style.INITIALS 风格"""
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from pypinyin.constants import Style
|
||||
from pypinyin.style import register
|
||||
from pypinyin.style._utils import get_initials
|
||||
|
||||
|
||||
@register(Style.INITIALS)
|
||||
def convert(pinyin, **kwargs):
|
||||
strict = kwargs.get('strict', True)
|
||||
return get_initials(pinyin, strict)
|
||||
Reference in New Issue
Block a user