2 Star 1 Fork 0

mirrors_google/mozc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

src/

Directory of the source code.

Overview of components and directories

+------------+            +------------+            +------------+
| Server     | <--------> | Client     | <--------> | UI         |
+------------+  Protocol  +------------+  Protocol  +------------+
| Session    |            | Platform   |
+------------+            +------------+
| Converter  |
+------------+
| Dictionary |
+------------+

Note: Platform is used for various components for platform specific requirements.

Platform

  • android/
    • Android specific implementation.
    • Note: Mozc does not contain the client UI implementation for Android.
  • unix/
    • Linux specific implementation.
  • win32/
    • Windows specific implementation.
  • mac/
    • macOS specific implementation.
  • ios/
    • iOS specific implementation.
    • Note: Mozc does not officially support iOS build.

Build

  • build_tools/
    • Utilities used for build (e.g. code generation).
  • bazel/
    • Build rules and tools for Bazel build.
  • gyp/
    • Build rules and tools for GYP.
  • protobuf/
    • Build rules and tools of GYP for Protocol Buffers.

Base

  • base/
    • Fundamental libraries for generic purposes.
  • data/
    • Directory and subdirectories of data files.
  • third_party/
    • Third party libraries (e.g. Abseil).
  • testing/
    • Libraries for testing.
  • usage_stats/
    • Libraries for usage statistics.
    • Note: Mozc does not use usage statistics.

Protocol

  • protocol/
    • Protocol definitions of function API (e.g. API between client and server).
  • config/
    • Libraries to manage user configurations.
  • request/
    • Libraries of request used for text conversion.

Client / Server

  • client/
    • Libraries of client code.
    • Note: The main function of the client is in each platform directory.
  • server/
    • Libraries of server code.
    • The main function is in this directory.
  • ipc/
    • Libraries of IPC to communicate between client, server and other processes.

Session

  • session/
    • Libraries of state management between user interactions and text conversion.
  • composer/
    • Libraries of text composing (e.g. Romaji-Hiragana conversion).
  • transliteration/
    • Libraries of script type transliteration (e.g. half-width Katakana, full-width Ascii).

Converter

  • engine/
    • Libraries to manage converter libraries.
  • data_manager/
    • Libraries to manage converter data.
  • converter/
    • Libraries of text conversion (e.g. Hiragana to Kanji exact match conversion).
  • rewriter/
    • Libraries for additional conversions (e.g. date input, symbol input, zip code input).
  • prediction/
    • Libraries of text prediction (e.g. Hiragana to Kanji prefix match conversion).

Dictionary

  • dictionary/
    • Libraries of dictionary lookup (e.g. Hiragana key to possible words).
  • storage/
    • Libraries of dictionary data storage (e.g. LOUDS, etc.).

UI

  • renderer/
    • UI application of candidate words.
  • gui/
    • GUI applications for configurations.
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_google/mozc.git
git@gitee.com:mirrors_google/mozc.git
mirrors_google
mozc
mozc
master

搜索帮助