有没有to_bopomofo ?

Open
#304 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

Start by reviewing the existing lazy_pinyin and Style.TONE3 APIs described in the issue, including how tone information is represented. Determine the expected conversion from their output to Bopomofo, then add coverage for the shown 衣裳 example and confirm the resulting conversion behavior.

Written by the indexing model from the issue text.

Description

question

运行环境

  • 操作系统(Linux/macOS/Windows):win10
  • Python 版本:3.8.10
  • pypinyin 版本:0.49.0

问题描述

没啥bug, 请问从拼音风格怎么转到bopomofo啊?
比如:
pinyin = lazy_pinyin('衣裳', style=Style.TONE3, neutral_tone_with_five=True)
bopomofo = to_bopomofo(pinyin)
有没有to_bopomofo的风格转化啊?

问题复现步骤

Dominant language
Python
Stars
5.4k
Forks
628
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozillazg/python-pinyin

All issues in mozillazg/python-pinyin

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.