_tone_convert.pyi 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # -*- coding: utf-8 -*-
  2. from typing import Any
  3. from typing import Optional
  4. from typing import Text
  5. from typing import Tuple
  6. _re_number = ... # type: Any
  7. def to_normal(pinyin: Text, v_to_u: bool = ...) -> Text: ...
  8. def to_tone(pinyin: Text) -> Text: ...
  9. def to_tone2(pinyin: Text, v_to_u: bool = ..., neutral_tone_with_five: bool = ...) -> Text: ...
  10. def to_tone3(pinyin: Text, v_to_u: bool = ..., neutral_tone_with_five: bool = ...) -> Text: ...
  11. def to_initials(pinyin: Text, strict: bool = ...) -> Text: ...
  12. def to_finals(pinyin: Text, strict: bool = ..., v_to_u: bool = ...) -> Text: ...
  13. def to_finals_tone(pinyin: Text, strict: bool = ...) -> Text: ...
  14. def to_finals_tone2(pinyin: Text, strict: bool = ..., v_to_u: bool = ..., neutral_tone_with_five: bool = ...) -> Text: ...
  15. def to_finals_tone3(pinyin: Text, strict: bool = ..., v_to_u: bool = ..., neutral_tone_with_five: bool = ...) -> Text: ...
  16. def tone_to_normal(tone: Text, v_to_u: bool = ...) -> Text: ...
  17. def tone_to_tone2(tone: Text, v_to_u: bool = ..., neutral_tone_with_five: bool = ...) -> Text: ...
  18. def tone_to_tone3(tone: Text, v_to_u: bool = ..., neutral_tone_with_five: bool = ...) -> Text: ...
  19. def tone2_to_normal(tone2: Text, v_to_u: bool = ...) -> Text: ...
  20. def tone2_to_tone(tone2: Text) -> Text: ...
  21. def tone2_to_tone3(tone2: Text, v_to_u: bool = ...) -> Text: ...
  22. def tone3_to_normal(tone3: Text, v_to_u: bool = ...) -> Text: ...
  23. def tone3_to_tone(tone3: Text) -> Text: ...
  24. def tone3_to_tone2(tone3: Text, v_to_u: bool = ...) -> Text: ...
  25. def _improve_tone3(tone3: Text, neutral_tone_with_five: bool = ...) -> Text: ...
  26. def _get_number_from_pinyin(pinyin: Text) -> Optional[int]: ...
  27. def _v_to_u(pinyin: Text, replace: bool = ...) -> Text: ...
  28. def _fix_v_u(origin_py: Text, new_py: Text, v_to_u: bool) -> Text: ...