back to home

studyzy / imewlconverter

”深蓝词库转换“ 一款开源免费的输入法词库转换程序

9,687 stars
695 forks
81 issues
C#ShellMakefile

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing studyzy/imewlconverter in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind-ai.vercel.app/repo/studyzy/imewlconverter)
Preview:Analyzed by RepoMind

Repository Summary (README)

Preview
<div align="center">

深蓝词库转换

Stars Actions Check Integration Tests License Repo size Code Count

Join the chat Release Downloads

一款输入法词库转换软件,支持以下超过 20 种的输入法工具和词库

</div>

本程序支持批量转换(一次拖拽多个词库文件,或者按住 Ctrl 选择多个文件),支持命令行模式(在命令行下使用-h命令查看帮助),支持 Windows、Linux、MacOS。

支持列表

PC 端:

手机端:

  • QQ 手机拼音
  • 百度手机拼音(文本词库和 bcd 格式)
  • 谷歌拼音输入法

该软件支持 6 种以上的输入法编码方法:

  • 仓颉
  • 二笔(超强二笔,青松二笔等)
  • 拼音(全拼、双拼)
  • 五笔(五笔 86、五笔 98、新世纪五笔)
  • 郑码
  • 注音
  • 自定义

命令行使用

基本语法

imewlconverter --input-format <格式> --output-format <格式> --output <输出路径> <输入文件>...

或使用短选项:

imewlconverter -i <格式> -o <格式> -O <输出路径> <输入文件>...

常用示例

单文件转换

imewlconverter -i scel -o ggpy -O output.txt input.scel

多文件转换

imewlconverter -i scel -o ggpy -O output.txt file1.scel file2.scel file3.scel

批量转换到目录(输出目录以 / 结尾):

imewlconverter -i scel -o ggpy -O ./output/ *.scel

使用过滤器

imewlconverter -i scel -o ggpy -O output.txt -f "len:1-100|rm:eng|rm:num" input.scel

查看帮助

imewlconverter --help
imewlconverter --list-formats  # 查看支持的格式列表

重要说明

从 v3.0.0 开始,命令行参数格式已更新为 GNU 风格。如果您使用的是旧格式(如 -i:scel),请参阅 MIGRATION.md 进行迁移。

集成测试

本项目包含完整的集成测试框架,确保各种输入法格式之间的转换正确性。

快速运行测试

# 1. 编译CLI工具
cd src/ImeWlConverterCmd
dotnet build -c Release

# 2. 运行集成测试
cd ../../tests/integration
./run-tests.sh --all

测试覆盖范围

当前已实现:

  • ✅ 导入测试(多种输入格式 → 统一CSV格式)
  • ✅ 导出测试(统一CSV格式 → 多种输出格式)
  • ✅ 高级功能测试(过滤、编码、大文件性能)

详细的测试矩阵与数据来源见 tests/integration/TEST-MATRIX.md

更多信息

Star History

Star History Chart