diff --git a/libchewing-0.3.0-11.bz195416.patch b/libchewing-0.3.0-11.bz195416.patch new file mode 100644 index 0000000..b4f2feb --- /dev/null +++ b/libchewing-0.3.0-11.bz195416.patch @@ -0,0 +1,19 @@ +diff -up libchewing-0.3.0/include/global.h.9-bz195416 libchewing-0.3.0/include/global.h +diff -up libchewing-0.3.0/src/chewingio.c.9-bz195416 libchewing-0.3.0/src/chewingio.c +--- libchewing-0.3.0/src/chewingio.c.9-bz195416 2008-04-24 14:56:45.000000000 +1000 ++++ libchewing-0.3.0/src/chewingio.c 2008-04-24 16:31:32.000000000 +1000 +@@ -255,13 +255,7 @@ CHEWING_API int chewing_Configure( Chewi + + CHEWING_API void chewing_set_ChiEngMode( ChewingContext *ctx, int mode ) + { +- ChewingData *pgdata = ctx->data; +- +- if ( pgdata->bFirstKey == 0 ) { +- pgdata->bChiSym = mode; +- pgdata->bCaseChange = ( mode == CHINESE_MODE ? 0 : 1 ); +- pgdata->bFirstKey = 1; +- } ++ ctx->data->bChiSym = ( mode == CHINESE_MODE ? 1 : 0 ); + } + + CHEWING_API int chewing_get_ChiEngMode( ChewingContext *ctx ) diff --git a/libchewing.spec b/libchewing.spec index 0713b5a..cb0b89b 100644 --- a/libchewing.spec +++ b/libchewing.spec @@ -1,6 +1,6 @@ Name: libchewing Version: 0.3.0 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Intelligent phonetic input method library for Traditional Chinese Group: System Environment/Libraries @@ -15,6 +15,7 @@ Patch4: libchewing-0.3.0-6.bz231568.patch Patch5: libchewing-0.3.0-7.bz237233.patch Patch6: libchewing-0.3.0-8.bz237916.patch Patch7: libchewing-0.3.0-9.bz200694.patch +Patch8: libchewing-0.3.0-11.bz195416.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -44,6 +45,7 @@ Headers and other files needed to develop applications using the %name library. %patch5 -p1 -b .6-bz237233 %patch6 -p1 -b .7-bz237916 %patch7 -p1 -b .8-bz200694 +%patch8 -p1 -b .9-bz195416 %build %configure --disable-static @@ -77,6 +79,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.so %changelog +* Tue Apr 22 2008 Caius Chance - 0.3.0-11.fc9 +- Resolves: rhbz195416 (Initial input mode between Chinese and English.) + * Wed Feb 13 2008 Caius Chance - 0.3.0-10.fc9 - Rebuild for F9.