Skip to content

feat: upgrade opencc to 1.4.0#2039

Draft
Bambooin wants to merge 1 commit into
osfans:developfrom
Bambooin:opencc
Draft

feat: upgrade opencc to 1.4.0#2039
Bambooin wants to merge 1 commit into
osfans:developfrom
Bambooin:opencc

Conversation

@Bambooin

@Bambooin Bambooin commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Pull request

Issue tracker

Fixes will automatically close the related issues

Fixes #
Fixes #

Feature

Describe features of this pull request

Upgrade OpenCC to 1.4.0.

There is one issue with this pull request, the simplified Chinese is missing.

Anyone has the agent can fix this issue and contribute it here.

Code of conduct

Code style

Build pass

  • make debug

Manually test

  • Done

Code Review

  1. No wildcards import
  2. Manual build and test pass
  3. GitHub Action CI pass
  4. At least one contributor review and approve
  5. Merged clean without conflicts
  6. PR will be merged by rebase upstream base

Daily build

Login and download artifact at https://github.com/osfans/trime/actions

Additional Info

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the build logic and native build configuration to support upgrading OpenCC to 1.4.0, primarily by aligning packaged OpenCC dictionary data and ensuring required Boost components are available for the native build.

Changes:

  • Update the OpenCC data install task to package an updated set of OpenCC dictionary text files and adjust which reverse dictionaries are generated.
  • Expand the Boost CMake include list to include additional Boost components (preprocessor, vmd) needed by downstream native dependencies.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
build-logic/convention/src/main/kotlin/OpenCCDataPlugin.kt Updates the list of OpenCC dictionaries that get copied/generated into the app’s packaged shared/opencc assets.
app/src/main/jni/cmake/Boost.cmake Adds Boost components to the curated Boost build used by the native (CMake) build.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 66 to +70
companion object {
private val DICTS_RAW =
arrayOf(
"CJK_Compatibility_Ideographs",
"HKPhrasesRev",
@WhiredPlanck

Copy link
Copy Markdown
Collaborator

OpenCC makes frequent changes recently, the latest librime 1.17.0 doesn't adapt to the latest OpenCC 1.4.0, so I think this PR can be delayed until librime is ready for it.

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.

3 participants