feat: 增加拼音全拼搜索及多音字首拼搜索功能#480
Open
neooier wants to merge 2 commits into
Open
Conversation
- 新增 output_pinyin 函数,用于输出选手姓名的拼音 - 在 main.py 中集成该功能,生成 dist/pinyin.txt 文件 - 更新 GitHub Actions 工作流,支持 pinyin 文件的生成和部署 - 添加 is_chinese_char 函数,用于判断字符是否为汉字
- 使用 pypinyin 库替换 hanzi_pinyin 库
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OIerDb-ng/OIerDb#65
OIerDb-ng/OIerDb#33
将所有选手包含的汉字的拼音输出到 pinyin.txt 用于前端搜索使用
功能经基本验证运行正常