Skip to content

Commit 5e200ba

Browse files
authored
jyutping !windows (#226)
1 parent 9ec8281 commit 5e200ba

17 files changed

+192
-6
lines changed

.github/workflows/compare.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ jobs:
1313
steps:
1414
- name: Install bsdtar
1515
run: |
16-
sudo rm /var/lib/man-db/auto-update
1716
sudo apt update && sudo apt install -y libarchive-tools
1817
sudo ln -sf /usr/bin/bsdtar /usr/bin/tar
1918

.github/workflows/js.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
. emsdk/emsdk_env.sh
5959
git apply --directory=libime patches/libime.patch
6060
git apply --directory=fcitx5-chinese-addons patches/chinese-addons.patch
61+
git apply --directory=fcitx5-jyutping patches/jyutping.patch
6162
git apply --directory=fcitx5-rime patches/rime.log.patch
6263
git apply --directory=fcitx5-rime patches/rime.js.patch
6364
emcmake cmake -B build/js -G Ninja -DCMAKE_BUILD_TYPE=Release
@@ -120,7 +121,7 @@ jobs:
120121
npx playwright install-deps
121122
122123
- name: Test
123-
run: pnpm run test
124+
run: pnpm run test --test-list-invert tests/${{ matrix.os }}.list
124125

125126
release:
126127
needs: test

.github/workflows/macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
GOARCH: ${{ matrix.goarch }}
6767
run: |
6868
git apply --directory=libime patches/libime.patch
69+
git apply --directory=fcitx5-jyutping patches/jyutping.patch
6970
git apply --directory=fcitx5-rime patches/rime.log.patch
7071
cmake -B build/macos-${{ matrix.arch }} -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=${{ matrix.arch }}
7172
cmake --build build/macos-${{ matrix.arch }}

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
shell: bash
5656
run: |
5757
cmake -B build/windows-${{ matrix.arch }} -G Ninja \
58-
-DANTHY=OFF -DBAMBOO=OFF -DCHEWING=OFF -DCHINESE_ADDONS=OFF -DHANGUL=OFF -DM17N=OFF -DMOZC=OFF -DRIME=OFF -DSKK=OFF -DTABLE_EXTRA=OFF \
58+
-DANTHY=OFF -DBAMBOO=OFF -DCHEWING=OFF -DCHINESE_ADDONS=OFF -DHANGUL=OFF -DJYUTPING=OFF -DM17N=OFF -DMOZC=OFF -DRIME=OFF -DSKK=OFF -DTABLE_EXTRA=OFF \
5959
-DCMAKE_BUILD_TYPE=Release \
6060
-DCMAKE_TOOLCHAIN_FILE='windows-cross/msys2.toolchain.cmake' \
6161
-DARCH=${{ matrix.cmake_arch }}

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@
6161
[submodule "windows-cross"]
6262
path = windows-cross
6363
url = https://github.com/fcitx-contrib/windows-cross
64+
[submodule "fcitx5-jyutping"]
65+
path = fcitx5-jyutping
66+
url = https://github.com/fcitx/libime-jyutping

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ option(CHEWING "" ON)
88
option(CHINESE_ADDONS "" ON)
99
option(HALLELUJAH "" ON)
1010
option(HANGUL "" ON)
11+
option(JYUTPING "" ON)
1112
option(M17N "" ON)
1213
option(MOZC "" ON)
1314
option(RIME "" ON)
@@ -35,6 +36,7 @@ if (NOT APPLE) # On macOS compile prefix is the same with runtime prefix.
3536
set(Fcitx5Utils_DIR "${PROJECT_SOURCE_DIR}/cmake")
3637
endif()
3738

39+
set(Fcitx5ModulePunctuation_DIR "${PROJECT_SOURCE_DIR}/cmake")
3840
# We don't build testing frontends so fake it.
3941
set(Fcitx5ModuleTestFrontend_DIR "${PROJECT_SOURCE_DIR}/cmake")
4042

@@ -89,7 +91,7 @@ add_subdirectory(fcitx5-chewing)
8991
endif()
9092

9193
# lua and chinese-addons
92-
if (CHINESE_ADDONS)
94+
if (CHINESE_ADDONS OR JYUTPING)
9395
option(USE_DLOPEN "" OFF)
9496
add_subdirectory(fcitx5-lua)
9597

@@ -130,6 +132,11 @@ set(HANGUL_TARGET Hangul_static)
130132
add_subdirectory(fcitx5-hangul)
131133
endif()
132134

135+
# jyutping
136+
if (JYUTPING)
137+
add_subdirectory(fcitx5-jyutping)
138+
endif()
139+
133140
# m17n
134141
if (M17N)
135142
add_library(m17n_static STATIC IMPORTED)

cmake/Fcitx5ModulePunctuationConfig.cmake

Whitespace-only changes.

cmake/Fcitx5UtilsConfig.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
if (NOT Fcitx5Utils_FOUND)
12
set(Fcitx5Utils_FOUND TRUE)
23

34
add_library(Fcitx5::Utils SHARED IMPORTED)
@@ -24,3 +25,4 @@ include("${PREBUILDER_LIB_DIR}/cmake/Fcitx5Utils/Fcitx5UtilsConfig.cmake")
2425
# to locate Fcitx5CompilerSettings
2526
set(FCITX_INSTALL_CMAKECONFIG_DIR "${PREBUILDER_LIB_DIR}/cmake")
2627
include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5Macros.cmake")
28+
endif()

cmake/FindLibIMECore.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set(LibIMECore_FOUND TRUE)

fcitx5-jyutping

Submodule fcitx5-jyutping added at 8e3e802

0 commit comments

Comments
 (0)