Skip to main content

Windows IME prototype and supporting pinyin rebuild pipeline for Yime.

Project description

License: MIT License: Apache 2.0 GitHub Release Python Version

音元输入法编辑器 (Yinyuan Input Method Editor)

概述

音元输入法编辑器(YIME),简称音元输入法,是以音元为码元的汉语音码输入系统。当前仓库的重点不是完整展开这套理论,而是维护 Windows 桌面输入法原型、相关生成链,以及一组已经可重复生成的效率基线。

当前主线已经能稳定给出几类可验证结果:

  • 带调全拼音节在当前主线下统一为 4 码编码。
  • 运行时候选与重码情况已经可以用基线报告量化。
  • 音元全拼 / 简拼 / 标准全拼的结构码长可以在同语料上并列比较。
  • 单字排序与首屏命中率仍是当前优化重点。

当前可重复生成的第一版指标表见 docs/EFFICIENCY_BASELINE.md

实现范围说明

README 中提到的简拼、双拼、并击、动态组词和更强的编码转换能力,很多仍属于理论能力、设计方向或长期可能性,不应默认理解为当前仓库都已实现。

当前实际主线仍是 Windows 桌面输入法原型,优先处理全拼输入、候选显示、选字回贴、手动输入路径和基础稳定性。

重要设计约束

实现、测试、键盘布局和数据库相关改动,都应先遵守 码点与中间层策略。当前最重要的约束只有三条:

  • N01-N24M01-M33 是语义槽位层,不是可随意删除的中间产物。
  • PUA-B 是长期规范承载层,BMP PUA 只是当前平台投影层。
  • 如果实现结果与约束冲突,应先回查链路,而不是直接改库或跳过语义层修补结果。

特性

本仓库里的“特性”分成两层理解:理论层描述音元系统本身的结构能力,工程层只指当前已经落到代码和 Windows 输入法原型里的主线。

当前真正可运行、可验证的主线主要包括:

  • 全拼输入、候选显示、选字回贴和基础交互
  • 运行时数据导出与效率基线统计
  • 键盘布局生成、MSKLC 打包与安装链

更完整的理论背景、术语和桥接说明请从 docs/README.md 进入;当前实现边界与指标则分别看 docs/project/INPUT_METHOD_SOLUTION.mddocs/EFFICIENCY_BASELINE.md

快速开始

当前根目录 README 只保留最短导航。

  1. 安装环境与依赖:看 docs/install/INSTALLATION_GUIDE.mddocs/install/QUICKSTART_PY312.md
  2. 启动当前原型:使用 python -m yime.input_method.apppython run_input_method.py
  3. 了解边界与细分文档:先读 docs/project/INPUT_METHOD_SOLUTION.md,再进 docs/README.md

项目结构

YIME/
├── yime/                 # 输入法主线
├── docs/                 # 文档与约束
├── tests/                # 测试
├── pinyin/ syllable/     # 拼音与音节
├── scripts/              # 辅助脚本
└── external_data/        # 外部数据

文档入口

根目录 README 只保留三组导航:

进一步信息

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yime-0.1.1.tar.gz (829.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yime-0.1.1-py3-none-any.whl (936.4 kB view details)

Uploaded Python 3

File details

Details for the file yime-0.1.1.tar.gz.

File metadata

  • Download URL: yime-0.1.1.tar.gz
  • Upload date:
  • Size: 829.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yime-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b743d24bad0c5dcd6e2b778899147c8d7dfcda76026e020e51573a3b7a3aa612
MD5 a6ce96a5be93672a4e85a7c3a4a0c827
BLAKE2b-256 0fb9506a74d7ce8f8b4c5197d1ad7b30edf8f06d41fb403855b73a307f4c326e

See more details on using hashes here.

Provenance

The following attestation bundles were made for yime-0.1.1.tar.gz:

Publisher: release.yml on tsaanghwang/Yime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yime-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: yime-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 936.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yime-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fbe9dfd32e00251c07b0a4e4d339fbb3277ae348fe0d16f28d23ebfdeaace09
MD5 19733c306f9247b7ba37c3e0530aac4e
BLAKE2b-256 4a2bdfd41e0ead8f14b8cb2d2d209bdc1cc2d4db91d5db3e65aae8cb370ca0fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for yime-0.1.1-py3-none-any.whl:

Publisher: release.yml on tsaanghwang/Yime

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page