Skip to content

feat: 增加拼音全拼搜索及多音字首拼搜索功能#480

Open
neooier wants to merge 2 commits into
OIerDb-ng:masterfrom
neooier:pinyin
Open

feat: 增加拼音全拼搜索及多音字首拼搜索功能#480
neooier wants to merge 2 commits into
OIerDb-ng:masterfrom
neooier:pinyin

Conversation

@neooier

@neooier neooier commented Jan 17, 2025

Copy link
Copy Markdown
Contributor

OIerDb-ng/OIerDb#65
OIerDb-ng/OIerDb#33

将所有选手包含的汉字的拼音输出到 pinyin.txt 用于前端搜索使用

功能经基本验证运行正常

- 新增 output_pinyin 函数,用于输出选手姓名的拼音
- 在 main.py 中集成该功能,生成 dist/pinyin.txt 文件
- 更新 GitHub Actions 工作流,支持 pinyin 文件的生成和部署
- 添加 is_chinese_char 函数,用于判断字符是否为汉字
- 使用 pypinyin 库替换 hanzi_pinyin 库
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant