Skip to main content

OpenCC dictionary data, configs, and test data

Project description

opencc-data JSDelivr badge

繁體中文

A collection of dictionary data, configs, and test data for Simplified and Traditional Chinese conversions from the OpenCC project.

Compatibility

This package is intended for opencc-js and other OpenCC-compatible implementations that consume OpenCC dictionary and config data.

  • Strict Version Matching: Compatibility is only guaranteed when the version of opencc-data strictly matches the version of the consumer package.
  • Breaking Changes: We do not guarantee compatibility between different versions of opencc-data. Structure or file names may change to align with upstream OpenCC updates.

Data Sync Policy

This package syncs dictionary .txt files and config .json files from OpenCC's generated resource zip, plus test/testcases/testcases.json from the upstream repository. Each sync keeps the upstream resource manifest as an internal baseline so future updates can detect substantive data changes by resource hash.

Usage

Use the config files shipped in data/config/ as the source of truth for dictionary order and conversion-chain behavior. Config contents can change between OpenCC versions, so consumers should load the matching config file for the package version they depend on instead of hard-coding dictionary lists from this README.

Dictionary text files are shipped in data/. Config files reference those dictionaries by file name and preserve OpenCC's stage/group ordering semantics.

Python consumers can install the opencc-data package from PyPI and use the opencc_data module to locate packaged resources:

import opencc_data

config_file = opencc_data.config_path("s2t.json")
dictionary_file = opencc_data.data_path("STCharacters.txt")
testcases_file = opencc_data.test_data_path("testcases.json")

Release versions match across npm and PyPI, such as 1.3.2. For next prereleases, PyPI uses the PEP 440 equivalent of the npm version: 1.3.2-next.20260628 is published to PyPI as 1.3.2.dev20260628.

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

opencc_data-1.3.2.dev20260628.tar.gz (531.1 kB view details)

Uploaded Source

Built Distribution

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

opencc_data-1.3.2.dev20260628-py3-none-any.whl (541.7 kB view details)

Uploaded Python 3

File details

Details for the file opencc_data-1.3.2.dev20260628.tar.gz.

File metadata

  • Download URL: opencc_data-1.3.2.dev20260628.tar.gz
  • Upload date:
  • Size: 531.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for opencc_data-1.3.2.dev20260628.tar.gz
Algorithm Hash digest
SHA256 95864e84d4c0958a6113bb380c4fef12dbc2f0ddcf231a752a0daea28731711f
MD5 46d14f966067ab307801a005c7924996
BLAKE2b-256 768219af97c26182aaa81d29e233851a97caa36401e9ee3d428d1ea8a7043f75

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencc_data-1.3.2.dev20260628.tar.gz:

Publisher: pypi-publish.yml on nk2028/opencc-data

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

File details

Details for the file opencc_data-1.3.2.dev20260628-py3-none-any.whl.

File metadata

File hashes

Hashes for opencc_data-1.3.2.dev20260628-py3-none-any.whl
Algorithm Hash digest
SHA256 d9b1111210997ceb52ca691d20ce356e0f5ce4008ac99703b9d33a6790c1dca2
MD5 c6898f8f21744ea50dc523e94a4de2cd
BLAKE2b-256 5349908c1f7573f6bd15efd13f9702e3973fc90316af792e8758d622a77a0cb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for opencc_data-1.3.2.dev20260628-py3-none-any.whl:

Publisher: pypi-publish.yml on nk2028/opencc-data

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