macos-input-method-exporter

Export macOS Chinese input dictionary entries to Rime, Sogou, Baidu, and WeChat formats.

Updated May 27, 2026
One-click install
npx skills add https://github.com/betasecond/macos-input-method-exporter --skill macos-input-method-exporter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: macos-input-method-exporter
Source: https://github.com/betasecond/macos-input-method-exporter/tree/main
Command: npx skills add https://github.com/betasecond/macos-input-method-exporter --skill macos-input-method-exporter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

macOS users who accumulate long-term input data (Personal dictionary entries and typing habits) often need to migrate to third-party input methods. This Skill provides a straightforward way to export that data and convert it into ready-to-import formats for Rime, Sogou, Baidu, and WeChat, preserving wordings and typing frequency.

Core Features & Use Cases

  • Exports native macOS DynamicPhraseLexicon entries (Surface, Reading, Syllables, Seed) to multiple target formats.
  • Preserves spacing in pinyin by decoding Syllables and mapping weights to approximate LRUs in other engines.
  • Generates: plain word lists, Rime dict.yaml, Sogou phrases, text replacements, and CSV variants for various apps.
  • Use Case: A user wants to back up their lexicon and migrate to Rime and Sogou with accurate syllable spacing and weight data.

Quick Start

Run the export_dictionary.py script in your terminal to generate all supported dictionaries in the current directory.

Frequently Asked Questions about macos-input-method-exporter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export macOS input method dictionary entries to Rime?

Exporting macOS input method dictionary entries to Rime involves decoding the DynamicPhraseLexicon_zh_Hans.db file and converting its Words table data into a Rime dict.yaml format, preserving pinyin syllables and typing weights.

What is the best way to migrate macOS pinyin typing habits to Sogou or Baidu?

Migrating macOS pinyin typing habits to Sogou or Baidu requires extracting surface readings and spaced pinyin from the native lexicon database, then mapping frequency weights to generate compatible Sogou phrase or CSV files.

Can I preserve pinyin spacing and frequency weights when leaving the macOS input method?

You can preserve pinyin spacing and frequency weights when leaving the macOS input method by reconstructing spaced pinyin from the Syllables field and mapping recency and frequency data to approximate LRU weights in target engines.

Does the macOS dictionary export support WeChat input method format?

The macOS dictionary export supports WeChat input method format by converting native UTF-16LE blob data from the macOS Words table into compatible CSV variants and plain text word lists for direct import.

What data is extracted from the macOS DynamicPhraseLexicon database?

Data extracted from the macOS DynamicPhraseLexicon database includes Surface, Reading, Syllables, and Seed fields from the Words table, alongside optional system text replacements, to reconstruct dictionary entries with accurate spacing.

How do I run the macOS input method export script?

Running the macOS input method export script requires executing the export_dictionary.py script in your terminal, which processes the native lexicon and generates all supported dictionary formats in the current directory.