Skip to content

Commit

Permalink
Update pinyin data for certain characters, avoid the score to be even…
Browse files Browse the repository at this point in the history
… lower tha unknown. (#77)
  • Loading branch information
wengxt committed Jun 15, 2024
1 parent ceff281 commit 4b3e28c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions data/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
set(LM_TAR "lm_sc.arpa-20230712.tar.xz")
set(LM_TAR "lm_sc.arpa-20230712.tar.zst")
# Use our own file server for convenience.
set(LM_URL "https://download.fcitx-im.org/data/${LM_TAR}")

fcitx5_download(lm-download ${LM_URL} ${LM_TAR}
badd62c16c6373787a0fda8f09cd452d12f60d5868856f651ceecf1a07baba32)
c3d09cea4f61c751887751f29f9421d0757ed0faea5bd49ccd4451d01674c856)
fcitx5_extract(lm-extract ${LM_TAR} DEPENDS lm-download
OUTPUT lm_sc.arpa)

Expand All @@ -25,11 +25,11 @@ add_custom_target(lm-predict ALL DEPENDS "${LM_PREDICT_OUTPUT}")
install(FILES "${LM_OUTPUT}" RENAME zh_CN.lm DESTINATION "${LIBIME_INSTALL_LIBDATADIR}")
install(FILES "${LM_PREDICT_OUTPUT}" RENAME zh_CN.lm.predict DESTINATION "${LIBIME_INSTALL_LIBDATADIR}")

set(DICT_TAR "dict-20240416.tar.zst")
set(DICT_TAR "dict-20240615.tar.zst")
set(DICT_URL "https://download.fcitx-im.org/data/${DICT_TAR}")

fcitx5_download(dict-download ${DICT_URL} ${DICT_TAR}
9c262cbfa306cb4c3b055991b7e22b453e0f267f20ceb5d9d9e5f8fbe4f2d367)
f9dd5f39e9bae557b179b8757c07be7e715e73c50f5a59cb0b5799103882110e)
fcitx5_extract(dict-extract ${DICT_TAR} DEPENDS dict-download
OUTPUT dict_sc.txt dict_extb.txt)

Expand All @@ -49,12 +49,12 @@ add_custom_command(
add_custom_target(dict ALL DEPENDS "${DICT_OUTPUT}" "${DICT_EXTB_OUTPUT}")
install(FILES "${DICT_OUTPUT}" "${DICT_EXTB_OUTPUT}" DESTINATION "${LIBIME_INSTALL_PKGDATADIR}")

set(TABLE_DICT_URL "https://download.fcitx-im.org/data/table-20240108.tar.gz")
set(TABLE_DICT_TAR "table-20240108.tar.gz")
set(TABLE_DICT_TAR "table-20240108.tar.zst")
set(TABLE_DICT_URL "https://download.fcitx-im.org/data/${TABLE_DICT_TAR}")
set(TABLE_TXT_FILES db.txt erbi.txt qxm.txt wanfeng.txt
wbpy.txt wbx.txt zrm.txt cj.txt)
fcitx5_download(table-dict-download ${TABLE_DICT_URL} ${TABLE_DICT_TAR}
729c596d86907de727c74d0fc3fd241c406c5debd2b4cb74eefe022387ee9dae)
3e9d87b04a393f131723472c8eaa860dd23c378a3d4f6a9005513b2a95b3614b)
fcitx5_extract(table-dict-extract ${TABLE_DICT_TAR} DEPENDS table-dict-download
OUTPUT ${TABLE_TXT_FILES})

Expand Down

0 comments on commit 4b3e28c

Please sign in to comment.