2004-11-09 TOKUNAGA Hiroyuki * intltool-merge.in: Updated to 0.31.2. * intltool-update.in: Updated to 0.31.2. * intltool-extract.in: Updated to 0.31.2. 2004-11-09 Etsushi Kato * uim/skk-dic.c (numeric_kanji_with_position_conv) : Fix behavior in case of getting 1000000. 2004-11-09 TOKUNAGA Hiroyuki * configure.ac: Removed definition of LOCALEDIR. * uim/Makefile.am: Added definition of LOCALEDIR. * gtk/Makefile.am: Added definition of LOCALEDIR. * helper/Makefile.am: Added definition of LOCALEDIR, GNOMELOCALEDIR. 2004-11-09 Etsushi Kato * xim/ximic.cpp (XimIC::get_ic_atr) : Send KeyPressMask|KeyReleaseMask again for ICA_FilterEvents on on-demand-synchronous method. On full-synchronous method, send KeyPressMask only since sending KeyReleaseMask causes problem in rare cases for some reason. 2004-11-09 Etsushi Kato * uim/skk-dic.c (numeric_kanji_with_position_conv) : Fix behavior in case of zero. 2004-11-09 TOKUNAGA Hiroyuki * configure.ac: It's no longer 0.4.5-beta1. Replaced with the word "trunk". This will close Bug 1790. 2004-11-09 TOKUNAGA Hiroyuki * scm/japanese-azik.scm: Used new input-rule style like ((("x" "x"). ())(("y" "y" "y") ("z" "z" "z"))). This will fix the Bug 566. 2004-11-09 TOKUNAGA Hiroyuki * scm/japanese.scm: Used new input-rule style like ((("x" "x"). ())(("y" "y" "y") ("z" "z" "z"))). This will fix the Bug 566. 2004-11-09 TOKUNAGA Hiroyuki * scm/anthy.scm: -(anthy-proc-input-state-with-preedit): Corresponsed to new input-rule style like ((("x" "x"). ())(("y" "y" "y") ("z" "z" "z"))) 2004-11-09 YamaKen * This commit adds dynamic configuration update of live uim client processes feature to Sumika using the helper protocol message 'prop_custom_update'. To test this feature, uncomment (require "custom.scm") in the loader.scm. * sumika/common/uimconfig.c - Add #include "uim/uim-helper.h" - (siod_output): Mark as static - (custom_msg_tmpl, helper_fd): New static variable - (helper_disconnect_cb): New static function - (write_uim_config): * Add the dynamic configuration update of live uim client processes feature * Add anthy-show-segment-separator? modification for testing purpose. This code fragment only exists for testing purpose. It must be removed in future * scm/loader.scm - Move the location of (require "custom.scm") * scm/custom.scm - (custom-prop-update-custom-handler): Change first argument name 'id' to 'context' in accordance with recent specification change in im.scm 2004-11-09 YamaKen * sumika/gtk2/uimcontainer.c - (uim_config_container_new): Uncomment g_signal_connect for cb_uim_config_pane_save_button_clicked. This makes custom values saving as ~/.uim working. But custom value update (uim_custom_set) on user operations on the custom widgets are still lacking, so saved ~/.uim does not reflect user modification - (cb_uim_config_pane_save_button_clicked): New static function - (uimconfig_create_custom_filechooser_widget): Fix uim_custom_value_as_str() with uim_custom_value_as_path() This fixes default value initialization of the widgets for pathname custom variables such as skk-dic-file-name - Fix a typo in a comment * scm/custom.scm - (custom switch-im-key?): Comment out because the custom type 'key' is not yet completed. This change has resolved the error on saving 2004-11-09 TOKUNAGA Hiroyuki * scm/japanese.scm: Fixed some wrong rules. whu, tha, qya, qyi, qyu, qye, qyo. Thanks to OHASHI Hideya. 2004-11-09 TOKUNAGA Hiroyuki * scm/japanese.scm: Removed unused rules, "s" "s" and "n" "". * scm/japanese-azik.scm: Removed unused rule, "n" "x" "2" "7". 2004-11-08 Etsushi Kato * scm/skk.scm : Add skk-use-numeric-conversion? definition. (skk-get-nth-candidate) : Check skk-use-numeric-conversion? (skk-prepare-commit-string) : Ditto. (skk-begin-conversion) : Ditto. (skk-do-update-preedit) : Ditto. In numeric-conversion mode, show preedit whose numerical strings are replaced with # if there is skk-context-child-context. (skk-check-candidate-window-begin) : Check skk-use-numeric-conversion? (skk-change-candidate-index) : Ditto. * scm/skk-editor.scm (skk-editor-commit-raw) : Ditto. If inputting string-length of str is 0, go back to parent context according to ddskk's behavior. * uim/skk-dic.c : Add skk-lib-store-replaced-numstr, skk-lib-merge-replaced-numstr, skk-lib-merge-replaced-numstr, skk-lib-replace-numeric for scheme interface. Change number of accepting arguments of skk-lib-get-nth-candidate, skk-lib-get-nr-candidates, skk-lib-commit-candidate in order to enable numeric conversion. (skk_store_replaced_numeric_str) : New function. Returns list of numeric strings by parsing string of skk-context-head. (wide_num_list) : New. List of full width numbers. (kanji_num_list) : New. List of kanji numbers. (kanji_num_position_list) : New. List of kanji position characters. (numeric_wide_or_kanji_conv) : New function. Returns full width numeric string or kanji numeric string. (numeric_kanji_width_position_conv) : New function. Returns kanji numeric string with position characters. (numeric_shogi_conv) : New function. Returns numeric string for shogi. (numeric_convert) : New function. Return numerically converted strings corresponding to each numeric conversion methods of skk. Method #5 is not implemented yet. (skk_merge_replaced_numeric_str) : New function. Return merged string of the candidate and corresponding converted numeric string. (skk_replace_numeric) : New function. Replace numerical string of the original string with #, and return its replaced string. (get_nth) : New function. Returns nth content of the LISP list. (skk_get_nth_candidate) : Process #4 method of skk's numerical conversion. (skk_get_nr_candidate) : Ditto. (skk_commit_candidate) : Ditto. 2004-11-08 YamaKen * I had mistakes in the commit log for r1604. Following is the correct version. * sumika/gtk2/uimcontainer.c - (uim_config_container_new): * Comment out uim_lisp local variables and replace with the global variables * Add uimapi_gc_protect() for the global variables - (uimconfig_create_custom_combobox_widget, uimconfig_create_custom_checkbutton_widget, uimconfig_create_custom_textbox_widget, uimconfig_create_custom_spinbutton_widget, uimconfig_create_custom_filechooser_widget, uimconfig_uim_custom_widget_new, uimconfig_uim_custom_widget_new_by_sym): Comment out uim_lisp local variables and replace with the global variables 2004-11-08 YamaKen * This commit has temporarily and partially resolved the uim-scm API problem about memory corruption on GC (see Comment #4 of bug #481 and [Anthy-dev 1113]). The changes make Sumika partially working. Before this fix Sumika often causes SEGV on GC. But now uim configuration GUI of Sumika works with following command. $ GTK_IM_MODULE=xim LIBUIM_VERBOSE=5 sumika GTK_IM_MODULE= still causes SEGV. I'll investigate it later. Configuration loading/saving are not yet touched. * uim/siod.h - (gc_protect): New API. Export as temporary solution for custom API * uim/slib.c - (gc_protect): Unmark static * uim/uim-scm.h - (uim_scm_gc_protect): New API. uim_scm API wrapper for gc_protect - (struct uim_api_tbl): Add uim_scm_gc_protect * uim/uim-util.c - (uim_scm_gc_protect): New API function - (uim_scm_intern_c_str, uim_scm_qintern_c_str): Cosmetic change * sumika/common/uimconfig.c - (uimapi_gc_protect): New function - (uimapi_init): Add initialization of uim_scm_gc_protect * sumika/gtk2/uimcontainer.c - (uimapi_gc_protect): Declare as extern function - (groups, group_sym, cur, item, label, default_val, desc, range, group, customs, custom_sym, rcustoms): * New global variable * These gc_protect'ed variables are moved from local variables to avoid corruption on GC - (uim_config_container_new): * Comment out uim_lisp local variables and replace with the local variables * Add uimapi_gc_protect() for the global variables - (uimconfig_create_custom_combobox_widget, uimconfig_create_custom_checkbutton_widget, uimconfig_create_custom_textbox_widget, uimconfig_create_custom_spinbutton_widget, uimconfig_create_custom_filechooser_widget, uimconfig_uim_custom_widget_new, uimconfig_uim_custom_widget_new_by_sym): Comment out uim_lisp local variables and replace with the local variables * scm/custom.scm - Remove invalid (require "im.scm") - (custom custom-preserved-default-im-name): * Follow recent im.scm specification change about im-list * Add fallback labels for each IM - (custom-hook-get-default-im-name): Follow recent im.scm specification change about im-list 2004-11-08 TOKUNAGA Hiroyuki * scm/generic-key.scm: -(generic-next-page-key?): Took off "right" from key binding. -(generic-prev-page-key?): Took off "left" from key binding. In anthy.scm, there is no way to close candidate window. If right and left keys are used to prev/next page, we cannot change current selected segment. 2004-11-08 kzk * Enable selecting Candidate from hitting number key * qt/quiminputcontextplugin/src/quiminputcontext.cpp - (filterEvent): handle number key specially for candidate window * qt/quiminputcontextplugin/src/candidatewindow.cpp - (setIndexInPage): new function - (shiftPage): handle candidateIndex correctly * qt/quiminputcontextplugin/src/candidatewindow.h - (setIndexInPage): new function * qt/quiminputcontextplugin-qt4/quiminputcontext.h - #include * qt/quiminputcontextplugin-qt4/quiminputcontext.cpp - (filterEvent): handle number key specially for candidate window * qt/quiminputcontextplugin-qt4/candidatewindow.cpp - (setIndexInPage): new function - (shiftPage): handle candidateIndex correctly * qt/quiminputcontextplugin-qt4/candidatewindow.h - (setIndexInPage): new function 2004-11-08 Etsushi Kato * xim/ximserver.cpp (InputContext::candidate_activate) : Use correct accel_enumeration_hint argument for uim_get_candidate(). Add sanity check. 2004-11-08 YamaKen * This commit fixes invalid input mode management in anthy.scm and canna.scm that prevents setting default input mode as 'direct' or 'zenkaku' via action.scm. This change has resolved remaining bug #1791 on anthy and canna. Thanks to UTUMI Hirosi for reporting. * scm/anthy.scm - (anthy-context-new): Remove unnecessary anthy-flush invocatoin - (anthy-flush): Remove inappropriate anthy-context-set-on! invocation - (anthy-proc-wide-latin): Add anthy-context-set-on! * scm/canna.scm - (canna-context-new): Remove unnecessary canna-flush invocatoin - (canna-flush): Remove inappropriate canna-context-set-on! invocation - (canna-proc-wide-latin): Add canna-context-set-on! 2004-11-08 kzk * scm/anthy.scm - (anthy-proc-converting-state): handle "anthy-prev-page-key?" and "anthy-next-page-key?" before handling "anthy-next-segment-key?" and "anthy-prev-segment-key?". These are apt to have same key. So, we should handle "anthy-*-page-key?" which has the ristriction that this key is handled when candidate-window is active; * scm/generic-key.scm - add "left" key to generic-prev-page-key? - add "right" key to generic-next-page-key? 2004-11-08 YamaKen * doc/COMPATIBILITY - Add a new entry 'New action handling framework' * scm/action.scm - Modify the header comment 2004-11-08 YamaKen * scm/action.scm - (activity-indicator-new): Fix broken handling when no activity exist. Returns fallback-indication when such case. The behavior is validated by test-action.scm. * test/test-action.scm - (test activity-indicator-new): Add no activity case 2004-11-08 YamaKen * This commit changes default activity of input mode widget of each IMs to 'direct' mode. This change has resolved bug #1791. In addition, setting these variables non-direct mode is not useful on gtk-immodule until bug #1632 has been resolved because non-text widgets such as menus are created with non-direct mode, so shortcut operations by alphabet character does not work until the mode have been changed to direct mode. * scm/anthy.scm - (default-widget_anthy_input_mode): Change the value to action_anthy_direct * scm/canna.scm - (default-widget_canna_input_mode): Change the value to action_canna_direct * scm/skk.scm - (default-widget_skk_input_mode): Change the value to action_skk_latin * scm/tutcode.scm - (default-widget_tutcode_input_mode): Change the value to action_tutcode_direct * scm/util.scm - (any, every): Cosmetic change 2004-11-07 Etsushi Kato * xim/ximtrans.cpp (Connection::xim_open) : Check whether XIM is working with full-synchronous method or on-demand-synchronous method. * xim/ximic.cpp (XimIC::get_ic_atr) : Only send KeyPressMask. * xim/ximim.cpp (XimIM_impl::forward_event) : Send XIM_SYNC_REPLY if xim if working with full-synchronous method. * xim/main.cpp : Add --fullsync command line option. * xim/ximserver.h : Define OPT_FULL_SYNC. 2004-11-05 kzk * Enable kasumi button (configure option) * uim-kdehelper/configure.in.in - add "--enable-kasumi" option * uim-kdehelper/src/common/Makefile.am - handle kasumi-enabled case * uim-kdehelper/src/common/quimhelpertoolbar.cpp * uim-kdehelper/src/common/quimhelpertoolbar.h - (addExecKasumiButton, slotExecKasumi): new function * use KUniqueApplication class for future uim-pref-qt * uim-kdehelper/src/pref/uim-pref-qt.cpp * uim-kdehelper/src/pref/uim-pref-qt.h - (slotOk, slotApply): new function * add "const" qualifier for optimization * uim-kdehelper/src/toolbar/draghandler.cpp * uim-kdehelper/src/candwin/uim-candwin-qt.cpp * uim-kdehelper/src/switcher/im-switcher-qt.h * uim-kdehelper/src/switcher/im-switcher-qt.cpp * uim-kdehelper/src/common/uimstateindicator.cpp * Pot filename update * uim-kdehelper/po/uim-qtkde-helper.pot - deleted * uim-kdehelper/po/uim-kdehelper.pot - added 2004-11-05 YamaKen * This commit replaces property and mode handlings in skk.scm with the new action handling framework implemented in action.scm. Users can configure widgets and actions as their preferable forms. * scm/skk.scm - Replace skk-mode-handler and skk-prop-handler in register-im with context-mode-handler and context-prop-activate-handler - Invoke skk-configure-widgets to register widgets - (skk-widgets, default-widget_skk_input_mode, skk-input-mode-actions): New configuration variable - (skk-mode-latin, skk-mode-hiragana, skk-mode-katakana, skk-mode-wide-latin, skk-mode-hankana): Remove - (skk-prepare-activation, skk-configure-widgets, skk-latin-state?): New procedure - (action action_skk_hiragana, action action_skk_katakana, action action_skk_hankana, action action_skk_latin, action action_skk_wide_latin): New action - (skk-context-new): Add initialization of widgets - (skk-update-mode, skk-mode-handler, skk-prop-handler, skk-update-prop-label, skk-update-prop-list): Remove to replace with action.scm - (skk-proc-state-direct-no-preedit, skk-proc-state-direct, skk-proc-state-latin, skk-proc-state-wide-latin, skk-init-handler): Remove property and mode handlings to replace with action.scm 2004-11-05 YamaKen * This commit replaces property and mode handlings in prime.scm with the new action handling framework implemented in action.scm. Users can configure widgets and actions as their preferable forms. * scm/prime.scm - Replace prime-mode-handler and prime-prop-handler in register-im with context-mode-handler and context-prop-activate-handler - Invoke prime-configure-widgets to register widgets - (prime-widgets, default-widget_prime_input_mode, prime-input-mode-actions): New configuration variable - (action action_prime_mode_latin, action action_prime_mode_hiragana, action action_prime_mode_wide_latin): New action - (prime-configure-widgets): New procedure - (prime-context-new): Add initialization of widgets - (prime-init-handler, prime-mode-set): Remove property and mode handlings to replace with action.scm - (prime-mode-handler, prime-prop-handler, prime-update-prop-label, prime-update-prop-list, prime-mode-get-label, prime-mode-get-list): Remove to replace with action.scm - (prime-mode): Mark as unused 2004-11-05 kzk * qt/uim-kdehelper/candwin/uim-candwin-qt.cpp - (slotCandidateSelected): enable mouse clicking. thanks Etsusi Kato-san! 2004-11-05 YamaKen * This commit replaces property and mode handlings in canna.scm with the new action handling framework implemented in action.scm. Users can configure widgets and actions as their preferable forms. * scm/canna.scm - Replace canna-mode-handler and canna-prop-handler in register-im with context-mode-handler and context-prop-activate-handler - Invoke canna-configure-widgets to register widgets - Add preliminary AZIK input support - (canna-widgets, default-widget_canna_input_mode, default-widget_canna_kana_input_method, canna-input-mode-actions, canna-kana-input-method-actions): New configuration variable - (action action_canna_hiragana, action action_canna_katakana, action action_canna_hankana, action action_canna_direct, action action_canna_zenkaku, action action_canna_roma, action action_canna_kana, action_canna_azik): New action - (canna-prepare-activation, canna-configure-widgets): New procedure - (canna-context-rec-spec): Fix invalid default value - (canna-context-new): Add initialization of widgets - (canna-mode-handler, canna-prop-handler, canna-update-prop-label, canna-update-mode, canna-update-prop-list): Remove to replace with action.scm - (canna-proc-input-state-no-preedit, canna-init-handler, canna-proc-wide-latin): Remove property and mode handlings to replace with action.scm - (canna-proc-input-state-with-preedit): * Remove property and mode handlings to replace with action.scm * Fix a typo over a procedure invocation - (canna-proc-raw-state): * Remove property and mode handlings to replace with action.scm * Remove an unused invalid canna-update-preedit - (canna-prop-list): Remove the unused procedure * scm/util.scm - (multi-segment-mode-direct, multi-segment-mode-hiragana, multi-segment-mode-katakana, multi-segment-mode-wide-latin, multi-segment-mode-hankana): Remove * scm/anthy.scm - A trivial cosmetic change 2004-11-05 YamaKen * This commit replaces property and mode handlings in tutcode.scm with the new action handling framework implemented in action.scm. * scm/tutcode.scm - Invoke tutcode-configure-widgets to register widgets - (tutcode-register-im): Replace tutcode-mode-handler and tutcode-prop-handler in register-im with context-mode-handler and context-prop-activate-handler - (tutcode-widgets, default-widget_tutcode_input_mode, tutcode-input-mode-actions): New configuration variable - (action action_tutcode_direct, action action_tutcode_hiragana, action action_tutcode_katakana): New action - (tutcode-prepare-activation, tutcode-configure-widgets): New procedure - (tutcode-context-new): Add initialization of context-widgets - (tutcode-proc-on-mode, tutcode-proc-off-mode, tutcode-init-handler): Remove property and mode handlings to replace with action.scm - (tutcode-update-mode, tutcode-mode-handler, tutcode-prop-handler, tutcode-update-prop-label, tutcode-update-prop-list): Remove to replace with action.scm 2004-11-05 YamaKen * This commit adds property and mode handlings in direct.scm by new action handling framework implemented in action.scm. * scm/direct.scm - Invoke direct-configure-widgets to register widgets - Replace direct-mode-handler and direct-prop-handler in register-im with context-mode-handler and context-prop-activate-handler - (direct-widgets, default-widget_direct_input_mode, direct-input-mode-actions): New configuration variable - (action action_direct_direct): New action - (direct-configure-widgets): New procedure - (direct-context-new-internal): New alias of define-record'ed direct-context-new - (direct-context-new): * New procedure * Add initialization of context-widgets to default procedure - (direct-mode-handler): Comment out old implementation which performs im-switching by mode facility - (direct-prop-handler): Remove these placeholder to replace with action.scm 2004-11-05 YamaKen * This commit adds property and mode handlings in m17nlib.scm by new action handling framework implemented in action.scm. * scm/m17nlib.scm - Invoke m17nlib-configure-widgets to register widgets - (m17nlib-register): Replace m17nlib-mode-handler and m17nlib-prop-handler in register-im with context-mode-handler and context-prop-activate-handler - (m17nlib-widgets, default-widget_m17nlib_input_mode, m17nlib-input-mode-actions): New configuration variable - (action action_m17nlib_off, action action_m17nlib_on): New action - (m17nlib-configure-widgets): New procedure - (m17nlib-mode-handler, m17nlib-prop-handler): Remove these placeholders to replace with action.scm - (m17nlib-context-new): Add initialization of context-widgets 2004-11-05 YamaKen * This commit replaces property and mode handlings in generic.scm with the new action handling framework implemented in action.scm. * scm/generic.scm - Invoke generic-configure-widgets to register widgets - (generic-register-im): Replace generic-mode-handler and generic-prop-handler in register-im with context-mode-handler and context-prop-activate-handler - (generic-widgets, default-widget_generic_input_mode, generic-input-mode-actions): New configuration variable - (action action_generic_off, action action_generic_on): New action - (generic-prepare-activation, generic-configure-widgets): New procedure - (generic-context-rec-spec): Fix invalid default value - (generic-context-new): Add initialization of context-widgets - (generic-proc-input-state, generic-proc-off-mode, generic-init-handler): Remove property and mode handlings to replace with action.scm - (generic-mode-handler, generic-prop-handler, generic-update-prop-label, generic-update-prop-list): Remove to replace with action.scm * scm/hangul.scm - (hangul-register-im): Replace generic-mode-handler and generic-prop-handler in register-im with context-mode-handler and context-prop-activate-handler 2004-11-05 kzk * qt/uim-kdehelper/switcher/im-switcher-qt.cpp - (createGUI): layout and resize mode enhancement - (parseHelperStrImList): remove unnecessary code for adjusting listview size * qt/uim-kdehelper/switcher/im-switcher-qt.h - now class UimImSwitcher extends QDialog 2004-11-05 YamaKen * This commit replaces property and mode handlings in anthy.scm with the new action handling framework implemented in action.scm. Users can configure widgets and actions as their preferable forms. * scm/anthy.scm - Replace anthy-mode-handler and anthy-prop-handler in register-im with context-mode-handler and context-prop-activate-handler - Invoke anthy-configure-widgets to register widgets - Add preliminary AZIK input support - (anthy-widgets, default-widget_anthy_input_mode, default-widget_anthy_kana_input_method, anthy-input-mode-actions, anthy-kana-input-method-actions): New configuration variable moved from action.scm - (action action_anthy_hiragana, action action_anthy_katakana, action action_anthy_hankana, action action_anthy_direct, action action_anthy_zenkaku, action action_anthy_roma, action action_anthy_kana): New action moved from action.scm - (action action_anthy_azik): New action - (anthy-prepare-activation, anthy-configure-widgets): New procedure moved from action.scm - (anthy-mode-direct, anthy-mode-hiragana, anthy-mode-katakana, anthy-mode-wide-latin, anthy-mode-hankana): Remove - (anthy-context-new): Add initialization of widgets - (anthy-init-handler, anthy-proc-raw-state, anthy-proc-input-state-no-preedit, anthy-proc-input-state-with-preedit, anthy-proc-wide-latin, ): Remove property and mode handlings to replace with action.scm - (anthy-mode-handler, anthy-prop-handler, anthy-update-prop-label, anthy-update-mode, anthy-update-prop-list, ): Remove to replace with action.scm * scm/action.scm - Remove invocation of anthy-configure-widgets - (anthy-widgets, default-widget_anthy_input_mode, default-widget_anthy_kana_input_method, anthy-input-mode-actions, anthy-kana-input-method-actions, anthy-prepare-activation, action action_anthy_hiragana, action action_anthy_katakana, action action_anthy_hankana, action action_anthy_direct, action action_anthy_zenkaku, action action_anthy_roma, action action_anthy_kana, anthy-configure-widgets, anthy-context-new): Move into anthy.scm - (test-widgets): New variable - (example-configure-widgets): New procedure - (anthy-im-name-indication): Rename to example-im-name-indication - (example-im-name-indication): Renamed from anthy-im-name-indication - (anthy-exec-im-switcher-indication): Rename to example-exec-im-switcher-indication - (example-exec-im-switcher-indication): Renamed from anthy-exec-im-switcher-indication - (action action_exec_im_switcher): Follow the renaming of anthy-exec-im-switcher-indication 2004-11-05 YamaKen * This commit fixes 2 problems related to action.scm. The working anthy.scm using action.scm will follow soon. I had said that "No code modification is required for each IMs at now. Each IMs can switch to the action.scm in arbitrary time" in the commit log of r1580, but an indication problem on uim-toolbar will occur with old code. So I'm going to replace all IMs with action.scm. Sorry for misleading. * uim/uim.c - (uim_prop_activate): Replace prop-handler with prop-activate-handler - (uim_prop_update_custom): Replace prop-handler with custom-set-handler * scm/im.scm - (record im): Rename a member prop-handler with prop-activate-handler - (im-custom-set-handler, custom-set-handler): New procedures to simplify the handler invocation - (prop-activate-handler): * New procedure to simplify the handler invocation * Intentionally adds context-update-widgets as side effect - (im-prop-handler-alist, prop-handler): Remove * scm/action.scm - All changes are validated by test-action.scm - (indication-compose-leaf): * Fix a design bug that causes prop-activate malfunction * Add an argument act-id to fix the design bug * compose act-id instead of indication-id into the message - (widget-compose-live-branch): Follow the specifiation change of indication-compose-leaf - (context-prop-activate-handler, context-mode-handler): Rename a local variable that masks global one (not a bug) - (widget-action-id->mode-value, widget-mode-value->action-id): Cosmetic change * test/test-action.scm - (test indication-compose-leaf, test widget-compose-live-branch, test context-propagate-prop-list-update, test context-propagate-widget-states, test context-propagate-widget-configuration): Follow the specification change of indication-compose-leaf 2004-11-05 TOKUNAGA Hiroyuki * scm/generic.scm: -(generic-proc-input-state): Ignore symbol key events such as left arrow and right arrow if candidate window is opened. 2004-11-05 TOKUNAGA Hiroyuki * gtk/Makefile.am: Added @GTK2_LIBS@ to im_uim_la_LDFLAGS. This will fix the problem that uim's immodule doesn't work with pygtk programs like quodlibet. Thanks to Matthew Reppert. 2004-11-05 YamaKen * This commit prepares the replacing property handling codes with action.scm in each IMs. But no code modification is required for each IMs at now. Each IMs can switch to the action.scm in arbitrary time. * scm/im.scm - Add (require "load-action.scm") - (context-rec-spec): Add new member 'widgets'. The name may be renamed in accordance with discussion about action.scm - (invoke-handler): Add update of widgets - (create-context): Add initialization of widgets * scm/action.scm - (context-rec-spec, record context, invoke-handler, create-context): Remove to merge into im.scm - Comment out (require "anthy.scm") 2004-11-05 YamaKen * test/test-im.scm - (testcase im im-management, test retrieve-im, test find-im-for-locale, test find-default-im, test find-im, testcase im context management, test context-im, test find-context, test remove-context): Follow the renaming of 'default IM' (had been renamed to 'direct' to avoid confusions) changed in r1567, r1568 - (testcase im default im): Remove placeholder 2004-11-05 Takuro Ashie * uim-cand-win-gtk.[ch]: Enabled to shrink the candidate window. 2004-11-05 YamaKen * This commit makes action.scm ready to use. All procedures are validated by test-action.scm. The term 'widget' used in this framework is still under discussion. It may be renamed in accordance with result of the discussion. http://freedesktop.org/pipermail/uim/2004-November/000736.html This framework will replace property handling codes in each IMs once the discussion has been end. I'm going to replace the codes of anthy.scm as a test soon even if the discussion continues. * scm/action.scm - All procedures are validated by test-action.scm - (register-action): Fix invalid registration - (action-indicate): Add handling for an error case - (activity-indicator-new): Rename a wrong local variable name - (widget-new-internal): New alias of define-record'ed widget-new - (register-widget): * Fix invalid registration * Replace actions with () if #f is specified - (widget-new): * Swap argument order to become natural * Remove an initialization with arbitrary activity - (widget-activity): Modify an inappropriate message - (widget-activate!): * Also accepts action-id instead of actual action object * Add handling for an error case - (widget-configuration): Add indicator configuration information to handle action-less widget properly - (widget-state): Cosmetic change - (widget-update-configuration): Rename to widget-update-configuration! - (widget-update-configuration!): * Renamed from widget-update-configuration * Fix a wrong logic - (widget-update-state): Rename to widget-update-state! - (widget-update-state!): * Renamed from widget-update-configuration * Fix a wrong logic - (widget-debug-message): Fix a variable name mistake - (create-context): Follow the renaming of context-init-widgets - (widget-compose-live-branch): Fix an invalid invocation - (context-init-widgets): Rename to context-init-widgets! - (context-init-widgets!): * Renamed from context-init-widgets! * Add an error handling for re-initialization case * Allocate a widget_fallback for the context if no widgets specified * Reject invalid widget-id * Add a comment about the specification - (context-update-widgets): Follow the renaming of widget-update-configuration and widget-update-state - (context-propagate-widget-states): Modify the comment - (context-find-mode-widget): Fix broken code - (widget-action-id->mode-value): * Fix invalid variable name * Add error handling for invalid action-id - (widget-mode-value->action-id): Add error handling for out of range - (context-current-mode): * Fix an invalid invocation * Add error handling for the case mode-widget does not exist - (context-update-mode-list): * Fix the lacking mode-widget retrieving * Add fallback handling for the case mode-widget does not exist - (widget widget_fallback): New builtin widget - (action action_anthy_hiragana): Replace the indication-id figure_anthy_hiragana with figure_ja_hiragana - (action action_anthy_katakana, action action_anthy_hankana, action action_anthy_direct, action action_anthy_zenkaku, action action_anthy_roma, action action_anthy_kana): Remove old-state-id from handlers * test/test-action.scm - (testcase action): New testcase - (test indicator-new, test register-action, test fetch-action, test action-active?, test action-indicate, test actions-new, test activity-indicator-new, test register-widget, test widget-new, test widget-activity, test widget-activate!, test widget-configuration, test widget-state, test widget-update-configuration!, test widget-update-state!, test widget-debug-message, test indication-compose-label, test indication-compose-branch, test indication-compose-leaf, test widget-compose-live-branch, test context-init-widgets!, test context-update-widgets, test context-propagate-prop-label-update, test context-propagate-prop-list-update, test context-propagate-widget-states, test context-propagate-widget-configuration, test context-prop-activate-handler, test context-find-mode-widget, test widget-action-id->mode-value, test widget-mode-value->action-id, test context-current-mode, test context-update-mode, test context-update-mode-list, test context-mode-handler): New test * scm/property.scm - Remove * test/test-property.scm - Remove * scm/util.scm - (alist-replace!): Remove - (alist-replace): New procedure. Validated by test-util.scm * test/test-util.scm - (test alist-replace): New test * scm/Makefile.am - (SCM_FILES): * Remove property.scm * Add action.scm and load-action.scm 2004-11-04 YamaKen * Replace the comment of --with-canna 'with uim-canna' with 'with libcanna' to conform to the meaning of --with in autoconf 2004-11-04 TOKUNAGA Hiroyuki * helper/toolbar-common-gtk.c: Fixed C++ style pointer notations. 2004-11-04 TOKUNAGA Hiroyuki * helper/dict-canna.h: Fixed C++ style pointer notations. 2004-11-04 TOKUNAGA Hiroyuki * helper/helper-xfce4-applet.c: Removed an unused file. 2004-11-04 TOKUNAGA Hiroyuki * helper/Makafile.am: uim-dict need dict-util.h for build. 2004-11-04 TOKUNAGA Hiroyuki * helper/im-switcher-gtk.c: Fixed all C++ style pointer notations. 2004-11-04 TOKUNAGA Hiroyuki * helper/input-pad-ja.c: Fixed all C++ style pointer notations. 2004-11-04 TOKUNAGA Hiroyuki * gtk/gtk-im-uim.c: Fixed C++ style pointer notation 'gchar*'. This intends to fix the bug 1483. 2004-11-04 TOKUNAGA Hiroyuki * scm/direct.scm: Renamed from scm/default-im. * uim/uim.c: Replaced "default-im.scm" with "direct.scm". 2004-11-04 TOKUNAGA Hiroyuki scm/default-im.scm: replaced all words 'default' with 'direct' to avoid confusion. This changes will close the bug 1768. 2004-11-03 kzk * qt/quiminputcontextplugin/src/candidatewindow.h * qt/quiminputcontextplugin/src/candidatewindow.cpp * qt/quiminputcontextplugin-qt4/candidatewindow.h * qt/quiminputcontextplugin-qt4/candidatewindow.cpp - (layoutWindow): more proper handling of candidate window's location. In consideration of preedit's height. - (forceInside): removed * qt/quiminputcontextplugin/src/quiminputcontext.cpp * qt/quiminputcontextplugin-qt4/quiminputcontext.cpp - doesn't strdup the return value of uim_get_im_name, uim_get_language_name_from_locale, uim_get_im_short_desc 2004-11-03 TOKUNAGA Hiroyuki * gtk/gtk-im-uim.c: -(im_module_create): finalize im context object if uim_init failed. 2004-11-03 TOKUNAGA Hiroyuki * gtk/gtk-uim-uim.c: -(im_module_create): Get im_name by uim_get_default_im_name according to the current localename. -(im_module_list): List only 1 input method "uim". These changes aim to show one input method "uim" only by right click upon text widget. 2004-11-03 TOKUNAGA Hiroyuki * Makefile.am: -(releasetest): New rule. 2004-11-03 TOKUNAGA Hiroyuki * configure.ac: Removed unused compile flag XFCE4_PANEL. 2004-11-03 kzk * reneme qtkde-helper to uim-kdehelper * qt/uim-kdehelper/configure.in.in - release uim-kdehelper 0.1.0 * qt/uim-kdehelper/po/uim-qtkde-helper.pot - update pot file 2004-11-03 kzk * qt/qtkde-helper/src/pref/uimqtconfig - added * pref/uim-pref-qt.cpp - release all modules in exiting * pref/Makefile.am - add uimqtconfig to SUBDIRS * pref/uimconfig/kcmuimconfigmodule.cpp - remove unnecessary #include * pref/uim-pref-qt.h - Ditto 2004-11-03 TOKUNAGA Hiroyuki * scm/m17nlib.scm: - (m17nlib-on-key?): New key definition. - (m17nlib-off-key?): New key definition. - (m17nlib-proc-direct-state): New procedure. - (m17nlib-commit-raw): New procedure. - (m17nlib-press-key-handler): Call m17nlib-context-on to check the current input state is on or off. This changes implements on/off feature to uim's m17n-lib support. 2004-10-31 YamaKen * This commit adds the replacement of property.scm to the IM framework in accordance with recent discussions on uim@fdo. This user-operable action handling framework will eliminates all of property related handlings such as im-update-prop-list or im-update-prop-label from each input method. Input method developer can forget about the property (and legacy 'mode') feature except for context creation process. The term 'widget' used in this framework is still under discussion. It may be renamed in accordance with result of the discussion. http://freedesktop.org/pipermail/uim/2004-October/000731.html This framework will replace property handling codes in each IMs once the discussion has been end and the implementation has been validated by test. * scm/action.scm - (indication-rec-spec, action-rec-spec, indicator-rec-spec, widget-rec-spec, action-list, widget-proto-list): New variable - (record indication, record action, record indicator, record widget): New record - (indicator-new-internal): New alias procedure - (indicator-set-id!, indicator-set-activity-pred!, indicator-set-activate-handler!): New placeholders to disable the 3 automatically defined procedures - (indicator-new, register-action, fetch-action, action-active?, action-indicate, actions-new, activity-indicator-new, fallback-indication, register-widget, widget-new, widget-activity, widget-activate!, widget-configuration, widget-state, widget-update-configuration, widget-update-state, widget-debug-message, indication-compose-label, indication-compose-branch, indication-compose-leaf, widget-compose-live-branch, context-init-widgets, context-update-widgets, context-propagate-widget-states, context-propagate-widget-configuration, context-find-mode-widget, widget-action-id->mode-value, widget-mode-value->action-id, context-current-mode): New procedure - (context-propagate-prop-label-update, context-propagate-prop-list-update, context-prop-activate-handler, context-update-mode, context-update-mode-list, context-mode-handler): Rewrite implementations in accordance with the new action-based framework - (context-init-prop-list, context-propagate-prop-configuration, context-propagate-prop-state, prop-list-find-mode-prop, prop-state-compose-branch, prop-state-compose-label, prop-state-compose-leaf, property-activate-state!, property-compose-live-branch, property-debug-message, property-definition-list, property-definition-rec-spec, property-mode-value->prop-state-id, property-new, property-new-internal, property-next-state, property-prop-state-id->mode-value, property-transit-state!, property-will-state-transit?, register-property, record prop-state, record property, record property-definition): Remove - (context-rec-spec, record context, create-context, invoke-handler): New implementations for im.scm. They will be moved into im.scm once the switching to action.scm has been started - (anthy-widgets, default-widget_anthy_input_mode, default-widget_anthy_kana_input_method, anthy-input-mode-actions, anthy-kana-input-method-actions, anthy-prepare-activation, anthy-im-name-indication, anthy-exec-im-switcher-indication, anthy-configure-widgets, anthy-context-new): New implementations and definitions for anthy.scm. They will be moved into anthy.scm once the switching to action.scm has been started - (anthy-property-id-list, default-prop_anthy_input_mode, default-prop_anthy_kana_input_method): Remove * scm/load-action.scm - New file. This loads action.scm in accordance with platform configuration 2004-10-30 YamaKen * scm/action.scm - New file to replace property.scm with. Just a copy of property.scm at now * scm/util.scm - (alist-replace!): New procedure. Not yet tested * scm/im.scm - Remove a comment * scm/anthy.scm - Modify a comment 2004-10-30 Yusuke Tabata * uim/skk-dic.c (do_search_line) : rename from do_search. And some comments. 2004-10-30 Yusuke Tabata * AUTHORS : add Ashie-san's entry. ;) 2004-10-28 kzk * qt/quiminputcontext/src/quiminputcontext.cpp - fixed typo of previous commit... 2004-10-28 kzk * qt/quiminputcontextplugin/src/quiminputcontext.cpp - use uim_get_language_name_from_locale() function * qt/quiminputcontextplugin/src/quiminputcontext.h - #include 2004-10-28 kzk * Code Optimization - improving use of iterator * qt/qtkde-helper/src/candwin/uim-candwin-qt.cpp - (strParse): moving end() outside of the for declaration * qt/quiminputcontextplugin/src/quiminputcontext.cpp - (getPreeditString, getPreeditCursorPosition, getPreeditSelectionLength) : Ditto * qt/quiminputcontextplugin-qt4/quiminputcontext.cpp - (getPreeditString, getPreeditCursorPosition, getPreeditSelectionLength) : Ditto * qt/qtkde-helper/src/common/uimstateindicator.cpp - (propListUpdate): use iterator instead of while(!str.isEmpty()) 2004-10-27 Etsushi Kato * xim/main.cpp (main) : Prevent startup hang. 2004-10-27 kzk * qt/quiminputcontextplugin/src/candidatewindow.h - not to use postfix-increment for iterator (optimization) * qtkde-helper/src/candwin/uim-candwin-qt.h - Ditto 2004-10-26 Etsushi Kato * xim/xim.h (class XimIC) : Add private member m_keyState. * xim/ximtrans.cpp (Connection::xim_open) : Handle KeyRelease filter event. * xim/ximic.cpp (XimIC::OnKeyEvent) : Use internal m_keyState. (XimIC::get_ic_atr) : Send KeyReleaseMask. * xim/ximim.cpp (XimIM_impl::forward_event) : Handle KeyRelease event. * xim/ximserver.cpp (get_im_lang_from_engine) : Indentation fix. (InputContext::pushKey) : Handle KeyRelease event with uim_release_key(). (keyState::keyState) : New default constructor. keyState::keyState(keyEventX *x) is deleted. (keyState::~keyState) : New destructor. (keyState::check_key) : New function. Mostly moved from deleted keyState::keyState(keyEventX *x). Revise mod1-5 modifiers using revise_mod(). Handle XK_Meta_L and XK_Meta_R. Store keypress or keyrelease state. Also store modifier key state. (keyState::revise_mod) : Revise modifier value according to stored key state. * xim/convdisp.cpp (ConvdispRw::update_preedit) : Indentation fix. (ConvdispOv::layoutCharEnt) : Plug leak. 2004-10-26 kzk * qt/qtkde-helper/src/pref - add the skelton part of "uim-pref-qt" This dialog reuses KControl's module system 2004-10-26 YamaKen * doc/KEY - Add FAQ section - Add the exact match issue to FAQ section - Remove signature 2004-10-26 kzk * qt/qtkde-helper/src/toolbar/draghandler.cpp - have fixed width. This problem is reported by AWASHIRO Ikuya. Thank you! * qt/qtkde-helper/src/src/switcher/im-switcher-qt.h - (reloadImList): new function * qt/qtkde-helper/src/src/switcher/im-switcher-qt.cpp - (reloadImList): new function - reverse OK button and Cancel button. This is also reported by AWASHIRO Ikuya. Thank you! * qt/qtkde-helper/src/common/quimhelpertoolbar.cpp - fixed indent 2004-10-25 YamaKen * doc/COMPATIBILITY - Update 'New logical order string API for Scheme (ustr)' * scm/ustr.scm - Modify a comment 2004-10-25 Takuro Ashie * helper/dict-anthy-gtk.c: Removed old file. 2004-10-25 Takuro Ashie * po/POTFILES.in, po/uim.pot, po/ja.po helper/dict-anthy.c, helper/dict-main-gtk.c, helper/dict-word-list-win-gtk.c, helper/dict-word-win-gtk.c: Translate messages into Japanese. 2004-10-25 YamaKen * This commit adds proper rkc restoration on anthy-cancel-conv. The requirement had been reported in [Anthy-dev 1195] by Konosuke Watanabe. Thanks. * scm/rk.scm - (rk-peek-terminal-match): New API procedure. Returns the rule entry that exactly matches with current pending key sequence. rkc will not be altered. i.e. rk-push-key-last! without side effect - (record rk-context): Fix invalid boolean default values - (rk-push-key-last!): * Mark as API * Add a comment about the procedure name. I suggest rk-terminate-input! * doc/COMPATIBILITY - Add a new entry 'rk-push-key-last! without side effect' * scm/anthy.scm - (anthy-make-whole-string): * Remove the side effect which alters rkc * Revert the change in r1538 which alters anthy-context-preconv-ustr - (anthy-begin-conv): * Remove rk-flush to restore proper rkc when anthy-cancel-conv performed * Describe above intention as comment 2004-10-24 YamaKen * scm/anthy.scm - (anthy-init-lib-ok?): Rename to anthy-lib-initialized? - (anthy-lib-initialized?): Renamed from anthy-init-lib-ok? - (anthy-context-new): Follow the renaming 2004-10-24 YamaKen * test/test-ustr.scm - (test ustr-append!, test ustr-append! #2, test ustr-prepend!, test ustr-prepend! #2): Move the position in the file 2004-10-24 YamaKen * scm/ustr.scm - All changes are validated by test-ustr.scm - (ustr-set-nth!, ustr-ref, ustr-cursor-at-beginning?, ustr-cursor-at-end?): New procedure - (ustr-cursor-set-frontside!, ustr-cursor-set-backside!): * New procedure * Returns whether the operation has been succeeded or not - (ustr-set-cursor-pos!): Change the behavior on out of range as returns whether the operation has been succeeded or not rather than raise error - (ustr-cursor-delete-frontside!, ustr-cursor-delete-backside!): Change the behavior as returns whether the operation has been succeeded or not - (ustr-nth): Rewrite the implementation using ustr-ref for efficiency - (ustr-append!, ustr-prepend!): Move the position in the file * test/test-ustr.scm - (test ustr-set-nth!, test ustr-ref, test ustr-cursor-at-beginning?, test ustr-cursor-at-end?, test ustr-cursor-set-frontside!, test ustr-cursor-set-backside!): New test - (test usr-nth): Add error checkings for invalid range - (test ustr-set-cursor-pos!): Follow the specification change - (test ustr-cursor-move!, test ustr-cursor-delete-frontside!, test ustr-cursor-delete-backside!): Follow the implicit specification change caused by ustr-set-cursor-pos! * scm/anthy.scm - (anthy-context-rec-spec): * Remove 'index-list' and 'cur-seg' to replace with 'segments' * Add 'segments' as ustr of candidate indices * Fix invalid default values - (anthy-context-new): * Fix broken anthy-lib existence check caused by a typo over sexp * Simplify the initialization of ac-id * Add initialization of anthy-context-segments - (anthy-flush, anthy-converting-state-preedit, anthy-get-commit-string, anthy-commit-string, anthy-resize-segment, anthy-move-candidate, anthy-get-candidate-handler): Follow the introduction of anthy-context-segments - (anthy-begin-conv): * Add ac-id validity check moved from anthy-proc-input-state-with-preedit * Simplify - (anthy-proc-input-state-with-preedit): Move ac-id validity check to anthy-begin-conv - (anthy-cancel-conv): Add anthy-context-segments handling - (anthy-input-state-preedit): * Follow the introduction of anthy-context-segments * Suppress redundant empty segments - (anthy-correct-segment-cursor): New procedure - (anthy-move-segment): * Follow the introduction of anthy-context-segments * Add anthy-reset-candidate-window - (anthy-proc-converting-state, anthy-set-candidate-index-handler): * Follow the introduction of anthy-context-segments * Simplify with new anthy-move-segment - (anthy-release-key-handler): Cosmetic change - (anthy-release-handler): Replace let* with let 2004-10-24 TOKUNAGA Hiroyuki * scm/anthy.scm: - (anthy-make-whole-string): Store residual-kana to preconv-str if possible. 2004-10-24 YamaKen * scm/anthy.scm - (anthy-context-rec-spec): Rename the inappropriate member name 'state' to 'converting' - (anthy-flush, anthy-begin-input, anthy-update-preedit, anthy-begin-conv, anthy-press-key-handler): Follow the renaming of anthy-context-state - (anthy-compose-state-preedit): Rename to anthy-converting-state-preedit - (anthy-converting-state-preedit): Rename from anthy-compose-state-preedit - (anthy-proc-compose-state): Rename to anthy-proc-converting-state - (anthy-proc-converting-state): Rename from anthy-proc-compose-state - (anthy-cancel-conv): New procedure - (anthy-proc-converting-state): Simplify with anthy-cancel-conv 2004-10-23 YamaKen * scm/anthy.scm - (anthy-move-segment): Comsmetic change - (anthy-resize-segment, anthy-move-candidate): Simplify 2004-10-23 kzk * qt/qtkde-helper/src/candwin/uim-candwin-qt.cpp - (moveCand): fix last candidate is hidden in size changing * qt/qtkde-helper/src/switcher/im-switcher-qt.h - add Copyright * qt/qtkde-helper/src/switcher/im-switcher-qt.cpp - add Copyright - change default size 2004-10-23 kzk * qt/qtkde-helper/src/candwin/uim-candwin-qt.cpp - (moveCand): consider screen geometry 2004-10-23 kzk * qt/qtkde-helper/src/common/uimstateindicator.cpp - (propListUpdate): add ToolTip to the button - delete unnecessary spaces 2004-10-23 kzk * qt/qtkde-helper/src/candwin/uim-candwin-qt.cpp - (activateCand): more empty check of given String - (moveCand): Ditto * qt/qtkde-helper/src/common/uimstateindicator.cpp - (propListUpdate): Ditto 2004-10-22 kzk * This is the initial commit of uim-im-switcher-qt, the Qt version of im switching tool. * qt/qtkde-helper/src/switcher/im-switcher-qt.h * qt/qtkde-helper/src/switcher/im-switcher-qt.cpp * qt/qtkde-helper/src/switcher/Makefile.am - new files * qt/qtkde-helper/src/Makefile.am - add switcher directory to subdirs * qt/qtkde-helper/src/common/quimhelpertoolbar.cpp - use "uim-im-switcher-qt" instead of "uim-im-switcher" * helper/im-switcher-gtk.c - fixed typo * helper/input-pad-ja.c - (create_hiragana_tab): renamed from (create_tab1) - (create_katakana_tab): renamed from (create_tab2) - (create_eisu_tab): renamed from (create_tab3) 2004-10-22 Etsushi Kato * xim/locale.cpp (is_locale_included) : Indentation fixes. * xim/ximserver.cpp (InputContext::createUimContext) : Cosmetic changes. (changeContext) : Update comment. * xim/ximserver.h : Add comment about get_first_locale(). 2004-10-22 YamaKen * scm/anthy.scm - (anthy-begin-conv): Simplify 2004-10-22 YamaKen * scm/anthy.scm - (anthy-compose-state-preedit): Suppress garbage null segments 2004-10-22 YamaKen * scm/util.scm - (context-update-preedit): New procedure * scm/anthy.scm - (anthy-update-preedit): Simplify with context-update-preedit - (anthy-pushback-separator): Remove - (anthy-separator): New procedure - (anthy-pushback-preedit-segments): Remove. Merge into anthy-compose-state-preedit - (anthy-compose-state-preedit, anthy-input-state-preedit): Return segment-list instead of pushback directly 2004-10-22 YamaKen * scm/util.scm - All changes are validated by test-util.scm - (string-list-concat, string-find): Simplify - (truncate-list): Replace the implementation with list-head's - (list-head): Simplify using truncate-list - (list-tabulate, iota): New procedure. Validated by test-util.scm - (make-list): Simplify using list-tabulate - (filter): Replace the implementation with iterate-lists - (filter-map): * Replace the implementation with iterate-lists * Become multiple lists acceptable - (multi-segment-make-index-list): Simplify using make-list - (multi-segment-make-index-list-rec): Remove. Optimize out * test/test-util.scm - (test list-tabulate, test iota): New test - (test make-list): Add an error case - (test filter-map): Add tests for multiple lists - (testcase util multi-segment utils): New testcase - (test multi-segment-make-index-list): New test - (test multi-segment-opposite-kana): New test * scm/anthy.scm - All changes are refactoring - (anthy-append-string): Remove because unnecessary - (anthy-begin-conv, anthy-move-candidate, anthy-resize-segment): Cosmetic changes - (anthy-proc-input-state-no-preedit, anthy-proc-input-state-with-preedit): Replace anthy-append-string with ustr-insert-elem! - (anthy-pushback-preedit-segment-rec): Remove. Replaced with anthy-pushback-preedit-segments - (anthy-pushback-separator): New procedure - (anthy-pushback-preedit-segments): New procedure. Replaces anthy-pushback-preedit-segment-rec and simplifies - (anthy-get-commit-string, anthy-commit-string): Simplify. The args 'idx' and 'nseg' are removed - (anthy-compose-state-preedit, anthy-do-commit): Simplify - (anthy-move-segment): Rename the inappropriate arg name 'dir' with 'offset' - (anthy-reset-handler): Add a comment * doc/COMPATIBILITY - Modify an English expression * scm/ustr.scm - Remove outdated release information 2004-10-22 TOKUNAGA Hiroyuki * configure.ac: uim-canna doesn't build by default. 2004-10-21 YamaKen * doc/COMPATIBILITY - Add a new entry 'New logical order string API for Scheme (ustr)' - Add a new entry 'New locale based IM-name retrieving API' 2004-10-21 Etsushi Kato * xim/ximserver.cpp (InputContext::createUimContext) : Use combination of uim_get_default_im_name() and uim_get_im_name_for_locale() for clients with legacy encoding. 2004-10-21 YamaKen * This commit adds a im-name retrieving API function. See following message thread http://freedesktop.org/pipermail/uim/2004-October/000692.html * uim/uim.h - (uim_get_im_name_for_locale): New API function * uim/uim.c - (uim_get_im_name_for_locale): New function * scm/im.scm - (uim-get-im-name-for-locale): New procedure 2004-10-21 Etsushi Kato * xim/locale.cpp : Update and fix typo in comment. * xim/ximtrans.cpp : Ditto. * xim/ximic.cpp : Ditto. * xim/ximserver.cpp : Ditto. * xim/convdisp.cpp : Ditto. (create_default_fontset) : Compare zh_TW:zh_HK explicitly. 2004-10-21 YamaKen * scm/anthy.scm - Require util.scm and ustr.scm - (anthy-context-rec-spec): * Remove left-string, right-string, left-raw-string, right-raw-string, and unused-13th in the comment * Add preconv-ustr and raw-ustr - (anthy-context-new): Add initialization of preconv-ustr and raw-ustr - (anthy-flush): * Remove re-initialization for left-string, right-string, left-raw-string and right-raw-string * Add re-initialization for preconv-ustr and raw-ustr - (anthy-make-whole-string, anthy-make-whole-raw-string, anthy-append-string, anthy-proc-input-state-no-preedit, anthy-has-preedit?, anthy-proc-input-state-with-preedit, anthy-proc-input-state-with-preedit, anthy-input-state-preedit): Simplify with ustr 2004-10-21 YamaKen * qt/qtkde-helper/src/common/uimstateindicator.cpp - (tmpButton): Rename to a meaningful name 'fallbackButton' - (fallbackButton): Renamed from tmpButton - (UimStateIndicator): Follow the renaming of tmpButton - (propListUpdate): * Follow the renaming of tmpButton * Raname 'tmpList' with a meaningful name 'fields' - (propLabelUpdate): Raname 'tmpList' with a meaningful name 'fields' * qt/qtkde-helper/src/common/quimhelpertoolbar.h * qt/qtkde-helper/src/common/quimhelpertoolbar.cpp - Replace CRLF in each line end with LF 2004-10-21 kzk * cleaning qtkde-helper's Makefile.am * qtkde-helper/src/toolbar/Makefile.am - add noinst_HEADERS - link $(LIB_KDECORE) for i18n String * qtkde-helper/src/applet/Makefile.am - delete "message:" rule 2004-10-21 kzk * This commit aims to gettextize qtkde-helper * qtkde-helper/po/Makefile.am - new file * qtkde-helper/po/uim-qtkde-helper.pot - new file * qtkde-helper/src/common/quimhelpertoolbar.cpp - add i18n string 2004-10-21 YamaKen * scm/Makefile.am - (SCM_FILES): Add ustr.scm and property.scm * scm/property.scm - (register-property): Fix update of property-definition-list - (record prop-state): Rename tooltip with short-desc to remove the assumption about the purpose - (property-new): Add error handling against invalid prop-id - (property-next-state): * Fix a wrong procedure invocation * Show error message only when verbose level >= 5 - (property-will-state-transit?, property-transit-state!): Fix a wrong procedure invocation - (prop-state-compose-leaf): * Fix a wrong procedure invocation * Replace prop-state-tooltip with prop-state-short-desc - (property-compose-live-branch): Fix wrong procedure invocations - (register-property prop_anthy_input_mode): Fix wrong procedure invocations * test/test-property.scm - New file - Some tests are not yet written - (testcase property): New testcase - (test register-property, test property-new, test property-next-state property-will-state-transit?, test property-transit-state!, test property-activate-state!, test property-debug-message, test prop-state-compose-label, test prop-state-compose-branch, test prop-state-compose-leaf, test property-compose-live-branch): New test 2004-10-21 kzk * This commit aims to prevent excessive update of im-switcher exec button. For future, many buttons like exec uim-dict will be added. Updating these buttons on each list updating is ugly. * src/common/quimhelpertoolbar.h * src/common/quimhelpertoolbar.cpp - (checkHelperConnection, parseHelperStr, propListUpdate, propLabelUpdate, slotStdinActivated, insertHelperItem, slotMenuActivated): moved to class UimStateIndicator * src/common/uimstateindicator.h * src/common/uimstateindicator.cpp - new files - class UimStateIndicator deals with uim's helper message handling. In contrast, QUimHelperToolbar only deals with buttons which aren't affected by helper messages. - (checkHelperConnection, parseHelperStr, propListUpdate, propLabelUpdate, slotStdinActivated, insertHelperItem, slotMenuActivated): moved from class QUimHelperToolbar - remove codes for debugging * src/common/Makefile.am - updated * src/applet/uimhelperapplet.h * src/applet/uimhelperapplet.cpp - (setPopupDirectionFromPosition): deleted now in no use 2004-10-21 Etsushi Kato * xim/locale.cpp (find_localename_from_encoding) : Removed. (UTF8_Locale::uStringToCtext) : No need to call setlocale() here, since InputContext::createUimContext() and InputContext::focusIn() now handle it properly. (compose_localenames_from_im_lang) : Renamed from compose_localename_from_im_lang() since it may compose locale name list like zh_TW:zh_HK. (is_locale_included) : New function to check whether locale name is included within locale name list. (get_first_locale) : New function. Return first entry of locale name list. * xim/xim.h : Add #include . Thanks to KIHARA Hideto. (class XimIM) : Add new member function set_lang_region() and get_lang_region(). Add new protected member variable mLangRegion. (class icxatr) : Add new member function set_locale_name(). Change font_set_name as private member. Add new member m_locale. (class XimIC) : Add new member function get_lang_region(). * xim/ximtrans.cpp (Connection::xim_open) : Get locale (lang and region) information of client and store it. * xim/ximic.cpp (struct FSCache) : Add new member locale. (get_font_set) : Check locale information of fontset. (release_font_set) : Ditto. (icxatr::set_locale_name) : Store locale name information. (XimIC::XimIC) : Get locale name information from InputContext and store it in m_xatr. (XimIC::force_send_packet) : Explicitly write down dynamic_cast. * xim/ximim.cpp (XimIM::set_lang_region) : New function. Store locale (lang and region) information of client. (XimIM::get_lang_region) : New function. Return lang and region information of client. * xim/main.cpp (init_supported_locales) : Handle locale name list properly. Plug leak. (send_im_list) : Handle locale name list properly. (main) : Don't call init_convdisp(). * xim/ximserver.cpp : Add #include . (InputContext::createUimContext) : Handle client's locale properly. Store working locale name of the context. (InputContext::changeContext) : Handle locale name list properly. Set locale name information into mConvdisp. (InputContext::focusIn) : Call setlocale() with proper locale name. (InputContext::get_locale_name) : New function. Return working locale name of the context. * xim/convdisp.cpp : Remove global default fontsets. (init_convdisp) : Removed. (create_default_fontset) : New function to create default fontset considering with locale information for root-style preedit window. (choose_default_fontset) : Use locale name as a argument and call create_default_fontset(). (class PeWin) : Now constructor uses locale name information. (class PeLineWin) : Ditto. (class PeOvWin) : Ditto. (class ConvdispOv) : Rename set_lang() as set_im_lang(). (Convdisp::Convdisp) : Store locale name information of its InputContext. (Convdisp::set_locale_name) : New function. * xim/ximserver.h : Add some new prototype from xim/locale.c. (class InputContext) : Add new member function get_locale_name() and new variable mLocaleName. * xim/convdisp.h (class Convdisp) : Rename set_lang() as set_im_lang(). Add set_locale_name(). Add mLocaleName. (get_font_set) : Use locale name as a argument. 2004-10-20 Takuro Ashie * configure.ac: Marked uim-dict as broken. 2004-10-20 Takuro Ashie * helper/Makefile.am, helper/dict-anthy.c, helper/dict-anthy.h helper/dict-canna.c, helper/dict-canna.h, helper/dict-cclass-dialog.c helper/dict-cclass-dialog.h, helper/dict-dict.c, helper/dict-dict.h helper/dict-main-gtk.c, helper/dict-main-gtk.h, helper/dict-util.c helper/dict-util.h, helper/dict-word-list-view-gtk.c helper/dict-word-list-view-gtk.h, helper/dict-word-list-win-gtk.c helper/dict-word-list-win-gtk.h, helper/dict-word-win-gtk.c helper/dict-word-win-gtk.h, helper/dict-word.c, helper/dict-word.h: - Added new dictionary management tool. - It's based on sumika, and many code improvements are made. - Currentry, it support only Anthy. - It's still broken. To complete this work, we should modify Anthy's API. It's too poor and buggy for GUI use. 2004-10-18 kzk * Refactoring of PopupMenu handling * qt/qtkde-helper/src/common/quimhelpertoolbar.cpp * qt/qtkde-helper/src/common/quimhelpertoolbar.h - (class QHelperButton): deleted - (propListUpdate): use QToolButton's native PopupMenu handling instead of original one. This seems more general way than before. 2004-10-18 kzk * qt/qtkde-helper/src/common/quimhelpertoolbar.cpp - (propListUpdate): use pressed() instead of clicked(). This is the way official QPushButton does. This will prevent the problem which popup menu is hidden immediately (this is reported by UEYAMA-san, thank you) 2004-10-18 kzk * qt/quiminputcontextplugin/src/candidatewindow.cp * qt/quiminputcontextplugin/src/candidatewindow.h - (slotCandidateSelected): remove wrong "const" qualifier * qt/qtkde-helper/src/candwin/uim-candwin-qt.h * qt/qtkde-helper/src/candwin/uim-candwin-qt.cpp - (slotCandidateSelected): remove wrong "const" qualifier - handle candwin's position correctly - handle charset correctly (previously, message is always supposed to be UTF-8 encoded. this bug is reported by UEYAMA-san. thank you!) 2004-10-18 Etsushi Kato * xim/locale.cpp : Explicitly use "im_lang" instead of "lang" as argument names. (class UTF8_Locale) : Rename set_localename_from_lang() into set_localename_from_im_lang(). Remove compose_localename_from_lang() from the member. (compose_localename_from_im_lang) : Move from class UTF8_Locale and renamed. * xim/connection.h : Cosmetic changes. * xim/ximic.cpp (get_font_set) : Remove static. * xim/ximserver.cpp : Use renamed member variables, mIMName and mIMLang (XimServer::get_im_lang_from_engine) : Change to set mEngineName in createUimContext(). (XimServer::createUimContext) : Set mEngineName here. * xim/main.cpp : Cosmetic changes. * xim/convdisp.cpp (create_default_fontset) : Create default fontset mainly for UTF-8 locale used with root-style preedit window. (choose_default_fontset) : Use encoding information, and set default fontset only for legacy encodings. * xim/canddisp.cpp : Include "config.h" instead of . * xim/ximserver.h (class XimServer) : Rename private variable mName and mLang into mIMName and mIMLang. * xim/convdisp.h : Add prototype get_font_set(). * xim/xdispatch.h : Cosmetic change. 2004-10-18 kzk * qt/qtkde-helper/src/common/quimhelpertoolbar.cpp - (slotStdinActivated): fix the crash of wrong message parsing 2004-10-18 kzk * qt/qtkde-helper/src/toolbar/draghandler.h * qt/qtkde-helper/src/candwin/uim-candwin-qt.h - prevent reincluding header file 2004-10-18 kzk * release UimQt 0.2.0 and qtkde-helper 0.1.0-beta1 * add "const" qualifier to many functions * qt/quiminputcontextplugin/configure.in.in - release 0.2.0 (require uim 0.4.4) * qt/quiminputcontextplugin/qhelpermanager.h * qt/quiminputcontextplugin/qhelpermanager.cpp - (parseHelperStr): add const qualifier - (parseHelperStrImChage): Ditto * qt/quiminputcontextplugin/quiminputcontext.h * qt/quiminputcontextplugin/quiminputcontext.cpp - (commitString, pushbackPreeditString): Ditto * qt/quiminputcontextplugin/candidatewindow.h * qt/quiminputcontextplugin/candidatewindow.cpp - (setCandidates): Ditto (much optimized!) - (slotCandidateSelected): Ditto * qt/quiminputcontextplugin-qt4/qhelpermanager.h * qt/quiminputcontextplugin-qt4/qhelpermanager.cpp - (parseHelperStr, parseHelperStrImChange): Ditto * qt/quiminputcontextplugin-qt4/quiminputcontext.h * qt/quiminputcontextplugin-qt4/quiminputcontext.cpp - (commitString, pushbackPreeditString): Ditto * qt/quiminputcontextplugin-qt4/candidatewindow.h * qt/quiminputcontextplugin-qt4/candidatewindow.cpp - (setCandidates): Ditto * qt/qtkde-helper/configure.in.in - release 0.1.0-beta1 * qt/qtkde-helper/src/candwin/uim-candwin.h * qt/qtkde-helper/src/candwin/uim-candwin.cpp - (activateCandm selectCand, moveCand, slotCandidateSelected, strParse): add const qualifier * qt/qtkde-helper/src/common/quimhelpertoolbar.h * qt/qtkde-helper/src/common/quimhelpertoolbar.cpp - (parseHelperStr, propListUpdate, propLabelUpdate): Ditto 2004-10-18 kzk * qt/qtkde-helper/bootstrap - add "release" option * qt/qtkde-helper/src/candwin/uim-candwin-qt.cpp - (activateCand): handle charset correctly 2004-10-18 kzk * qt/qtkde-helper/src/applet/uimhelperapplet.h - remove (resizeEvent) * qt/qtkde-helper/src/applet/uimhelperapplet.cpp - remvoe (resizeEvent) - fix applet size handling (fit for the contents). 2004-10-16 Masanari Yamamoto * fep/uim-fep.c, README.ja - (get_default_im_name): delete UIM_FEP environment variable - (usage): add short description - (init_agent): check im name * fep/str.c - (get_enc) replace LC_ALL, LC_CTYPE, LANG with setlocale(LC_CTYPE, "") 2004-10-16 YamaKen * This commit makes ustr ready to use * uim/slib.c - (my_err): Disable backtrace if (siod_verbose_level < 5) for valid interaction between uim-test-util and uim-sh * scm/util.scm - (list-head, list-tail): Add lower bound range checking for ustr-cursor-move! * test/test-util.scm - Add copyright header - (list-head, list-tail): Add lower bound range checking * scm/ustr.scm - Modify some comments about usage - All procedures has been validated by test-ustr.scm and ready to use - (ustr=): New procedure - (ustr-copy!, ustr-nth, ustr-cursor-move-beginning!, ustr-cursor-delete-frontside!, ustr-cursor-delete-backside!, ustr-insert-elem!): Fix invalid argument passing - (ustr-set-cursor-pos!): * Fix wrong procedure name on calling * Error handling has implicitly been added by list-tail and list-head - (ustr-cursor-move!): Error handling has implicitly been added by ustr-set-cursor-pos! - (ustr-cursor-move-backward!, ustr-cursor-move-forward!): Fix invalid list reorganization - (ustr-cursor-frontside, ustr-cursor-backside): * Fix returning wrong opposite side element * Add error handling about range checking * test/test-ustr.scm - New file - (testcase ustr): New testcase - (test ustr-new, test ustr-whole-seq, test ustr-former-seq, test ustr-latter-seq, test ustr-set-whole-seq!, test ustr-set-former-seq!, test ustr-set-latter-seq!, test ustr-empty?, test ustr-clear!, test ustr-clear-former!, test ustr-clear-latter!, test ustr-copy!, test ustr=, test ustr-length, test ustr-nth, test map-ustr-whole, test map-ustr-former, test map-ustr-latter, test append-map-ustr-whole, test append-map-ustr-former, test append-map-ustr-latter, test string-append-map-ustr-whole, test string-append-map-ustr-former, test string-append-map-ustr-latter, test ustr-cursor-pos, test ustr-set-cursor-pos!, test ustr-cursor-move!, test ustr-cursor-move-backward!, test ustr-cursor-move-forward!, test ustr-cursor-move-beginning!, test ustr-cursor-move-end!, test ustr-cursor-frontside, test ustr-cursor-backside, test ustr-cursor-delete-frontside!, test ustr-cursor-delete-backside!, test ustr-insert-elem!, test ustr-insert-seq!, test ustr-insert-seq! #2, test ustr-append!, test ustr-append! #2, test ustr-prepend!, test ustr-prepend! #2): New test * test-custom.scm * test-i18n.scm * test-im.scm * test-intl.scm * test-key.scm * test-slib.scm * test-uim-test-utils.scm * test-uim-util.scm * test-util.scm - Add copyright header 2004-10-16 Etsushi Kato * xim/convdisp.cpp (set_lang) : Disable fontset change of over-the-spot style preedit area upon im-switch. 2004-10-15 Etsushi Kato * scm/skk.scm (skk-use-with-vi?) : New config for comfortable use of skk with vi. (skk-vi-escape-key?) : New key definition. (skk-proc-state-direct-no-preedit) : Check skk-use-with-vi? first and if this is #t, change its state into skk-state-latin with escape key. (skk-proc-state-wide-latin) : Ditto. 2004-10-15 kzk * Rename "uim-helper-candwin-qt" to "uim-candwin-qt" * qt/qtkde-helper/src/candwin/uim-candwin-qt.h - renamed from uim-helper-candwin-qt.h * qt/qtkde-helper/src/candwin/uim-candwin-qt.cpp - renamed from uim-helper-candwin-qt.cpp * qt/qtkde-helper/src/candwin/Makefile.am - modified 2004-10-15 kzk * This commit aims to add draggable function to uim-toolbar-qt * qt/qtkde-helper/src/toolbar/draghandler.h * qt/qtkde-helper/src/toolbar/draghandler.cpp - the indicator by which users can drag whole toolbar - (class UimToolbarDraggingHandler): new class * qt/qtkde-helper/src/toolbar/uim-toolbar-qt.cpp - renamed from uim-helper-toolbar-qt.cpp - add draghandler * qt/qtkde-helper/src/toolbar/Makefile.am - modified 2004-10-15 Etsushi Kato * xim/locale.cpp : Add #include . 2004-10-15 TOKUNAGA Hiroyuki * configure.ac: Release 0.4.5-beta1 2004-10-15 TOKUNAGA Hiroyuki * scm/anthy.scm: - (anthy-latin-key?): Added control-j. 2004-10-15 Etsushi Kato * xim/ximserver.cpp (check_modifier) : Fix typo. 2004-10-14 YamaKen * scm/util.scm - (list-head, list-tail): * Add error handling for out of range * Validated by test-util.scm and ready to use - (make-list, zip, append-reverse, find, any, every, fold, remove, alist-delete): Validated by test-util.scm and ready to use * test/test-util.scm - (test list-head, test list-tail, test make-list, test zip, test find, test any, test every, test fold, test remove, test alist-delete): New test 2004-10-14 YamaKen * This commit adds a preliminary 'ustr' object. But it is not yet used by current uim implementation, and not yet tested. it will be incorporated into various scm files after next stable uim has been released. 'ustr' stands for 'universal string'. It represents a logical order string of abstract elements for general purpose. Since it does not assume any specific type of the elements, we can reuse it against several generations of composition table architectures such as rk or hk. It should be isolated from composition table architecture to keep flexibility, reusability and simplicity. ustr provides only basic string operations. Developers, take a look into the code (but do not review, it's not validated by test yet) and tell me your requirements or opinions. I'm going to redesign of composition table architecture based on this to simplify each IM codes to prepare introduction of more complex IM features. I'll post the suggestion to the mailinglist after next stable release. * scm/ustr.scm - New file - All procedures are not yet validated by test - (ustr-rec-spec): New variable - (record ustr): New record - (ustr-new-internal): New alias for define-record'ed ustr-new - (ustr-new, ustr-whole-seq, ustr-former-seq, ustr-latter-seq, ustr-set-whole-seq!, ustr-set-former-seq!, ustr-set-latter-seq!, ustr-empty?, ustr-clear!, ustr-clear-former!, ustr-clear-latter!, ustr-copy!, ustr-length, ustr-nth, map-ustr-whole, map-ustr-former, map-ustr-latter, append-map-ustr-whole, append-map-ustr-former, append-map-ustr-latter, string-append-map-ustr-whole, string-append-map-ustr-former, string-append-map-ustr-latter, ustr-cursor-pos, ustr-set-cursor-pos!, ustr-cursor-move!, ustr-cursor-move-backward!, ustr-cursor-move-forward!, ustr-cursor-move-beginning!, ustr-cursor-move-end!, ustr-cursor-frontside, ustr-cursor-backside, ustr-cursor-delete-backside!, ustr-cursor-delete-frontside!, ustr-insert-elem!, ustr-insert-seq!, ustr-append!, ustr-prepend!): New procedure * scm/util.scm - All procedures added by this commit are not yet validated by test - (iterate-lists): New procedure for local use - (make-list, zip, append-reverse, any, every, remove, alist-delete): New SRFI procedure - (fold): Make workable - (filter, filter-map): Add an alternative implementation as comment. It will replace old one after next stable release * scm/Makefile.am - (SCM_FILES): Add ustr.scm and property.scm into a comment as placeholder * scm/property.scm - Modify a comment about release plan 2004-10-13 Etsushi Kato * xim/locale.cpp (find_localename_from_encoding) : Support zh_CN.gb2312 and zh_HK.big5hkscs locale. 2004-10-13 Etsushi Kato * xim/ximserver.cpp (InputContext::pushback_preedit_string) : Recover wrong change in r1432, and add comment about this. 2004-10-13 Etsushi Kato * xim/main.cpp (remove_current_fd_watch) : Remove static declaration. * xim/canddisp.cpp (candwin_read_cb) : Indentation fix. Close fd and stop fd watch of candidate helper application if it crashes or doesn't exist. 2004-10-13 Etsushi Kato * doc/XIM-SERVER : Update 'Internal Implementation' section. 2004-10-13 Etsushi Kato * uim/intl.c : Move place of including config.h. 2004-10-13 YamaKen * uim/intl.c - Surround #include with #ifdef ENABLE_NLS 2004-10-13 YamaKen * doc/XIM-SERVER - Add a new section 'Internal Implementation' which describes what happened to the xim-uim recently 2004-10-12 YamaKen * doc/XIM-SERVER - Fix an English word 2004-10-12 kzk * qt/qtkde-helper/src - add uim project's copyright to all the file(*.h and *.cpp). 2004-10-12 Etsushi Kato * xim/locale.cpp (utf8_to_native_str) : Plug leak. * xim/ximic.cpp (XimIC::onSendPacket) : Delete string if conversion fails. * xim/ximserver.cpp (InputContext::createUimContext) : Add comment. 2004-10-12 Etsushi Kato * doc/XIM-SERVER : Add caveat about working encoding. 2004-10-12 Etsushi Kato * xim/locale.cpp (utf8_to_native_str) : Cosmetic change. (utf8_wctomb) : Ditto. * xim/ximic.cpp (XimIC::reset_ic) : Do more sanity response if converting to compound text fails. (XimIC::onSendPacket) : Ditto. * xim/convdisp.cpp (ConvdispOv::layoutCharEnt) : Don't return even if string conversion fails. 2004-10-12 Etsushi Kato * xim/locale.cpp (utf8_mbtowc) : Cosmetic change. (utf8_wctomb) : Ditto. 2004-10-12 YamaKen * gtk/gtk-im-uim.c - Re-include uim/uim-im-switcher.h which commented out in r1468. It's a required header - Replace inappropriate #include with #include "uim/foo" 2004-10-12 Takuro Ashie * gtk/gtk-im-uim.c: Fixed compile time error & warnings. 2004-10-12 YamaKen * configure.ac - Add new option --enable-dict to make build of uim-dict configurable. Since it had been derived from Sumika, it also requires GTK+ 2.4.0 or later. So we must separate it from normal GTK2 category for other helper applets * helper/Makefile.am - Build uim-dict only if DICT is defined 2004-10-12 YamaKen * uim/uim-func.c - (uim_iconv_code_conv): Replace const qualifier of second arg of iconv(3) with ICONV_CONST macro to suppress warning on Linux glibc version of iconv(3) * xim/locale.cpp - (utf8_to_native_str): Cast second arg of iconv(3) to (ICONV_CONST char **) to avoid compilation error on GNU libiconv version of iconv(3) which FreeBSD platform uses * uim/intl.c - Add #include 2004-10-11 YamaKen * scm/anthy.scm - (anthy-begin-conv): Fix pending rk string truncation problem reported in [Anthy-dev 1169] by Konosuke Watanabe. Thanks. It had been enbuged in r1447 2004-10-11 YamaKen * scm/default-im.scm - (default-init-handler): Disable im-list for mode - (default-mode-handler): Disable im-switching by mode switching 2004-10-11 Etsushi Kato * xim/locale.cpp : Revert r1461 change since it breaks compilation on Linux. 2004-10-11 Etsushi Kato * xim/locale.cpp (ustring_to_utf8_str) : Change to use locally prepared wctomb(). (utf8_to_native_str) : New. (UTF8_Locale::uStringToCtext) : Do setlocale() with locale name retrived from encoding name. Add sanity check. (UTF8_Locale::compose_localename_from_lang) : Change to return names without UTF-8 encoding name. (utf8_mbtowc) : New. (utf8_wctomb) : New. (find_localename_from_encode) : Remove static. (utf8_to_native_str) : Ditto. Return NULL if it fails to convert. * xim/ximic.cpp (XimIC::reset_ic) : Add sanity check. (XimIC::onSendPacket) : Ditto. * xim/main.cpp (init_supported_locales) : Don't check UTF-8 name since now compose_localename_from_lang() returns name without UTF-8 suffix. (send_im_list) : Only send im with supported encoding of the context. * xim/ximserver.cpp (print_ustring) : Use locally prepared wctomb(). (XimServer::strToUstring) : Use locally prepared mbtowc(). (InputContext::createUimContext) : Do setlocale() with corresponding encoding of own context. Use default im if encoding of the contexts doesn't match the one from requested im. (InputContext::changeContext) : Don't change im if encoding of the context doesn't match the one from requested im. (InputContext::focusIn) : Ditto. * xim/convdisp.cpp (init_convdisp) : Change to create fontset with locale with legacy encoding. (class PeWin) : Add argument encoding for PeWin(). Add new variable mEncoding. (class PeLineWin) : Add argument encoding for PeLineWin(). (class PeOvWin) : Add argument encoding for PeOvWin(). (PeWin::draw_char) : Use XmbDrawImageString() instead of XwcDrawImageString() for string which has been converted to legacy encoding. (ConvdispOv::layoutCharEnt) : Use XmbTextExtents(). (ConvdispOs::compose_preedit_array) : Add sanity check. * xim/ximserver.h : Add new prototypes, utf8_to_native_str(), utf8_mbtowc(), and utf8_wctomb(). 2004-10-11 YamaKen * xim/locale.cpp - (utf8_to_native_str): Fix a compile error involving constness checking 2004-10-11 YamaKen * uim/intl.c - (intl_init_locale): * Remove invalid textdomain("uim") here. textdomain() must not be performed by a library because it masks application's one. Use dgettext() always. This fixed bug #1599 * Perform setlocale(3) only if it maybe did not performed before. This avoids the pointer invalidation of the string previously returned by setlocale() in some case 2004-10-11 YamaKen * helper/toolbar-common-gtk.c - (prop_button_released): Add GTK_CHECK_VERSION() to avoid bug #1598 * scm/util.scm - Add a procedure category header as comment 2004-10-11 YamaKen * scm/util.scm - Oops, previous commit (r1457) also committed these 3 preliminary procedures as side effect. They are not tested or completed. Don't use them yet. - (list-head): New de facto standard procedure - (list-tail): New R5RS procedure - (fold): New SRFI procedure 2004-10-11 YamaKen * This commit fixes bug #1600 'uim-fep does not look up standard default IM configuration' * fep/uim-fep.c - (DEFAULT_ENGINE): Remove to replace with standard uim default IM selection scheme - (get_default_im_name): New static function. It gets default IM name by get_default_im_name(). - (main, usage): Replace default IM lookup with get_default_im_name() 2004-10-11 Etsushi Kato * xim/locale.cpp (UTF8_Locale::uStringToCtext) : Convert utf8 string into XCompoundtext via native locale string. (find_localename_from_encoding) : New. Handles only CJK locale for the moment. (utf8_to_native_str) : New. * xim/xim.h (class XimIM) : Add member function set_encoding() and get_encoding(). Add private variable mEncoding. (class XimIC) : Add member function get_encoding(). * xim/ximtrans.cpp (Connection::xim_encoding_negotiation) : Check encoding. * xim/ximic.cpp (XimIC::reset_ic) : Convert uString into Ctext using encoding information. (XimIC::onSendPacket) : Ditto. * xim/ximim.cpp (XimIM::set_encoding) : New. (XimIM::get_encoding) : New. * xim/ximserver.cpp (XimServer::uStringToCtext) : Use encoding. * xim/convdisp.cpp (Convdisp::Convdisp) : Get encoding information from its XimIC. (ConvdispOs::compose_preedit_array) : Convert uString into Ctext using encoding information. * xim/ximserver.h (class Locale) : Add argument encoding for uStringToCtext(). * xim/convdisp.h (class Convdisp) : Add new variable mEncoding. 2004-10-11 TOKUNAGA Hiroyuki * configure.ac: Release 0.4.4.2. 2004-10-11 TOKUNAGA Hiroyuki * test/Makefile.am: - Removed unexisting files. 2004-10-11 Masahito Omote * canna.scm (canna-proc-input-state-no-preedit): Fix not accepting some keys when no preedit exists. 2004-10-11 Masahito Omote * helper/GNOME_UimApplet.server.in.in: s/helper/toolbar/. 2004-10-11 TOKUNAGA Hiroyuki * sumika/ include/canna.h: Removed unneed file. gtk2/cannacontainer.c: Ditto. gtk2/cannacontainer.h: Ditto. 2004-10-11 TOKUNAGA Hiroyuki * sumika/: ad-hoc modification for through compile process. 2004-10-11 kzk * xim/canddisp.cpp - (candwin_command): "uim-candwin-gtk" was renamed from "uim-helper-candwin-gtk" 2004-10-10 YamaKen * scm/anthy.scm - Add comments about the role for members of anthy-context - Fix some default values of anthy-context - (anthy-begin-conv): Fix invalid conversion state when beginning a conversion with preedit only contains rkc pending string - (anthy-flush): Add cur-seg re-initialization 2004-10-10 TOKUNAGA Hiroyuki * configure.ac: Release 0.4.4.1. 2004-10-10 TOKUNAGA Hiroyuki * uim/agent.c: - changed #include to "uim.h". Old style isn't valid if uim isn't installed already. 2004-10-10 TOKUNAGA Hiroyuki * configure.ac: Release 0.4.4. 2004-10-10 TOKUNAGA Hiroyuki * helper/Makefile.am: - Added top_buidddir to CPPFLAGS to pass make distcheck. * gtk/Makefile.am: - Ditto. 2004-10-10 YamaKen * scm/japanese.scm - (ja-rk-rule-basic): * Replace wide-katakana result of "xca", "xka", "xka" with similar hankaku-katakana * Add lacking hankaku-katakana result slot of "z/" and so on - (ja-rk-rule-additional): Remove inappropriate spaces in results 2004-10-10 YamaKen * scm/japanese.scm - Revert all changes came from invalid patch application in r1370 - Cleanly re-apply the patch contributed in [Anthy-dev 1101] by OHASHI Hideya. Thanks - (ja-rk-rule-basic): Most of unfamiliar 3-letter romaji entries that conflicts AZIK composing rules has been moved into ja-rk-rule-additional - (ja-rk-rule-additional): Import the 3-letter romaji entries from the ja-rk-rule-basic * doc/COMPATIBILITY - Rename the inappropriate entry title 'Additional romaji-kana conversion table has been added' to 'romaji-kana conversion table has been split into two parts' - Describe the changes 2004-10-10 YamaKen * uim/uim.h - (uim_init): Add a attention about setlocale(3) 2004-10-10 TOKUNAGA Hiroyuki * xim/main.cpp: - (main): Moved the location of setlocale just before check_default_engine. 2004-10-10 YamaKen * uim/uim-helper.c - (uim_helper_fd): Make static. This function should not be exported since it uses local enum definition which has a popular short name easy to conflict - (uim_helper_fd_readable): Reenable the function * uim/uim-helper.h - (uim_helper_fd_readable): Exported * uim/uim-helper-client.c - (uim_helper_read_proc): Replace uim_helper_fd() with uim_helper_fd_readable() * doc/COMPATIBILITY - Add a new entry 'uim_helper_fd_readable() has been exported' 2004-10-10 Etsushi Kato * uim.pc.in : Add @LIBINTL@ and @M17NLIB_LIBS@ for Libs. * xim/Makefile.am : Add connection.h for uim_xim_SOURCES. 2004-10-10 YamaKen * This commit moves the 2 im-switching API functions into uim-im-switcher.h to segregate the optional im-switching feature from uim core * uim/uim.h - (uim_switch_im, uim_get_current_im_name): Move into uim-im-switcher.h * uim/uim-im-switcher.h - New file - (uim_switch_im, uim_get_current_im_name): Moved from uim.h * uim/Makefile.am - (libuim_la_SOURCES): Move uim-util.h to pkginclude_HEADERS because external uim bridges such as MacUIM or IMKit-uim will require it installed - (pkginclude_HEADERS): Add uim-util.h and uim-im-switcher.h * uim/uim.c * qt/quiminputcontextplugin/src/qhelpermanager.cpp * qt/quiminputcontextplugin-qt4/qhelpermanager.cpp * gtk/gtk-im-uim.c * xim/main.cpp - Add #include "uim-im-switcher.h" 2004-10-09 YamaKen * doc/COMPATIBILITY - Describe about order of entries * scm/property.scm - (prop-state-compose-leaf): Add missing 'leaf' tag - (property-prop-activate-handler): Rename to context-prop-activate-handler to indicate correct belongingness of the procedure - (context-prop-activate-handler): Renamed from property-prop-activate-handler - (property-mode-handler): Rename to context-mode-handler to indicate correct belongingness of the procedure - (context-mode-handler): Renamed from property-mode-handler - (prop-list-find-mode-prop): Cosmetic change 2004-10-09 Etsushi Kato * xim/connection.cpp : Cosmetic changes. * xim/locale.cpp : Ditto. * xim/xim.h : Fix comment. (class XimIC) : Remove changeMode(). * xim/ximtrans.cpp : Cosmetic changes. * xim/ximic.cpp : Ditto. (XimIC::changeMode) : Remove. (ui_update_ic_stat) : Remove. (ui_update_input_mode) : Remove. * xim/ximim.cpp : Cosmetic changes. * xim/main.cpp : Ditto. * xim/ximserver.cpp : Ditto. (InputContext::getMode) : Removed. (InputContext::setMode) : Removed. * xim/canddisp.cpp : Cosmetic changes. * xim/convdisp.cpp : Ditto. * xim/ximpacket.cpp : Ditto. * xim/ximsever.cpp (class InputContext) : Cosmetic changes. Remove unused getMode() and setMode(). * xim/canddisp.h : Cosmetic changes. 2004-10-09 YamaKen * doc/HELPER-PROTOCOL - Replace the abstract of 'Property messages' section which had been described incorrectly by my misunderstanding of what 'property' represents. The word 'property' implies that it is owned by something, but I couldn't identify which element is a property, and what owns a property. Now I've found a consistent mapping 'a branch = a property' and 'an input context = an owner'. So I've modified the description in accordance with the mapping. Sorry for my impatient misunderstanding. Please tell me the truth if I'm still misunderstanding. - (prop_list_update): Add an explanation for branch which represents property 2004-10-09 YamaKen * doc/COMPATIBILITY - Add a new entry 'Flag field has been added to prop_list_update message' 2004-10-09 YamaKen * doc/COMPATIBILITY - Move uim_get_default_im_name() from 'New IM-switching related API' into 'New information retrival API' - Update 'New information retrival API' - Update 'New IM-switching related API' 2004-10-09 YamaKen * configure.ac - Replace agent.c with COPYING for AC_CONFIG_SRCDIR. Thanks to Jun Inoue * Makefile.am - Remove obsolete gabage entries for uim-agent * scm/Makefile.am - Remove obsolete iso-639-1.scm from SCM_FILES * scm/property.scm - Was new file appeared in r1427 2004-10-08 YamaKen * This commit adds a preliminary property handling framework. But it is not yet used by current uim implementation, and not yet tested. It is maybe used in 0.4.5 release. This framework eliminates all of property related handlings such as im-update-prop-list or im-update-prop-label from each input method. Input method developer can forget about the property feature (and legacy 'mode' feature implicitly handled by this framework) except for register-property, register-im and init-handler. Developers, take a look into the code (but do not review, it's completely lacking tests) and tell me your requirements. * scm/property.scm - Contains property definitions for anthy. It will be moved into anthy.scm later - (record property-definition, record prop-state, record property): New record - (property-new-internal): New alias for define-record'ed property-new - (property-definition-list, property-definition-rec-spec): New variable - (register-property, property-new, property-next-state, property-will-state-transit?, property-transit-state!, property-activate-state!, property-debug-message, prop-state-compose-label, prop-state-compose-branch, prop-state-compose-leaf, property-compose-live-branch, context-init-prop-list, context-propagate-prop-label-update, context-propagate-prop-list-update, context-propagate-prop-state, context-propagate-prop-configuration, property-prop-activate-handler, prop-list-find-mode-prop, property-prop-state-id->mode-value, property-mode-value->prop-state-id, context-update-mode, context-update-mode-list, property-mode-handler): New procedure - (anthy-property-id-list, default-prop_anthy_input_mod, default-prop_anthy_kana_input_method): New variable for anthy.scm - (prop_anthy_input_mode, prop_anthy_kana_input_method): New property definition for anthy.scm * scm/util.scm - (find): New SRFI procedure. Not yet tested 2004-10-08 Etsushi Kato * xim/ximtrans.cpp (Connection::OnRecv) : Handle mRxQ at once to avoid packet mismatch caused by extreme key repeats. 2004-10-08 YamaKen * uim/intl.c - (init_intl): Replace bind_textdomain_codeset with bind-textdomain-codeset to conform to lisp culture * doc/COMPATIBILITY - Update 'New gettext API for Scheme' 2004-10-06 YamaKen * uim/iso-639-1.def - Define "Divehi" as "dv" - Add comments for Flemish, Konkani and Syriac * doc/COMPATIBILITY - Update 'New i18n-related API for Scheme' - Reorder by close date - Cosmetic change 2004-10-06 YamaKen * ChangeLog - Remove as said in [Anthy-dev 1128] 2004-10-06 YamaKen * helper/im-switcher-gtk.c - (parse_helper_str_im_list): Apply get_text() to short_desc in accordance with the gettext treatment said in following message http://freedesktop.org/pipermail/uim/2004-October/000653.html * scm/im.scm - (uim-get-im-short-desc): Remove ugettext translation 2004-10-06 YamaKen * uim/uim-util.c - (struct _locale_language_table): Swap the order of members as said in following message http://freedesktop.org/pipermail/uim/2004-October/000653.html - (NR_LOCALE_LANGUAGE): New macro to define symbolic value of the number of elements in locale_language_table[] - (get_language_name_from_locale): Cosmetic change * uim/iso-639-1.def - Swap the order of members in each element 2004-10-06 YamaKen * This commit reorganizes uim_get_language_name_from_locale() and related parts. See 'URL' firld of 'New information retrival API' entry in doc/COMPATIBILITY * doc/COMPATIBILITY - Describe this change into 'New information retrival API' - Reorder by close date * scm/iso-639-1.scm - Remove to replace with iso-639-1.def * scm/i18n.scm - Remove (require "iso-639-1.scm") - (lang-code->lang-name): Replace lang-code retrival using iso-639-1-alist with lang-code->lang-name-raw written in C - (uim-get-language-name-from-locale): Remove - (langgroup-primary-lang-code): New procedure comprise of code fragments of uim-get-language-name-from-locale. This procedure is called from uim_get_language_name_from_locale() to handle "zh_TW:zh_HK" style localeas temporary specification of the function for backward compatibility * uim/uim-util.c - (uim_get_language_name_from_locale): Remove the alternative implementation using Scheme - (get_language_name_from_locale): * New static function renamed from uim_get_language_name_from_locale() * replace strncmp(s, s, 2) with strcmp to properly translate zh locales such as "zh_CN" - (uim_get_language_name_from_locale): Add "zh_TW:zh_HK" style locale handling - (lang_code_to_lang_name_raw): New function - (uim_init_util_subrs): Add initialization of lang-code->lang-name-raw * uim/iso-639-1.def - Add copyright header - Add a comment about original specification information 2004-10-06 TOKUNAGA Hiroyuki * helper/im-switcher-gtk.c: - (create_switcher): Pack button box into right side. - (create_switcher): GTK_STOCK_APPLY changed to GTK_STOCK_OK. 2004-10-06 TOKUNAGA Hiroyuki * sumika/gtk2/Makefile.am: - Don't install sumika by default. 2004-10-06 TOKUNAGA Hiroyuki * uim/uim-helper-client.c: - (uim_helper_get_message): Added explicit (void) to the function definition. 2004-10-06 TOKUNAGA Hiroyuki * uim/agent.c: - Moved from top_srcdir. 2004-10-06 YamaKen * scm/im.scm - (register-im, retrieve-im, find-im-for-locale): Optimize out redundant im-name of each IM in im-list 2004-10-06 YamaKen * doc/COMPATIBILITY - Note almost Scheme API changes between 0.4.3 and 0.4.4 without detailed description. The desctiption should also be described before 0.4.4 release, if possible - Add a new entry 'New i18n-related API for Scheme' - Add a new entry 'short-desc argument has been added to register-im' - Add a new entry 'New gettext API for Scheme' - Add a new entry 'Additional romaji-kana conversion table has been added' - Add a new entry 'New IM selection API for Scheme' - Add a new entry 'New helper protocol messages for IM management' 2004-10-05 Etsushi Kato * xim/locale.cpp (UTF8_Locale::compose_localename_from_lang) : Handle zh_TW:zh_HK. * xim/convdisp.cpp (choose_default_fontset) : Ditto. * xim/main.cpp (init_supported_locales) : Ditto. These hack for locale handling in uim-xim should be rewritten after 0.4.4. 2004-10-05 YamaKen * doc/COMPATIBILITY - Note all C API changes between 0.4.3 and 0.4.4 without detailed description. The desctiption and Scheme API changes should also be described before 0.4.4 release - Add a new entry 'Format extension of language attribute of IM' - Add a new entry 'Deprecation of preliminary uim-scm API' - Add a new entry 'Fix a typo of an API function name' - Add a new entry 'New IM-switching related API' - Add a new entry 'New information retrival API' - Add a new entry 'New surrounding text API' * README - Fix 'International Phonetic Association' with 'International Phonetic Alphabet' 2004-10-05 Etsushi Kato * uim/uim-helper-client.c (uim_helper_get_message) : Fix to terminate at proper place. 2004-10-05 YamaKen * ChangeLog - Update 2004-10-05 YamaKen * doc/HELPER-PROTOCOL - Define charset and str - Remove unused iso639_lang_code definition - Cosmetic changes 2004-10-05 YamaKen * test/test-slib.scm - New file - Merged from test-macro.scm and test-ext.scm - (test case): Replace 'uim' with 'uim-bool' to suppress the error due to bug #617 * test/test-macro.scm - Merge into test-slib.scm * test/test-ext.scm - Ditto * test/test-uim.scm - Remove. Equivalent test is already included in test-util.scm 2004-10-05 Etsushi Kato * helper/im-switcher-gtk.c : Remove unncecessary "\n" for uim_helper_send_message(). * uim/uim-helper-client.c (uim_helper_get_message) : malloc with i+2 is sufficient. Terminate buffer properly. 2004-10-05 YamaKen * scm/prime.scm - (prime-command-register-conv-input): Replace obsolete prime-proc-input-no-preedit with prime-push-key to fix crashing on word-register mode by the patch posted in [Anthy-dev 1031] by Masaki Yatsu. Thanks. 2004-10-05 Etsushi Kato * xim/ximserver.cpp (init_modifier_keys) : Free strage allocated by XGetModifierMapping() and XGetKeyboardMapping(). 2004-10-05 YamaKen * This commit make uim "zh_TW:zh_HK:en:de:fr" style colon-separated language acceptable. It may affect bridge implementations. Please check. * uim/uim.c - (uim_init_scm): Load default-im.scm after loader.scm to ensure lowest preference * scm/im.scm - Move (require "default-im.scm") into uim.c - (find-im-for-locale): * Accept language group expression using langgroup-covers? * Remove fallback 'default' IM since the IM matches with any languages by langgroup-covers? * test/test-im.scm - (test find-im-for-locale): * Replace IM for "zh" locale with m17n-zh-py in accordance with the change of lang of pinyin-big5 * Passed all zh locale tests * scm/i18n.scm - (langgroup-covers?): New predicate. Wildcard expression is temporalily defined as "*", and "" is kept as 'matches nothing' for ipa IM - (lang-code->lang-name): Change default value "" to "-" - (uim-get-language-name-from-locale): Accepts "zh_TW:zh_HK" format and returns first language * test/test-i18n.scm - (test langgroup-covers?): New test * scm/default-im.scm - Replace the language "en" on register-im with "*" * scm/pyload.scm - Replace the language "zh" on generic-register-im with "zh_TW:zh_HK" 2004-10-05 Etsushi Kato * xim/main.cpp : Fix silly typo for sizeof(char). 2004-10-05 YamaKen * scm/im.scm - (find-default-im): Remove uim-default-im-engine in accordance with [Anthy-dev 1108, 1115] * xim/main.cpp - (main): Replace uim-default-im-engine in a comment with default-im-name in accordance with the discontinuance of it 2004-10-05 YamaKen * scm/im.scm - Validated by test-im.scm except for zh_TW and zh_HK related issues - (current-im): Remove as obsolete - (register-im): * Avoid duplicate register properly * Remove current-im handling ramained as comment - (find-im-for-locale): Fallback to 'default to provide IM for any locale - (find-default-im): Remove fallback current-im since find-im-for-locale which fallbacks to 'default precedes current-im - (find-im): Rename the arg 'lang' to 'localestr' in accordance with locale string capability * test/test-im.scm - (test im-record accessors): Remove because define-record ensures proper accessor definition - (test register-im): * Remove current-im related tests * Add duplicate register test - (test retrieve-im): New test - (test default-im-for-debug): New test - (test find-im-for-locale): * New test * Currently fails for pinyin-big5 selection for zh_TW and zh_HK. Implementation will be modified to conform to the test result - (test find-default-im): New test - (test find-im): * Remove current-im related tests * Revised for new implementation involving find-im-for-locale - (testcase im context management): Revise setup proc in accordance with new im.scm implementation - (test set-context-data!): Remove - (test add-context (add as new id)): Remove - (test add-context (duplicate id)): Remove - (test register-context (add as new id)): New test. Revised from test add-context - (test register-context (duplicate id)): New test. Revised from test add-context * uim/uim-func.c - (im_register_im): * Fix memory leak of short_desc * Eliminate redundant string duplications * uim/uim.c - (uim_switch_im): Add a comment related to the commit log of r1400. I think that we should not add the API uim_destroy_context() 2004-10-05 TOKUNAGA Hiroyuki * uim/uim.c: - (uim_switch_im): Call reset_context before creating new context. IMO we need a new api uim_destroy_context. 2004-10-05 TOKUNAGA Hiroyuki * uim/uim-helper.c: - (uim_helper_fd): Unmarked as static function. * uim/uim-helper-client.c: - (uim_helper_read_proc): Read all readable messages at once function call. 2004-10-04 YamaKen * uim/context.h - #include "gettext.h" to call gettext functions properly from UIM_EVAL_STRING macros * uim/intl.c - #include for setlocale(). The inclusion position among gettext.h is appropriate * test/test-i18n.scm - Add reivsion information of successfully tested 2004-10-04 Etsushi Kato * xim/ximserver.cpp : Add #include for setlocale(3). * xim/convdisp.cpp : Ditto. 2004-10-04 YamaKen * scm/i18n.scm - Validated by test-i18n.scm - (locale-new): * Fix invalid initialization from LC_ALL or LANG when it is configured as "C" or "POSIX" * Reject invalid locale strings such as "de_.UTF-8". See test-i18n.scm to view various patterns - (locale-str): Fix a typo over a variable name which crashes the execution in the case returning only lang-territory part - (locale-set-lang!, locale-set-territory!, locale-lang-territory-str): Reorder swappable argument as popular order * test/test-i18n.scm - New file - (testcase i18n locale): New testcase - (test locale-new, locale-new native environment, locale-set-lang!, locale-set-territory!, locale-lang-territory-str, locale-str, locale-zh-awared-lang): New test - (testcase i18n ISO 639-1 language code #1): New testcase - (test lang-code->lang-name in en locale): New test - (testcase i18n ISO 639-1 language code #2): New testcase - (test lang-code->lang-name in ja_JP locale): * New test * Currently disabled due to strange execution error * uim/uim-util.c - (c_setenv, c_unsetenv): New function - (uim_init_util_subrs): Add setenv and unsetenv as new procedures * test/test-uim-util.scm - (test setenv, test unsetenv): New test * scm/im.scm - (find-im-for-locale): * Rename a local variable * Remove redundant logic * uim/Makefile.am - Move '-D' definitions in libuim_la_CFLAGS to libuim_la_CPPFLAGS - Add -DDEBUG to libuim_la_CPPFLAGS 2004-10-04 Etsushi Kato * xim/convdisp.cpp : Fix taipeifont entry for zh_TW fontset. 2004-10-04 Etsushi Kato * doc/HELPER-CANDWIN : Fix typo. Add description about message format for sending. 2004-10-04 YamaKen * helper/im-switcher-gtk.c - (parse_helper_str_im_list): Revert the change committed in r1392 since it should not be performed yet 2004-10-04 YamaKen * scm/im.scm - (uim-get-im-short-desc): Returen "-" rather than "" if invalid string has been gotten * helper/im-switcher-gtk.c - (parse_helper_str_im_list): Disable get_text() since the string has already been gettext'ed 2004-10-04 YamaKen * This commit Adds i18n-ized short-desc feature * scm/im.scm - (record im): Add a new member short-desc to allow time-by-time gettext translation - (register-im): Add short-desc arg to im-new - (uim-get-im-short-desc): New procedure to get gettext'ed short-desc from C * uim/uim.c - (uim_get_im_short_desc): Add short-desc update which performs gettext based on current locale and current client encoding - (uim_switch_im): Add short_desc handling. But it is currently disabled by #if 0 since I don't know when uc->short_desc is used 2004-10-04 Etsushi Kato * uim/Makefile.am : Add @LIBINTL@ for libuim_la_LIBADD. 2004-10-03 YamaKen * uim/uim-scm.h - Add a comment that cautions the defective API 2004-10-03 Etsushi Kato * xim/convdisp.cpp (PeLineWin::draw_segment) : Draw underline when PE_UNDERLINE is on with root-style preedit window. 2004-10-03 TOKUNAGA Hiroyuki * helper/im-switcher-gtk.c: - (create_switcher_treeview): Added radio buttons. - (change_input_method): New function. - (sort_by_language_name): Removed. - (sort_by_input_method_name): Removed. - (change_this_text_area_only): Removed. - (change_whole_desktop): Removed. - (change_this_application_only): Removed. 2004-10-02 Etsushi Kato * xim/convdisp.cpp (class ConvdispOv) : Add private variable m_lang_changed for fontset selection hack. 2004-10-02 Yusuke Tabata * uim/skk-dic.c - add comments on each structure - (find_border) avoid possibility of infinite loop. 2004-10-02 Etsushi Kato * doc/XIM-SERVER : Update description about default im selection. * xim/ximpn.h : Translate some Japanese comments into English. * xim/xim.h : Ditto. * xim/ximtrans.cpp : Ditto. * xim/ximic.cpp : Ditto. * xim/ximim.cpp : Ditto. * xim/convdisp.cpp : Ditto. * xim/convdisp.h : Ditto. * xim/ximserver.cpp : Ditto. Remove unused init_converter() and global_finalize(). * xim/canddisp.cpp : Update comment. * xim/locale.cpp : Add comment. * xim/main.cpp : Use uim_default_im_name() for default IM selection. Do init_convdisp() earlier. 2004-10-02 YamaKen * uim/uim-helper-client.c - (BUFFER_SIZE): Increase to 64KB from 2KB to receive large message * scm/m17nlib.scm - (m17nlib-register): Replace short-desc with proper one 2004-10-02 YamaKen * scm/loader.scm - Separate CKV languages from 'other languages' * scm/iso-639-1.scm - Remove (require "i18n.scm") in accordance with the procedure relocation - (lang-code->lang-name, uim-get-language-name-from-locale): Move to i18n.scm * scm/i18n.scm - Add (require "iso-639-1.scm") in accordance with the procedure relocation - (lang-code->lang-name, uim-get-language-name-from-locale): Move from iso-639-1.scm * scm/im.scm - Remove (require "iso-639-1.scm") in accordance with the procedure relocation 2004-10-02 YamaKen * uim/uim-util.c - (uim_get_language_name_from_locale): Add NULL check for argument to Scheme version of the function 2004-10-01 YamaKen * scm/im.scm - (find-im-for-locale): Reflect preference-order for each language by using load order * scm/loader.scm - Reorder Japanese IMs to make ordinary IM (such as Anthy) be selected as default 2004-10-01 YamaKen * uim/slib.c - (init_dbg): Rename the feature 'debugging to 'debug * scm/im.scm - (debugging-default-im): Rename the strange name to default-im-for-debug - (default-im-for-debug): * Renamed from debugging-default-im * Replace (feature? 'debugging) with (feature? 'debug) inaccordance with the renaming about the feature - (find-default-im): Follow the renaming of find-default-im 2004-10-01 YamaKen * scm/im.scm - (current-im): Fix invalid default value. current-im must points to im, not a im-name 2004-10-01 YamaKen * This commit modifies an API function suggested in following message http://freedesktop.org/pipermail/uim/2004-September/000646.html * uim/context.h - (struct uim_im): Reorder members in accordance with the argument reorder about short-desc - (struct uim_context_): Fix a typo * uim/uim-func.c - (im_register_im): Swap argument order 's_desc, enc' to 'enc, s_desc' as I suggested in * scm/im.scm - (register-im): Swap argument order 'short-desc encoding' to 'encoding short-desc' as I suggested in * scm/tutcode.scm * scm/prime.scm * scm/spellcheck.scm * scm/canna.scm * scm/anthy.scm * scm/skk.scm - Follow the specification change of register-im - Surround the short-desc by N_ as (N_ "short-desc") to prepare message translation * scm/m17nlib.scm - Follow the specification change of register-im - Add a new short-desc as comment. It is not used for now due to the bug #1502 * scm/default-im.scm - Follow the specification change of register-im - Modify the short-desc - Surround the short-desc by N_ as (N_ "short-desc") to prepare message translation * scm/generic.scm - (generic-register-im): Follow the specification change of register-im * scm/tcode.scm * scm/ipa.scm * scm/viqr.scm * scm/pyload.scm - Follow the specification change of generic-register-im - Surround the short-desc by N_ as (N_ "short-desc") to prepare message translation * scm/hangul.scm - (hangul-register-im): Follow the specification change of register-im - Follow the specification change of hangul-register-im - Follow the specification change of generic-register-im - Surround the short-desc by N_ as (N_ "short-desc") to prepare message translation 2004-10-01 kzk * qt/qtkde-helper/src/candwin - make candwin understand display_limit message - code clean up 2004-10-01 Etsushi Kato * xim/main.cpp (main) : Again, do init_convdisp() here. * xim/convdisp.cpp (init_convdisp) : Do setlocale() for every CJK fontset. Set default CJK fontset with size 16 available from /usr/X11R6/lib/X11/fonts/misc. (create_convdisp) : Move init_convdisp() to main from here. (PeLineWin::draw_segment) : Adjust to font size 16. 2004-09-30 YamaKen * This commit renames an API function suggested in following message http://freedesktop.org/pipermail/uim/2004-September/000646.html * uim/uim.h - (uim_change_input_method_engine): Rename to uim_switch_im - (uim_switch_im): * Renamed from uim_change_input_method_engine * Modify the function description * uim/uim.c - (uim_change_input_method_engine): Rename to uim_switch_im - (uim_switch_im): Renamed from uim_change_input_method_engine * gtk/gtk-im-uim.c - (im_uim_parse_helper_str_im_change): Replace uim_change_input_method_engine() with uim_switch_im() * qt/quiminputcontextplugin/src/qhelpermanager.cpp - (parseHelperStrImChange): Ditto * qt/quiminputcontextplugin-qt4/qhelpermanager.cpp - (parseHelperStrImChange): Ditto 2004-09-30 YamaKen * This commit fixes default IM selection algorithm in accordance with [Anthy-dev 1104] * scm/i18n.scm - (locale-new): * Accept #f, "C" and "POSIX" as "en" locale. This resolved some initialization problem * Accept "" as native locale as like as performed in setlocale(). It attempt to retrieve the locale information from LC_ALL and LANG environment variable. If failed to retrieve the information from the two variable, it defaults to "en". It does not attempt to retrieve from particular locale category such as LC_CTYPE or LC_MESSAGES since appropriate category for input method does not exist * scm/default-im.scm - Change 'lang' information for register-im to "en" from "*" to be selected against "en" locales on the default IM selection process. Although it should ideally be matched against several locales as "en:fr:de" or "*", current implementation does not accept such expressions. We should revise it later * scm/im.scm - (current-im): * Replace default value #f with 'default * Mark as 'may be deprecated' - (register-im): Comment out update of current-im. This makes current-im permanently points to 'default IM 2004-09-30 YamaKen * scm/im.scm - (find-default-im): Add symbol-bound? check for uim-default-im-engine to avoid craching when the variable is not defined 2004-09-30 YamaKen * scm/im.scm - (find-default-im): Fix a typo over sexp 2004-09-30 TOKUNAGA Hiroyuki * japanese.scm: - (ja-rk-rule): Splitted into two parts. ja-rk-rule-basic and ja-rk-rule-additional. 2004-09-30 TOKUNAGA Hiroyuki * xim/convdisp.cpp: - (ConvdispOs::move_candwin): Added a comment. 2004-09-30 YamaKen * This commit enables proper gettext handling within Scheme world, adds locale object for Scheme, and adds an alternative implementation of uim_get_language_name_from_locale() written in Scheme * Although the codes for Scheme gettext is sufficient, automatic update of po files involving scm files are not yet provided * configure.ac - Fix localedir definition by replacing "${prefix}/share/locale" with "${datadir}/locale" - Define LOCALEDIR to properly expand ${datadir}. We should use more safe macro such as AC_EXPAND_DIR later - Add a comment about [ $prefix = NONE ] handling. I can't imagine when prefix does not exist * uim/context.h - #include "config.h" to know whther ENABLE_NLS is defined or not - (uim_last_client_encoding): New decalaration for an library-private variable - Add a comment about why we don't use variadic macro (i.e. __VA_ARGS__) - (UIM_PREPARE_SAVING_TEXTDOMAIN_CODESET, UIM_SWITCH_TEXTDOMAIN_CODESET, UIM_RESTORE_TEXTDOMAIN_CODESET): New macros for gettext handling within UIM_EVAL_STRING macros - (UIM_EVAL_STRING_INTERNAL): New macro to simplify UIM_EVAL_STRING macros - (UIM_EVAL_STRING, UIM_EVAL_FSTRING1, UIM_EVAL_FSTRING2, UIM_EVAL_FSTRING3, UIM_EVAL_FSTRING4, UIM_EVAL_FSTRING5): * Simplify using UIM_EVAL_STRING_INTERNAL() * Add gettext handling * uim/uim.c - (uim_last_client_encoding): New library-private variable - (uim_create_context): Add client encoding saving for bind_textdomain_codeset(). The value is used when UIM_EVAL_STRING() is called without uim_context. The specification assumes client always uses consistent encoding - (uim_get_default_im_name): Replace the sexp template "(find-default-im-name)" with "(uim-get-default-im-name)" in accordance with the renaming - (uim_init): Add initialization for uim_last_client_encoding - (uim_quit): Add cleanup for uim_last_client_encoding * uim/uim-util.c - (uim_scm_load_file): Simplify using UIM_EVAL_FSTRING1() - (struct _locale_language_table, locale_language_table): Temporalily comment out by #if 0 - (uim_get_language_name_from_locale): * Temporalily replace interenal implementation with extended alternative one written by Scheme * It returns gettext'ed string converted for client encoding of libuim rather than system locale encoding. For example, it properly returns UTF-8 string for GTK+ environment even if system locale is using different encoding such as EUC-JP * We should implement such functionalities by Scheme to acquire flexibility. In this case, we can also perform langcode -> langname translation in Scheme world by the alternative implementation. The replacement is performed temporalily by #if 0. * I should know whether other requirement that requires C version of implementation. In addition, the alternative implementation requires API change (remove const from return value). Currently it has a memory leak problem due to the API * uim/intl.c - (intl_gettext_package): New function. It returns GETTEXT_PACKAGE as a Scheme procedure gettext-package - (intl_init_locale): * Replace locale configuration involving environment variable with simple setlocale(LC_ALL, ""). I believe that is's sufficient * Configure gettext environment properly using compile-time information. It has gotten ready to gettext - (init_intl): * Add definition of gettext-package * Provide 'nls if ENABLE_NLS is defined * uim/slib.c - (lreadr): Remove non-standard _"str" style syntax handling for i18n. We use the form (_ "str") to represent gettext string to be compatible with other lisp implementations * scm/Makefile.am - Add i18n.scm and iso-639-1.scm to SCM_FILES * scm/im.scm - Describe an abstract of this file as comment - Additionaly require i18n.scm and iso-639-1.scm - (locale-lang): Remove to replace with new locale handling procedures defined in i18n.scm - (find-im-for-locale): Make zh locales handling proper - (find-default-im): Rename the arg to distinguish locale string and locale object - (find-default-im-name): Rename to uim-get-default-im-name to indicate tight relationship with uim_get_default_im_name() - (uim-get-default-im-name): * Renamed from find-default-im-name * Rename the arg to distinguish locale string and locale object * scm/i18n.scm - New file for i18n functions - (ugettext): New procedure. Convenience shorthand of runtime translation - (_): New procedure. It is an alias of ugettext, and also used as the keyword for xgettext - (N_): New procedure. It is only used as the keyword for xgettext - (record locale): New record - (locale-new-internal, locale-set-lang-internal!, locale-set-territory-internal!): New aliases to preserve original definitions defined by define-record - (locale-new): New procedure. It accepts language[_territory][.codeset] style locale string as argument - (locale-set-lang!, locale-set-territory!): New procedures. They adds a validation to original one defined by define-record - (locale-lang-territory-str): New procedure. It returns "language_territory" or "language" style string from locale object in accordance with existence of 'territory' attribute - (locale-str): New procedure. It returns "language_territory.codeset" or locale-lang-territory-str style string from locale object in accordance with existence of 'territory' and codeset attribute - (locale-zh-awared-lang): New procedure. It returns language part of locale object, but returns locale-lang-territory-str for zh locale * scm/iso-639-1.scm - New file for definition about ISO 639-1 language codes - (iso-639-1-alist): New variable. This defines the translation table with gettext keyword - (lang-code->lang-name): New procedure. It translates the two-letter language code into a human readable language name with gettext translation - (uim-get-language-name-from-locale): New procedure. It called from uim_get_language_name_from_locale() as its actual implementation 2004-09-30 Etsushi Kato * helper/toolbar-common-gtk.c (button_destroy) : Use gtk_widget_destroy instead of gtk_container_remove to remove reference count of object. (uim_applet_fd_read_cb) : Use free instead of g_free. 2004-09-30 kzk * Until this commit, all known bug of qtkde-helper is fixed. It's ready to use I think. After testing at my machine in a few days and it doesn't cause aproblem, I'll release qtkde-helper. * candwin/uim-helper-candwin-qt.cpp - handle utf-8 string properly - handle candidate string properly - fix the position to move - fix wrong message reading - remove unnecessary debug message * toolbar/uim-helper-toolbar-qt.cpp - move to the proper position at startup (not proper way) 2004-09-30 kzk * qt/qtkde-helper/src/common/quimhelpertoolbar.cpp - (checkHelperConnection): new function - call uim_helper_client_get_prop_list() once widget is created. This aims to avoid display "?" when toolbar starts. * qt/qtkde-helper/src/common/quimhelpertoolbar.h - (checkHelperConnection): new function - declare following functions as protected (parseHelperStr,propListUpdate,propLabelUpdate) * qt/qtkde-helper/src/applet/uimhelperapplet.cpp - kill warning 2004-09-29 Masahito Omote * uimcontainer.c, uimcontainer.h: Change UI interface. - (uim_config_container_new): Use GtkTreeView lists for selecting instead of tabs. - (cb_treeview_cursor_changed): New callback when item is selected. 2004-09-29 Etsushi Kato * scm/skk.scm : Recover the wrong behavior of index-hander with recent scm changes. 2004-09-29 YamaKen * test/test-intl.scm - Add (use file.util) to avoid environment dependent error - (testcase intl): Add LC_ALL and implicit C locale handling to avoid environment dependent error 2004-09-29 YamaKen * This commit adds a test suite for intl.c. The patch has been contributed by Kouhei Sutou by following message. Thank you for cooperation. http://lists.sourceforge.jp/mailman/archives/anthy-dev/2004-September/001088.html * test/test-intl.scm - New file 2004-09-29 YamaKen * scm/im.scm - (find-default-im): Complement a lacking close paren that enbuged in r1359 2004-09-29 YamaKen * scm/im.scm - (find-default-im): Add existence check for uim-default-im-engine to avoid startup error 2004-09-29 kzk * helper/im-switcher-gtk.c - enable sorting by clicking column header 2004-09-29 Etsushi Kato * xim/ximserver.cpp (InputContext::focusIn) : Do setlocale() here since different context may have im with different language. * xim/convdisp.cpp (gFontset_ja) : Revert Japanese default font for the sake of safely. 2004-09-29 YamaKen * doc/00INDEX - Add 'COMPATIBILITY' as an entry 2004-09-29 Etsushi Kato * xim/convdisp.cpp : Change default fontset size as 16. 2004-09-29 TOKUNAGA Hiroyuki