{"id":13511551,"url":"https://github.com/rime/librime","last_synced_at":"2026-01-06T12:09:49.716Z","repository":{"id":2777583,"uuid":"3776878","full_name":"rime/librime","owner":"rime","description":"Rime Input Method Engine, the core library","archived":false,"fork":false,"pushed_at":"2025-04-18T15:18:03.000Z","size":16920,"stargazers_count":3672,"open_issues_count":117,"forks_count":586,"subscribers_count":89,"default_branch":"master","last_synced_at":"2025-04-25T17:50:22.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rime.im","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"clcdpc/polaris-api-csharp","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rime.png","metadata":{"files":{"readme":"README-mac.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2012-03-20T15:45:06.000Z","updated_at":"2025-04-25T03:26:16.000Z","dependencies_parsed_at":"2023-12-16T05:01:11.800Z","dependency_job_id":"19e03430-62e4-46f0-a7ec-e9446f9d6422","html_url":"https://github.com/rime/librime","commit_stats":{"total_commits":1486,"total_committers":55,"mean_commits":27.01818181818182,"dds":"0.14939434724091516","last_synced_commit":"d0d227c70daa25c9671e8355b042c0c1697c2de4"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rime%2Flibrime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rime%2Flibrime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rime%2Flibrime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rime%2Flibrime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rime","download_url":"https://codeload.github.com/rime/librime/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254000854,"owners_count":21997442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T03:00:55.551Z","updated_at":"2025-12-28T07:06:36.215Z","avatar_url":"https://github.com/rime.png","language":"C++","funding_links":[],"categories":["C++","Categories","C++ (225)"],"sub_categories":["Android IME Development Resources"],"readme":"# Rime with Mac\n\nThere are two ways to install librime on macOS:\n\n## 1. Using Homebrew (Recommended)\n\n```sh\nbrew install librime\n```\n\n## 2. Manual Compilation\n\n### Preparation\n\nInstall Xcode with command line tools.\n\nInstall other build tools:\n\n``` sh\nbrew install cmake git\n```\n\n### Get the code\n\n``` sh\ngit clone --recursive https://github.com/rime/librime.git\n```\nor [download from GitHub](https://github.com/rime/librime), then get code for\nthird-party dependencies separately.\n\n### Install Boost C++ libraries\n\nBoost is a third-party library which librime code heavily depend on.\nThese dependencies include a few header-only Boost libraries.\n\n**Option 1 (recommended):** Download and build Boost from source.\n\n``` sh\ncd librime\nbash install-boost.sh\n```\n\nThe make script will download Boost source tarball, extract it to\n`librime/deps/boost-\u003cversion\u003e`.\n\nSet shell variable `BOOST_ROOT` to the path to `boost-\u003cversion\u003e` directory prior\nto building librime.\n\n``` sh\nexport BOOST_ROOT=\"$(pwd)/deps/boost-1.89.0\"\n```\n\n**Option 2:** Install Boost libraries from Homebrew.\n\n``` sh\nbrew install boost\n# to build with icu4c, add the icu4c install path to LIBRARY_PATH\nexport LIBRARY_PATH=${LIBRARY_PATH}:/opt/homebrew/opt/icu4c/lib:/usr/local/opt/icu4c/lib\n```\n\nThis is a time-saving option if you are building and installing Rime only for your\nown Mac computer.\n\nBuilt with Homebrewed version of Boost, the `librime` binary will not be\nportable to machines without certain Homebrew formulae installed.\n\n**Option 3:** Install an older version of Boost libraries from Homebrew.\n\nStarting from version 1.68, `boost::locale` library from Homebrew depends on\n`icu4c`, which is not provided by macOS.\n\nMake target `xcode/release-with-icu` tells cmake to link to ICU libraries\ninstalled locally with Homebrew. This is only required if building with the\n[`librime-charcode`](https://github.com/rime/librime-charcode) plugin.\n\nTo make a portable build with this plugin, install an earlier version of\n`boost` that wasn't dependent on `icu4c`:\n\n``` sh\nbrew install boost@1.60\nbrew link --force boost@1.60\n```\n\n### Build third-party libraries\n\nRequired third-party libraries other than Boost are included as git submodules:\n\n``` sh\n# cd librime\n\n# if you didn't checked out the submodules with git clone --recursive, now do:\n# git submodule update --init\n\nmake deps\n```\n\nThis builds libraries located at `librime/deps/*`, and installs the build\nartifacts to `librime/include`, `librime/lib` and `librime/bin`.\n\nYou can also build an individual library, eg. `opencc`, with:\n\n``` sh\nmake deps/opencc\n```\n\n### Build librime\n\n``` sh\nmake\n```\nThis creates `build/lib/Release/librime*.dylib` and command line tools\n`build/bin/Release/rime_*`.\n\nOr, create a debug build:\n\n``` sh\nmake debug\n```\n\n### Run unit tests\n\n``` sh\nmake test\n```\n\nOr, test the debug build:\n\n``` sh\nmake test-debug\n```\n\n### Try it in the console\n\n``` sh\n(\n  cd debug/bin;\n  echo \"congmingdeRime{space}shurufa\" | Debug/rime_api_console\n)\n```\n\nUse it as REPL, quit with \u003ckbd\u003eControl+d\u003c/kbd\u003e:\n\n``` sh\n(cd debug/bin; ./Debug/rime_api_console)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frime%2Flibrime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frime%2Flibrime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frime%2Flibrime/lists"}