Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package fcitx5-chewing for openSUSE:Factory checked in at 2024-02-05 22:02:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/fcitx5-chewing (Old) and /work/SRC/openSUSE:Factory/.fcitx5-chewing.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "fcitx5-chewing" Mon Feb 5 22:02:28 2024 rev:7 rq:1144311 version:5.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/fcitx5-chewing/fcitx5-chewing.changes 2023-08-21 11:45:04.755631094 +0200 +++ /work/SRC/openSUSE:Factory/.fcitx5-chewing.new.1815/fcitx5-chewing.changes 2024-02-05 22:02:45.146381215 +0100 @@ -1,0 +2,6 @@ +Mon Feb 5 12:52:00 UTC 2024 - Marguerite Su <i...@marguerite.su> + +- update to 5.1.1 + * update translation + +------------------------------------------------------------------- Old: ---- fcitx5-chewing-5.1.0.tar.xz New: ---- fcitx5-chewing-5.1.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ fcitx5-chewing.spec ++++++ --- /var/tmp/diff_new_pack.GWs5Bq/_old 2024-02-05 22:02:45.606397858 +0100 +++ /var/tmp/diff_new_pack.GWs5Bq/_new 2024-02-05 22:02:45.606397858 +0100 @@ -1,7 +1,7 @@ # # spec file for package fcitx5-chewing # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: fcitx5-chewing -Version: 5.1.0 +Version: 5.1.1 Release: 0 Summary: Chewing Wrapper for Fcitx5 License: GPL-2.0-or-later ++++++ fcitx5-chewing-5.1.0.tar.xz -> fcitx5-chewing-5.1.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-chewing-5.1.0/CMakeLists.txt new/fcitx5-chewing-5.1.1/CMakeLists.txt --- old/fcitx5-chewing-5.1.0/CMakeLists.txt 2023-08-14 19:43:36.656048500 +0200 +++ new/fcitx5-chewing-5.1.1/CMakeLists.txt 2023-11-01 17:26:15.568328400 +0100 @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.6) -project(fcitx5-chewing VERSION 5.1.0) +project(fcitx5-chewing VERSION 5.1.1) find_package(ECM REQUIRED 1.0.0) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) @@ -12,16 +12,13 @@ include(ECMSetupVersion) include(ECMUninstallTarget) -pkg_check_modules(Chewing "chewing>=0.5.0" IMPORTED_TARGET REQUIRED) -pkg_get_variable(CHEWING_DATADIR "chewing" datadir) +if (NOT DEFINED CHEWING_TARGET) + pkg_check_modules(Chewing "chewing>=0.5.0" IMPORTED_TARGET REQUIRED) + set(CHEWING_TARGET PkgConfig::Chewing) +endif() include("${FCITX_INSTALL_CMAKECONFIG_DIR}/Fcitx5Utils/Fcitx5CompilerSettings.cmake") -configure_file( - "${CMAKE_CURRENT_SOURCE_DIR}/config.h.in" - "${CMAKE_CURRENT_BINARY_DIR}/config.h" - ) - add_subdirectory(src) add_subdirectory(data) add_subdirectory(po) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-chewing-5.1.0/config.h.in new/fcitx5-chewing-5.1.1/config.h.in --- old/fcitx5-chewing-5.1.0/config.h.in 2021-11-05 22:57:58.941588600 +0100 +++ new/fcitx5-chewing-5.1.1/config.h.in 1970-01-01 01:00:00.000000000 +0100 @@ -1,7 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2010~2017 CSSlayer <wen...@gmail.com> - * - * SPDX-License-Identifier: LGPL-2.1-or-later - * - */ -#define CHEWING_DATADIR "@CHEWING_DATADIR@" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-chewing-5.1.0/org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in new/fcitx5-chewing-5.1.1/org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in --- old/fcitx5-chewing-5.1.0/org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in 2023-08-14 19:43:36.666048500 +0200 +++ new/fcitx5-chewing-5.1.1/org.fcitx.Fcitx5.Addon.Chewing.metainfo.xml.in 2023-11-01 17:26:15.621663600 +0100 @@ -10,6 +10,7 @@ <url type="bugtracker">https://github.com/fcitx/fcitx5-chewing/issues</url> <project_group>Fcitx</project_group> <releases> + <release version="5.1.1" date="2023-11-01"/> <release version="5.1.0" date="2023-08-14"/> <release version="5.0.14" date="2023-03-10"/> <release version="5.0.13" date="2022-11-19"/> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-chewing-5.1.0/src/CMakeLists.txt new/fcitx5-chewing-5.1.1/src/CMakeLists.txt --- old/fcitx5-chewing-5.1.0/src/CMakeLists.txt 2022-05-08 18:24:58.909676800 +0200 +++ new/fcitx5-chewing-5.1.1/src/CMakeLists.txt 2023-11-01 17:23:28.159432200 +0100 @@ -2,12 +2,12 @@ eim.cpp ) add_library(chewing MODULE ${CHEWING_SOURCES}) -target_link_libraries(chewing Fcitx5::Core Fcitx5::Config PkgConfig::Chewing) +target_link_libraries(chewing Fcitx5::Core Fcitx5::Config ${CHEWING_TARGET}) target_compile_definitions(chewing PRIVATE FCITX_GETTEXT_DOMAIN=\"fcitx5-chewing\") fcitx5_add_i18n_definition(TARGETS chewing) install(TARGETS chewing DESTINATION "${CMAKE_INSTALL_LIBDIR}/fcitx5") fcitx5_translate_desktop_file(chewing.conf.in chewing.conf) -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/chewing.conf" DESTINATION "${CMAKE_INSTALL_DATADIR}/fcitx5/inputmethod") +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/chewing.conf" DESTINATION "${CMAKE_INSTALL_DATADIR}/fcitx5/inputmethod" COMPONENT config) configure_file(chewing-addon.conf.in.in chewing-addon.conf.in) fcitx5_translate_desktop_file("${CMAKE_CURRENT_BINARY_DIR}/chewing-addon.conf.in" chewing-addon.conf) -install(FILES "${CMAKE_CURRENT_BINARY_DIR}/chewing-addon.conf" RENAME chewing.conf DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon") +install(FILES "${CMAKE_CURRENT_BINARY_DIR}/chewing-addon.conf" RENAME chewing.conf DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon" COMPONENT config) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/fcitx5-chewing-5.1.0/src/eim.cpp new/fcitx5-chewing-5.1.1/src/eim.cpp --- old/fcitx5-chewing-5.1.0/src/eim.cpp 2022-05-09 06:04:44.195112200 +0200 +++ new/fcitx5-chewing-5.1.1/src/eim.cpp 2023-11-01 17:23:28.159432200 +0100 @@ -178,8 +178,19 @@ } // namespace +ChewingContext *getChewingContext() { + const auto &sp = fcitx::StandardPath::global(); + std::string dictData = + sp.locate(fcitx::StandardPath::Type::Data, "libchewing/dictionary.dat"); + if (!dictData.empty()) { + std::string sysPath = fcitx::fs::dirName(dictData); + return chewing_new2(sysPath.c_str(), nullptr, nullptr, nullptr); + } + return chewing_new(); +} + ChewingEngine::ChewingEngine(Instance *instance) - : instance_(instance), context_(chewing_new()) { + : instance_(instance), context_(getChewingContext()) { chewing_set_maxChiSymbolLen(context_.get(), CHEWING_MAX_LEN); if (chewing_log().checkLogLevel(Debug)) { chewing_set_logger(context_.get(), logger, nullptr); @@ -451,6 +462,7 @@ } ic->updatePreedit(); + ic->updateUserInterface(UserInterfaceComponent::InputPanel); } void ChewingEngine::flushBuffer(InputContextEvent &event) {