Skip to content

Keep Darts support always enabled - #1374

Merged
frankslin merged 2 commits into
BYVoid:masterfrom
frankslin:upstream-master
Jul 1, 2026
Merged

frankslin merged 2 commits into
BYVoid:masterfrom
frankslin:upstream-master

Conversation

@frankslin

Copy link
Copy Markdown
Collaborator

Add resource zip loading for legacy OCD dictionaries and remove the obsolete opencc_config feature header now that Darts support is mandatory.

Detailed Changes:

  • OCD Resource Zip Loading:

    • Load .ocd dictionaries directly from ResourceProvider buffers.

    • Share parsing with the existing 32-bit and legacy 64-bit Darts readers.

  • Mandatory Darts Support:

    • Remove ENABLE_DARTS guards so ocd conversion and loading are always available.

    • Drop USE_SYSTEM_DARTS because the vendored darts-clone copy has OpenCC-specific fixes, and system Darts versions are likely to expose incompatible interfaces or data sizing.

  • Config Header Cleanup:

    • Delete the obsolete opencc_config headers and remove them from CMake, Bazel, and npm packaging lists.

Add resource zip loading for legacy OCD dictionaries and remove the obsolete opencc_config feature header now that Darts support is mandatory.

Detailed Changes:

- **OCD Resource Zip Loading:**

  - Load .ocd dictionaries directly from ResourceProvider buffers.

  - Share parsing with the existing 32-bit and legacy 64-bit Darts readers.

- **Mandatory Darts Support:**

  - Remove ENABLE_DARTS guards so ocd conversion and loading are always available.

  - Drop USE_SYSTEM_DARTS because the vendored darts-clone copy has OpenCC-specific fixes, and system Darts versions are likely to expose incompatible interfaces or data sizing.

- **Config Header Cleanup:**

  - Delete the obsolete opencc_config headers and remove them from CMake, Bazel, and npm packaging lists.
Add DartsDict and the vendored darts-clone include tree to the node-gyp and Zig Windows addon build inputs so Config and DictConverter can resolve mandatory OCD support symbols.
@frankslin
frankslin merged commit 18c09df into BYVoid:master Jul 1, 2026
33 checks passed
@frankslin
frankslin deleted the upstream-master branch July 1, 2026 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant