*** empty log message ***
[m17n/m17n-lib.git] / src / ChangeLog
index 70993d1..19dd341 100644 (file)
@@ -1,3 +1,810 @@
+2007-08-14  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (mfont__ft_drive_otf): Fix arg to OTF_check_features.
+
+2007-07-13  Kenichi Handa  <handa@m17n.org>
+
+       * Version 1.4.0 released.
+
+2007-07-12  Kenichi Handa  <handa@m17n.org>
+
+       * input.c: Fix doxygen @ref commands.
+
+2007-07-10  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-core.h (M17NFunc): Fix typo of Doxygen directive.
+
+2007-07-09  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-core.h (M17N_BEGIN_HEADER, M17N_END_HEADER): New macros.
+
+       * m17n.h: Include m17n-core.h if not yet done.  Use macros
+       M17N_BEGIN_HEADER and M17N_END_HEADER.
+
+       * m17n-gui.h: Likewise.
+
+       * m17n-misc.h: Likewise.
+
+2007-06-13  Kenichi Handa  <handa@m17n.org>
+
+       * font-flt.c (load_command): Prepend "^" in the regular expression.
+
+2007-06-11  Kenichi Handa  <handa@m17n.org>
+
+       * language.c (mlanguage_name_list): Fix previous change.
+
+       * coding.c (mcoding__load_from_database): Add aliases in
+       coding_definition_list.
+
+2007-06-10  Kenichi Handa  <handa@m17n.org>
+
+       * language.c (mlanguage_name_list): Fix previous change.
+
+2007-06-08  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (update_candidate): Copy candidate_list earlier.
+       (re_init_ic): Provide pseudo initialize state if none.
+
+2007-06-05  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (preedit_insert): Print debug information.
+
+       * database.c (expand_wildcard_database): New function.
+       (mdatabase_list): Fix handling of wildcard database.
+
+       * language.c (load_lang_name): New function.
+       (mlang__fini): Cancel the last two changes.
+       (mlanguage_name_list): New arg script and territories.  Use
+       load_lang_name.
+
+       * m17n.h (mlangauge_name_list): Adjusted.
+
+2007-06-04  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (open_im): Check if the input method has at least one
+       state.
+
+2007-06-01  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (shift_state): Change the format of debug print.
+       (preedit_commit): New arg need_prefix.  Caller changed.
+       (update_candidate): Copy candidate_list.
+       (take_action_list): Likewise.
+       (handle_key): Change the format of debug print.
+
+       * font-flt.c (load_flt): Ignore unknown directives.
+
+2007-05-25  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-core.c (mdebug__unregister_object): Small optimization.
+
+       * database.c (find_file): Merged into get_database_file.
+       (get_database_file): New arg result.  Caller changed.
+       (mdatabase__check): Fix the logic.
+
+2007-05-24  Kenichi Handa  <handa@m17n.org>
+
+       * database.c (find_database): If unprocessed wildcard database is
+       found, register database filed and recursively call find_database.
+       (free_db_info): Unref db_info->properties.
+       (register_database): New arg properties.  Delete code for
+       initializing mdatabase__list.
+       (register_databases_in_files): Argument changed.  Caller changed.
+       (mdatabase__update): Don't list files by glob here.
+       (mdatabase_list): If unprocessed wildcard database is found,
+       register database filed and recursively call mdatabase_list.
+
+       * database.h (enum MDatabaseStatus): New enum
+       MDB_STATUS_AUTO_WILDCARD.
+
+       * input.c (load_branch): Fix previous change.
+       (update_global_info): If the global database is not found, return -1.
+
+2007-05-23  Kenichi Handa  <handa@m17n.org>
+
+       * database.c (Mversion): New variable.
+       (mdatabase__init): Initialize it.
+       (register_database): New arg properties.  Caller changed.
+       (register_databases_in_files): Don't check version here.
+       (mdatabase__update): Likewise.
+
+       * database.h (MDatabaseInfo): New member properties.
+
+2007-05-21  Kenichi Handa  <handa@m17n.org>
+
+       * language.c: Include <ctype.h>
+       (mlanguage__info): Use strncasecmp (not memcmp).
+       (mlanguage_name): Downcase language name for backward
+       compatibility.
+
+       * input.c (filter): Don't check Mlanguage property of
+       ic->im->langauge.
+
+2007-05-18  Kenichi Handa  <handa@m17n.org>
+
+       * language.c (mlanguage_name): Fix it to handle M-text English
+       name.
+
+       * input.c (config_command): Set NAME before using it.
+       (load_branch): Try to resolve a map name by variables.
+
+2007-05-17  Kenichi Handa  <handa@m17n.org>
+
+       * language.c (mlang__fini): Fix previous change.
+
+2007-05-16  Kenichi Handa  <handa@m17n.org>
+
+       * plist.c (free_plist): Cancel the last change.
+       (write_element): Check if PLIST is nested.
+       (mplist__from_plist): Label a plist as nested if appropriate.
+       (mplist__from_alist): Label a plist as nested.
+       (mplist__conc): Check the value of PL before referring it.  Label
+       a plist as nested if appropriate.
+       (mplist_copy): Label a plist as nested if appropriate.
+       (mplist_put_func): Return Mnil if KEY is a managing key.
+       (mplist_push): Label a plist as nested if appropriate.
+
+       * plist.h (MPLIST_SET_NESTED_P): Return 1 iff plist->control.flag
+       is set as nested.
+
+       * language.c (mlang__fini): Unref each element of langname_list.
+
+2007-05-14  Kenichi Handa  <handa@m17n.org>
+
+       * language.c: Include <string.h> and <locale.h>.
+       (langname_list): New variable.
+       (load_lang_script_list): Exclude invalid list elements.
+       (mlang__init): Initialize langname_list.
+       (mlang__fini): Unref langname_list.
+       (mlanguage__info): Adjusted for the change of English
+       name (symbol->M-text).
+       (mlanguage_name): Label it as obsolete.
+       (mlanguage_name_list): New function.
+
+       * m17n.h (mlanguage_name_list): Extern it.
+
+       * locale.c (make_locale): Fix setting of members of locale.
+
+       * plist.c (free_plist): Unref also nested plist.
+
+2007-05-11  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (mconv_reset_converter): Set internal->used to 0.
+
+2007-05-08  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (check_description): Force copying the translated text.
+
+2007-05-02  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (minput_save_config): Unref unnecessary plist.  Use
+       free_im_list to free im_config_list.
+
+2007-04-20  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (config_command): Fix previous change again.
+       (config_variable): Likewise.
+       (minput_config_command): Fix for the case of setting back to
+       default.
+       (minput_config_variable): Likewise.
+       (minput_save_config): Include nil as documentation of customized
+       command/variable.
+
+2007-04-05  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (config_command): Fix previous change.
+       (config_variable): Likewise.
+
+       * plist.c (mplist_get_func): Fix for backward compatiblity.
+
+2007-04-04  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (minput_get_command, minput_config_command): Fix example
+       codes.
+
+2007-03-29  Kenichi Handa  <handa@m17n.org>
+
+       These changes are to avoid unsafe casting of a function pointer.
+
+       * face.h (enum MFaceProperty): Delete MFACE_HOOK_FUNC.
+       (struct MFace): New member hook.
+
+       * face.c (serialize_face): Adjusted for the change of MFace.
+       (deserialize_face): Likewise.
+       (mface__init): Likewise.  Use msymbol_put_func.
+       (mface__realize): Adjusted for the change of MFace.  Avoid
+       compiler warning.
+       (mface_get_prop): Adjusted for the change of MFace.
+       (mface_put_prop): Likewise.
+       (mface_get_hook): New function.
+       (mface_put_hook): New function.
+       (mface_update): Adjusted for the change of MFace.
+
+       * input-gui.c (win_callback): Use mplsit_get_func.
+       (minput__win_init): Use mplsit_put_func.
+
+       * input.c (take_action_list): Use mplist_get_func.
+       (init_ic_info): Likewise.
+       (fini_ic_info): Likewise.
+       (minput_callback): Likewise.
+       (minput__init): Use mplist_put_func.
+
+       * language.c (mlang__init): Use msymbol_put_func.
+
+       * m17n-core.h (M17NFunc): New function type.
+       (M17N_FUNC): New macro.
+       (msymbol_put_func, msymbol_get_func): Extern them.
+       (mplist_put_func, mplist_get_func): Extern them.
+       
+       * m17n-gui.h (mface_get_hook, mface_put_hook): Extern them.
+
+       * m17n-gui.c (mframe): Add a proper casting.
+
+       * plist.h (struct MPlist): Make the member val a union.
+       (MPLIST_VAL): Adjusted for the above change.
+       (MPLIST_FUNC): New macro.
+       (MPLIST_VAL_FUNC_P, MPLIST_SET_VAL_FUNC_P): New macros.
+
+       * plist.c (mplist_put_func, mplist_get_func): New functions.
+
+       * symbol.c (msymbol__fini): Use MPLIST_VAL.
+       (msymbol_put_func, msymbol_get_func): New functions.
+
+       * textprop.c (mtext_serialize): Use msymbol_get_func.
+       (mtext_deserialize): Likewise.
+
+2007-03-28  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (get_candidate_list): Avoid unnecessary unref.
+
+2007-03-23  Kenichi Handa  <handa@m17n.org>
+
+       * database.c (mdatabase__update): Unref plist at the tail.
+
+2007-03-21  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (update_custom_info): Fix for the case "name == Mnil &&
+       extra != Mnil".
+       (config_command): Fix for the case that configuration is
+       cancelled.
+       (config_variable): Likewise.
+       (minput_config_command): If keyseqlist is an empty list, cancel
+       the customization.
+       (minput_config_variable) If value is an empty list, cancel the
+       customization.
+       (minput_save_config): Handle cancellation of config and customize
+       correctly.
+
+2007-03-15  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (minput_config_variable): Check custom->vars (not
+       custom->cmds).
+
+2007-03-01  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (reload_im_info): Setup cmds, vars, and title of
+       im_info.
+       (check_variable_value): Fix the return value.
+
+       * database.c (mdatabase__check): If necessary, update database and
+       find a new file.
+
+2007-02-28  Kenichi Handa  <handa@m17n.org>
+
+       * database.c (get_dir_info): Set dir_info->status to
+       MDB_STATUS_OUTDATED.
+       (check_version): New function.
+       (register_database): Don't call find_database.
+       (register_databases_in_files): Don't register a database of
+       invalid version.
+       (mdatabase__update): Likewise.  Avoid unnecessary scanning.
+
+       * database.h (enum MDatabaseStatus): New membes MDB_STATUS_UPDATED
+       and MDB_STATUS_OUTDATED.
+
+       * font.h (struct MFont): Types of members type, source, and
+       spacing changed to unsigned.
+
+       * internal-gui.h (struct): Types of members category and type
+       changed to unsigned.
+
+       * internal.h (struct MText): Types of members format and coverage
+       changed to unsigned.
+
+       * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 5.
+       (M17NLIB_VERSION_NAME): Changed to "1.3.5".
+
+2007-02-23  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (Mpop): New variable.
+       (fully_initialize): Initialize Mpop.
+       (parse_action_list): Handle Mpop.
+       (take_action_list): Likewise.
+       (handle_key): When a key is unhandled, shift to the initial state
+       only if the current state has no branch action.
+
+2007-02-12  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (get_preceding_char): Unref mt if necessary.
+       (get_following_char): Likewise.
+       (parse_action_list): Fix handling of `insert' action as
+       candidates.
+       (get_candidate_list): Fix for handling (("CANDIDATE1" ...)).
+       (take_action_list): Check invalid candidate list.
+
+2007-02-06  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (integer_value): Check also ic->produced for @-N.
+
+2007-01-26  Kenichi Handa  <handa@m17n.org>
+
+       * database.c (mdatabase__update): Check mdatabase__dir_list from
+       the tail.
+
+       * font-ft.c (STRDUP_LOWER): Don't ignore the tailing spaces.
+
+2007-01-12  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (handle_key): Handle a branch action of the initial
+       state correctly.
+
+2007-01-10  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-gd.c (gd_render): Delete superfluous line.
+
+2006-12-26  Kenichi Handa  <handa@m17n.org>
+
+       * m17n.h (minput_callback): Extern it.
+
+       * input.h (minput__callback): Delte extern.
+
+       * input.c (get_surrounding_text): Adjusted for the change of
+       minput__callback to minput_callback.
+       (delete_surrounding_text): Likewise.
+       (minput_create_ic): Likewise.
+       (minput_destroy_ic): Likewise.
+       (minput_filter): Likewise.
+       (minput_set_spot): Likewise.
+       (minput_toggle): Likewise.
+       (minput_reset_ic): Likewise.
+
+       (preedit_commit): Reset ic->candidate_index, ic->candidate_from,
+       and ic->candidate_to to 0.
+       (minput_callback): Renamed from minput__callback.
+
+       * input-gui.c (win_callback): Adjusted for the change of
+       minput__callback to minput_callback.
+
+2006-12-15  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (ft_add_font): Fix typo.
+
+2006-12-06  Kenichi Handa  <handa@m17n.org>
+
+       * Version 1.3.4 released.
+
+2006-11-16  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (parse_action_list): Allow (undo 0).
+       (adjust_markers): New function.
+       (preedit_insert, preedit_delete): Call adjust_markers.
+       (preedit_replace): New function.
+       (update_candidate): Call preedit_replace instead of preedit_insert
+       and preedit_delete.
+       (filter): When ic_info->commit_key_head is nonzero, shift input
+       event keys even if there's no committed text.
+
+2006-11-10  Kenichi Handa  <handa@m17n.org>
+
+       * input.h (MInputContextInfo): New member commit_key_head.
+
+       * input.c (preedit_commit): Update ic_info->commit_key_head.
+       (take_action_list): Reset ic_info->commit_key_head on Mundo.
+       (filter): When committed, shift keys by ic_info->commit_key_head.
+
+2006-10-30  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (preedit_delete): Fix typo.
+       (take_action_list): Print more debugging information.  Allow
+       variable in arg of 'select' and `pushback'.
+
+       * database.c (gen_database_name): Don't put extra space.
+       (load_database): Print debugging information.
+       (register_databases_in_files): New arg headlen.  Callers changed.
+       (mdatabase__load_for_keys): Shorten debugging information.
+       (mdatabase_load): Don't print debugging information here.
+
+2006-10-27  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (marker_code): New arg surrounding.  Callers changed.
+       (surrounding_pos): Check if name[0] == '@'.
+       (integer_value): Fix for the change semantics of `@-N' and `@+N'.
+       (take_action_list): Likewise.
+       (get_preceding_char): If POS is zero, always call
+       get_surrounding_text.
+
+2006-10-19  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (load_variables): Fix setting of `global'.
+
+2006-10-16  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (draw_background): Be sure to set *to_x.
+       (render_glyph_string): If from == to, just return.
+
+2006-10-18  Kenichi Handa  <handa@m17n.org>
+
+       * database.c (get_dir_info): Return NULL if the directory name is
+       too long.
+       (register_databases_in_files): Call register_database with
+       MDB_STATUS_AUTO.
+       (mdatabase__update): Fix logic.  Call register_database with
+       MDB_STATUS_AUTO.
+       (mdatabase_define): Call register_database with
+       MDB_STATUS_EXPLICIT.
+
+       * input.c (delete_surrounding_text): Be sure to set members
+       preceding_text and following_text to NULL.
+       (shift_state): Save variable values in ic_info->vars_saved.
+       (preedit_commit): Don't print debug information here.  Don't
+       change ic_info->keys here.
+       (get_candidate_list): Don't ref plist.
+       (take_action_list): Don't unref return value of
+       get_candidate_list.  For undo, reset ic->produced and recover
+       ic_info->vars.  Be sure to set ic->candidate_list to NULL after
+       unref it.
+       (init_ic_info): Set ic_info->vars_saved.
+       (fini_ic_info): Unref ic_info->vars_saved.
+       (re_init_ic): Be sure to set ic->candidate_list to NULL after
+       unref it.
+       (filter): Be sure to set members preceding_text and following_text
+       to NULL.  Print debug information about produced text.  Delete
+       processed keys from ic_info->keys.
+
+       * input.h (MInputContextInfo): New member vars_saved.
+
+2006-10-16  Kenichi Handa  <handa@m17n.org>
+
+       * database.c (mdatabase__update): Fix the way to get db_info.
+
+2006-10-02  Kenichi Handa  <handa@m17n.org>
+
+       * font.h (struct MFont): New member `multiple_sizes'.  Bit-size of
+       `size' changed to 24.
+
+       * font.c (xlfd_unparse_name): Adjusted for the change of
+       MFont->size.
+       (font_score): Likewise.
+       (mfont__set_spec_from_face): Set spec->multiple_sizes to 0.
+
+       * m17n-X.c (MFontX, _MFontX): Deleted.
+       (SET_SIZE, HAVE_SIZE): Deleted.
+       (free_display_info): Adjusted for the change of
+       disp_info->font_list format.
+       (xfont_registry_list): Likewise.
+       (xfont_open): Likewise.
+       (xfont_list): Likewise.
+       (xfont_encode_char): Ignore size to find a realized font.
+       (MRealizedFontXft): Change the order of members to make it
+       compatible with MRealizedFontFT.
+
+2006-09-27  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (mfont_match_p, mfont_open, mfont_encapsulate)
+       (mfont_close): Add comments.
+
+       * mtext-lbrk.c (mtext_line_break): Add comment.
+
+2006-09-26  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (minput_get_description): Handle description about
+       inclusion-only input methods.
+
+2006-09-21  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (M_gettext): New variable.
+       (fully_initialize): Initialize M_gettext.
+       (check_description): New function.
+       (load_commands): Call check_description.
+       (config_all_commands): Be sure to unref pl.
+       (load_variables): Call check_description.
+       (config_all_variables): Be sure to unref pl.
+       (load_im_info): Call check_description.
+
+       * internal.h [ENABLE_NLS]: Include <libintl.h> and define _.
+
+       * m17n-core.c (m17n_init_core) [ENABLE_NLS]: Call bindtextdoman
+       and bind_textdomain_codeset.
+
+       * Makefile.am (AM_CPPFLAGS): Add -DGETTEXTDIR=...
+
+2006-09-15  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (reload_im_info): Update custom and global info.
+       (init_ic_info): Fix previous change.
+
+2006-09-14  Kenichi Handa  <handa@m17n.org>
+
+       * database.c: Include <libgen.h>.
+       (mdatabase__lock): Make a directory if necessary.
+
+       * input.c (resolve_command): Adjusted for the format change of
+       configured_cmds member.
+       (load_commands, load_variables): Fix for errornous data handling.
+       (config_command, config_variable): New function.
+       (config_all_commands, config_all_variables): Renamed from
+       config_commands and config_variables.  Utilize the above function.
+       (check_variable_value): Argument changed.  Callers changed.
+       (load_im_info): Call config_all_commands and config_all_variables.
+       (init_ic_info): Adjusted for the format change of configured_vars
+       member.
+       (minput__init): Initialize Mcustomized, Mconfigured, and
+       Minherited.
+       (Mcustomized, Mconfigured, Minherited): New variables.
+       (minput_get_command): Be sure to return NULL if an input method
+       use no local command.
+       (minput_get_variable): Be sure to return NULL if an input method
+       use no local variable.
+       (minput_config_command, minput_config_variable)
+       (minput_save_config): Adjusted for the format change of
+       configured_cmds and configured_vars members.
+       
+       * plist.c (write_element): Delete superfluous ':'.
+
+2006-09-13  Kenichi Handa  <handa@m17n.org>
+
+       * m17n.h (Minherited, Mcustomized, Mconfigured): Extern them.
+       (minput_config_file): Extern it.
+
+       * draw.c (Minherited): Declaration moved to input.c.
+       (mdraw__init): Don't initialize Minherited here.
+
+       * database.c (mdatabase__unlock): Be sure to unlink uniq file.
+
+2006-09-07  Kenichi Handa  <handa@m17n.org>
+
+       * textprop.c (mtext_serialize): Call mplist__serialize with the
+       arg pretty 0.
+
+       * plist.h (mplist__serialize): Prototype adjusted.
+       (mplist__assq): Extern it.
+
+       * plist.c: Include <ctype.h>
+       (PUTC, PUTS): New macros.
+       (write_symbol): New function.
+       (write_element): New arg indent.
+       (dump_string, dump_plist_element): Delete them.
+       (mplist__from_string): New arg pretty.
+       (mplist__assq): New function.
+       (mdebug_dump_plist): Use write_element.
+
+       * mtext.c (mtext_cat_char): Allocate more memory.
+       (mdebug_dump_mtext): Don't escal a newline character.
+
+       * m17n.h (minput_get_command, minput_get_variable)
+       (minput_config_command, minput_config_variable)
+       (minput_save_config): Extern them.
+
+       * m17n-core.c: Include <string.h>.
+       (m17n_init_core): If the env. var. MDEBUG_OUTPUT_FILE is "stdout",
+       use the stream stdout instead of a file of that name.
+
+       * m17n-X.c (mwin__parse_event): Fix handling of Shift and Control
+       modifiers.
+
+       * internal.h (MFAILP, MDEBUG_PRINT0): New macros.
+       (MDEBUG_PRINT, MDEBUG_PRINT1, MDEBUG_PRINT2, MDEBUG_PRINT3)
+       (MDEBUG_PRINT4, MDEBUG_PRINT5): Use MDEBUG_PRINT0.
+       (MDEBUG_DUMP): Flush the stream.
+
+       * input.h (struct _MInputMethodInfo): Delete member im.  New
+       members mdb, language, name, extra, cmds, configured_cmds,
+       bc_cmds, vars, configured_vars, bc_vars, description, and tick.
+       (MInputContextInfo): New member tick.
+
+       * input.c: Big change to improve user-side input method
+       customization.  Here, list just public API changes.
+       (minput_get_commands, minput_get_variables)
+       (minput_assign_command_keys, minput_set_variable): Label them
+       obsolete.
+       (minput_get_command, minput_get_variable)
+       (minput_config_command, minput_config_variable)
+       (minput_save_config): New functions.
+       
+       * database.h (PATH_MAX): Define it if not yet defined.
+       (PATH_SEPARATOR): Likewise.
+       (enum MDatabaseStatus): New enum.
+       (struct MDatabaseInfo): Moved from database.c.  New members status,
+       time, lock_file, and uniq_file.
+       (mdatabase__update, mdatabase__file, mdatabase__lock, mdatabase__save)
+       (mdatabase__unlock): Extern them.
+
+       * database.c: Include <time.h>.
+       (MDB_DIR_LEN): Don't include the terminating '\0' in the length.
+       (GEN_PATH): Args changed.  Callers changed.
+       (struct MDatabaseInfo): Moved to database.h.
+       (struct MDatabase, mdb_list): Deleted.
+       (mdatabase__list): New var.
+       (get_database_filename): Deleted.  Callers changed to use
+       get_database_file.
+       (find_file, get_database_file): New files.
+       (get_dir_info): Initialize new members of MDatabaseInfo.
+       (find_database): Arg chagnded.  Callers changed.
+       (free_db_info, register_database, register_databases_in_files):
+       New functions.
+       (update_database_list): Deleted.
+       (mdatabase__init): Initialize mdatabase__list instead of mdb_list.
+       (mdatabase__fini): Finalize mdatabase__list instead of mdb_list.
+       (mdatabase__update): New function.
+       (mdatabase__check): Return value changed.
+       (mdatabase__file, mdatabase__lock, mdatabase__save)
+       (mdatabase__unlock): New functions.
+
+2006-08-30  TAKAHASHI Naoto  <ntakahas@m17n.org>
+
+       * input.c (get_surrounding_text): Return -2 when surrounding text
+       is unavailable.
+       (get_following_char): Likewise.
+       (get_preceding_char): Likewise.
+       (minput__callback): Return 0 if there is a callback function,
+       otherwise -1.
+
+2006-08-17  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (reset_ic): Use shift_state to setup the current state.
+
+2006-08-02  Theppitak Karoonboonyanan  <thep@linux.thai.net>  (tiny change)
+
+       * Makefile.am (libm17n_la_LIBADD, libm17n_gui_la_LIBADD)
+       (libm17n_X_la_LIBADD, libm17n_gd_la_LIBADD, linkcore_LDADD)
+       (linkshell_LDADD, linkgui_LDADD): Use ${top_builddir}.
+
+2006-08-02  Kenichi Handa  <handa@m17n.org>
+
+       * plist.c (mdebug_dump_plist): Fix the 2nd arg to dump_plist_element.
+
+       * mtext.c (mdebug_dump_mtext): If not fullp, dump just text. 
+
+       * font-ft.c (ft_encapsulate): Add code for debugging.
+       (mfont__ft_drive_otf): Be sure to encode character before getting
+       metrics.
+
+2006-07-21  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (mdraw_text_extents): Fix previous typo.
+
+2006-07-19  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (gstring_width): New arg lbearing.
+       (render_glyph_string): Adjusted for the change of gstring_width.
+       (mdraw_text_extents): Fix lbearing of ink and line metrics.
+
+       * m17n-core.h (Mlanguage): Extern it.
+
+       * m17n.h (Mlanguage): Extern deleted. 
+
+       * mtext.c (mtext__init): Initialize Mlanguage.
+       (Mlanguage): Declaration moved from locale.c
+
+       * locale.c (mlocale__init): Don't initialize Mlanguage here.
+       (Mlanguage): Declaration moved to mtext.c.
+
+       * language.c (mlang__init): Don't initialize Mlanguage here.
+
+       * font.c (OTF_tag_name) [! HAVE_OTF]: New function.
+
+2006-07-14  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c: Use FT_BDF_H macro.  Include fontconfig/fcfreetype.h.
+       (MRealizedFontFT): New member face_encapsulated.
+       (free_ft_rfont): Pay attention to ft_rfont->face_encapsulated.
+       (ft_gen_font): New function.
+       (ft_add_font): Use ft_gen_font.
+       (ft_list_script): Store lists in ft_script_list.
+       (ft_check_otf): New arg ft_face.  Caller changed.
+       (ft_check_language): Likewise.
+       (ft_check_script): Likewise.
+       (ft_encapsulate, ft_close): New functions.
+       (mfont__ft_driver): Initialize members encapsulate and close.
+       (mfont__ft_drive_otf): Use OTF_open_ft_face if it is available.
+
+       * font.h (struct MRealizedFont): New member encapsulating.
+       (struct MFontDriver): New members encapsulate and close.
+
+       * font.c (mfont__match_p): If FONT is realized, check capability
+       by font drivers's check_capability method.
+       (mfont_match_p, mfont_open, mfont_encapsulate, mfont_close): New
+       functions.
+
+       * m17n-X.c (xfont_list_family_names): Delete unused var.  Fix
+       declarations of foundry and fam local vars.
+       (xft_driver): Make it static.
+
+       * m17n-gui.h (mfont_match_p, mfont_open, mfont_encapsulate)
+       (mfont_close): Extern them.
+
+       * m17n-gd.c (device_open): Don't specify foundry and family of the
+       default face.
+
+2006-07-11  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-gui.c (m17n_fini_win): Set null_interface.handle to NULL;
+
+2006-07-13  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (fc_build_charset): Return NULL if FcCharSet can't be
+       created.
+       (ft_check_script): Delete unused var.
+       (ft_list_capability): Likewise.
+
+       * font.c (mfont__get_capability): Setup cap->otf.
+       (Motf): Make it global.
+       (mfont_get_prop): Accept Mlanguage, Mscript, and Motf as key arg.
+
+       * font.h (MFontCapability): New member otf.
+
+       * language.c (mlang__fini): Delete unused vars.
+
+       * m17n-gui.h (Motf): Extern it.
+
+       * database.c (update_database_list): Delete unused vars.
+
+2006-07-07  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (DEVICE_DELTA): Fix typo.
+
+2006-07-06  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (mfont__lookup_fontset): Don't ignore family and
+       foundry of face.
+
+2006-07-05  TAKAHASHI Naoto  <ntakahas@m17n.org>
+
+       * database.c: Update comments.
+
+2006-07-05  Kenichi Handa  <handa@m17n.org>
+
+       * database.c (PATH_MAX): Define it if not yet defined.
+       (PATH_SEPARATOR, USE_GEN_PATH, GEN_PATH, GEN_PATH_FROM_MT): New
+       macros.
+       (get_database_filename): Use GEN_PATH.
+       (get_dir_info): Don't include the last '/' in directory name.
+       (register_database): New function.
+       (update_database_list): Use register_database.  Search all
+       directories in mdatabase__dir_list for wildcard databases.
+       (mdatabase__init): Check "~/.m17n.d".
+
+2006-07-03  Kenichi Handa  <handa@m17n.org>
+
+       * input-gui.c (win_callback): If is ic->candidate_show zero, don't
+       push reverse property.
+
+       * plist.c (dump_plist_element): Fix previous change.
+
+2006-06-28  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (xlfd_unparse_name): Suppress the heading '-' if not
+       necessary.
+
+       * draw.c (MbidiNSM): New variable.
+       (visual_order) [! HAVE_FRIBIDI]: Clear levels at first.  Pay
+       attention to bidi type NSM.
+       (mdraw__init): Initialize MbibiNSM.
+
+       * language.c (mscript__char_list): Fix finding a char-list element.
+
+       * plist.c (dump_string): Return number of printed characters.
+       (dump_plist_element): Print elements more compactly.
+
+2006-06-23  Kenichi Handa  <handa@m17n.org>
+
+       * Makefile.am (BUILD_LIBS): Don't increment it conditionally.
+       (include_HEADERS): Likewise.
+
+2006-06-23  TAKAHASHI Naoto  <ntakahas@m17n.org>
+
+       * language.c: Update documentation.
+
 2006-06-23  Kenichi Handa  <handa@m17n.org>
 
        * font-ft.c (struct MFontFT): Delete member lang.
@@ -3033,5 +3840,5 @@ Lesser General Public License for more details.
 
 You should have received a copy of the GNU Lesser General Public
 License along with the m17n library; if not, write to the Free
-Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307, USA.
+Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA.