mozillazg / python-pinyin

汉字转拼音(pypinyin)

Home Page:https://pypinyin.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BOPOMOFO of "誒" and "欸" includes "ê"

stefantaubert opened this issue · comments

运行环境

  • 操作系统(Linux/macOS/Windows):Linux
  • Python 版本:3.10.8
  • pypinyin 版本:0.47.1

问题描述

Retrieving BOPOMOFO of and returns invalid results which include ê.

问题复现步骤

from pypinyin import Style, pinyin

print(pinyin("誒", Style.BOPOMOFO, heteronym=True))
# [['ㄟˊ', 'ㄒㄧ', 'ㄧˋ', 'ê', 'êˊ', 'êˇ', 'ㄟˇ', 'êˋ', 'ㄟˋ', 'ㄟ']]
print(pinyin("欸", Style.BOPOMOFO, heteronym=True))
# [['ㄞ', 'ㄞˇ', 'ê', 'êˊ', 'êˇ', 'êˋ', 'ㄒㄧㄝˋ', 'ㄟˊ', 'ㄟˇ', 'ㄟˋ', 'ㄟ']]

@stefantaubert Thanks for reporting. I'll take a look at it.