*** empty log message ***
[m17n/m17n-lib.git] / src / ChangeLog
index 649e41a..650c769 100644 (file)
+2005-12-22  Kenichi Handa  <handa@m17n.org>
+
+       * Version 1.3.0 released.
+
+2005-12-22  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (ft_list): If the specified font has no property,
+       return all fonts.
+
+2005-12-20  Kenichi Handa  <handa@m17n.org>
+
+       * character.c (mchar_get_prop): Check char_prop_list.
+       (mchar_put_prop, mchar_get_prop_table): Likewise.
+
+2005-12-18  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (minput_get_title_icon): If LANGUAGE is Mt, try also a
+       file name sans language.
+
+2005-12-16  TAKAHASHI Naoto  <ntakahas@m17n.org>
+
+       * input.c: Fix typo in comments.
+
+2005-12-14  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (minput_get_title_icon): Check the default icon for the
+       input method.
+
+2005-12-13  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (Mless_equal, Mgreater_equal): New variables.
+       (parse_expression, resolve_expression, parse_action_list)
+       (take_action_list): Handle the aboves.
+       (filter): Treat key S-X as X.
+       (minput__init): Initialize Mless_equal and Mgreater_equal.
+       (minput_get_title_icon): New function.
+
+       * m17n.h (minput_get_title_icon): Extern it.
+
+       * database.c (get_database_filename): Return a filename instead of
+       file pointer.
+       (load_database): Adjusted for the above change.
+       (mdatabase__load_for_keys): Likewise.
+       (mdatabase__find_file): New function.
+
+       * database.h (mdatabase__find_file): Extern it.
+
+       * font.h (mfont__resize): Delete extern.
+
+       * font.c (mfont__list): Check resize ratio.
+       (mfont__resize): Delete it.
+       (mfont_resize_ratio): Include the code of mfont__resize.
+
+       * font-ft.c (ft_open): Check resize ratio.
+
+       * m17n-X.c (xfont_open): Check resize ratio.
+       (xft_open): Likewise.
+
+2005-12-07  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (take_action_list): If take_action_list return -1,
+       return -1.
+       (handle_key): Likewise.
+
+       * face.c (mface__for_chars): When font is specified and layouter
+       is found for it, if the layouter doesn't support one of a
+       character, use a face sans layouter for it.
+
+2005-12-06  Kenichi Handa  <handa@m17n.org>
+
+       * fontset.c (mfont__lookup_fontset): If only a fallback font is
+       found, don't use it for more than one character.
+
+2005-12-05  Kenichi Handa  <handa@m17n.org>
+
+       * face.c (mface__realize): Set rfont->layouter to Mnil.
+       (mface__for_chars): Fix handling of layouter.
+
+       * character.h (mchar__define_prop): Extern it.
+
+       * database.c (update_database_list): Call mchar__define_prop if
+       necessary.
+
+       * character.c (mchar__init): Don't call mchar_define_property.
+       Instead just initialize property keys.
+       (mchar__fini): Free char_prop_list only if it's not NULL.
+       (mchar__define_prop): New function.
+       (mchar_define_property): Call mchar__define_prop.
+
+       * m17n-core.c (m17n_fini_core): Call mtext__prop_fini at after
+       mplist__fini.
+
+2005-12-02  Kenichi Handa  <handa@m17n.org>
+
+       * language.c (mlang__init): Handle extra chars.
+
+       * m17n-gui.h (mfont_check): Adjust prototype.
+
+       * m17n-X.c (xfont_driver): Specify xfont_check_capability.
+       (xfont_check_capability): New function.
+       (xft_driver): Specify xft_check_capability.
+       (xft_check_capability): New function.
+
+       * font-ft.c (M0_3): Delete it.
+       (M0): New variable.
+       (ft_get_charmaps): Refer to M0.
+       (fc_parse_pattern): Fix previous change.
+       (ft_list_language): Check also extra chars.
+       (ft_check_otf): Define it even if HAVE_OTF is undef.
+       (ft_check_lang): Check the result of FcLangSetHasLang against
+       FcLangDifferentLang.  Check also extra chars.
+       (ft_list_capability): Delete ifdef HAVE_OTF.
+       (ft_select): Likewise.
+       (ft_open): Improve debug information.
+       (ft_check_capability): New function.
+       (mfont__ft_driver): Specify ft_check_capability.
+       (mfont__ft_init): Initialize M0.
+
+       * fontset.c (get_font_from_group): New function.
+       (mfontset__get_font): New function.
+
+       * fontset.h (mfontset__get_font): Extern it.
+
+       * font.c (OTF_tag): Define it if HAVE_OTF is undef.
+       (mfont__fini): Delete ifdef HAVE_OTF.
+       (free_font_capability): Likewise.
+       (mfont__get_capability): Likewise.
+       (mfont__check_capability): New function.
+       (mfont_check): Change the order of arguments.  Use
+       mfontset__get_font.
+
+       * font.h (struct MFontDriver): New member check_capability.
+       (MFontCapability): Delete ifdef HAVE_OTF.
+       (mfont__check_capability): Extern it.
+
+       * face.c (mface__realize): Fix handling of FONT arg.
+       (mface__for_chars): Fix handling of explicitly specified font.
+
+2005-11-25  Kenichi Handa  <handa@m17n.org>
+
+       * font-flt.c (run_command): Print debug info for
+       left/rigth_padding
+
+       * draw.c (layout_glyphs): Fix handling of left/right_padding.
+
+       * face.c (mface__for_chars): Check rfont before accessing the
+       members.
+
+2005-11-21  Kenichi Handa  <handa@m17n.org>
+
+       * Makefile.am (lib_LTLIBRARIES): Define it conditionaly on
+       WITH_GUI.
+
+       * fontset.c (fontset_table): New variable.
+       (free_fontset): Call M17N_OBJECT_UNREGISTER.
+       (mfont__fontset_init): Add fontset_table as an object array.
+       (mfont__realize_fontset): Ref FONTSET.
+       (mfont__free_realized_fontset): Unref REALIZED->fontset.
+       (mfontset): Call M17N_OBJECT_REGISTER.
+       (mfontset_copy): Likewise.
+
+       * input.c (handle_key): For debugging, print information about
+       alias key.
+       (filter): Add an alias for Meta and Alt modifiers.
+       (Mcond, Mplus, Mminus, Mstar, Mslush, Mand, Mor, Mnot): New
+       variables.
+       (minput__init): Initialize them.
+       (parse_expression): New function.
+       (resolve_expression): New function.
+       (parse_action_list): Handle expressions by parse_expression.
+       (take_action_list): Handle expressions by resolve_expression.
+       (parse_nested_list_value): Fix previous change.
+       (resolve_command): Fix handling of the return value of
+       get_nested_list.
+
+2005-11-18  Kenichi Handa  <handa@m17n.org>
+
+       * font-ft.c (ft_check_otf, otf_script_list): Define only when
+       HAVE_OTF is defined.
+       (ft_list_capability): Call ft_check_otf only when HAVE_OTF is
+       defined.
+       (ft_select): Likewise.
+
+       * font.c (mfont_list): Fix for the case that FONT is NULL.
+       (OTF_tag): Delete it.
+       (load_otf_script_list): Define only when HAVE_OTF is defined.
+       (mfont__fini): Unref otf_script_list only when HAVE_OTF is
+       defined.
+
+       * draw.c (truncate_gstring): Be sure to truncate at
+       glapheme-cluster boundary.
+
+2005-11-11  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (delete_surrounding_text): Clear cache if necessary.
+
+2005-11-09  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (compose_glyph_string): Update prev->rface->rfont if the
+       glyph prev is also supported by the current flt.
+
+2005-11-08  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-X.c (xft_render): Cancel previous change.
+
+2005-11-07  Kenichi Handa  <handa@m17n.org>
+
+       * input.c: Include <stdlib.h>.
+       (get_surrounding_text, delete_surrounding_text)
+       (get_preceding_char, get_following_char): New functions.
+       (integer_value): New arg surrounding.  If it is nonzero, try to
+       get a surrounding character.  Callers changed.
+       (take_action_list): Check `value' before setting an element.
+       (destroy_ic): Unref ic_info->preceding_text and
+       ic_info->following_text.
+       (minput__init): Initialize Minput_get_surrounding_text and
+       Minput_delete_surrounding_text.
+       (Minput_get_surrounding_text, Minput_delete_surrounding_text): New
+       variables.
+       (filter): Unref ic_info->preceding_text and
+       ic_info->following_text.
+
+       * m17n.h (Minput_get_surrounding_text, Minput_delete_surrounding_text):
+       Extern them.
+
+       * input.h (MInputContextInfo): New members preceding_text and
+       following_text.
+
+2005-11-04  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (parse_nested_list_value): Fix handling of the global
+       definition.
+       (get_nested_list): Get global definitions by load_partial_im_info.
+       (preedit_commit): Set ic->candidates_changed to bitwise or of enum
+       MInputCandidatesChanged.
+       (take_action_list): Likewise.
+       (reset_ic): Likewise.
+       (create_ic): Don't pay special attention to
+       Mcandidates_group_size.
+       (load_partial_im_info): Call mdatabase_find with correct 4th arg.
+       (minput_set_variable): Get a definition of varible by
+       mplist_find_by_value, not mplist_get.
+
+       * m17n.h (enum MInputCandidatesChanged): New enum.
+
+2005-11-01  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-X.c (xft_render): Check xft_draw's drawable before changing
+       it.
+       (mwin__destroy_window): If xft_draw's drawable is win, change it
+       to device->drawable before destroying win.
+
+2005-10-31  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (load_im_info): Fix adding of state.
+
+       * m17n-core.c (m17n_fini_core): Fix reporting of module
+       finalization.
+
+       * m17n.c (m17n_fini): Fix reporting of module finalization.
+
+       * m17n-gui.c (m17n_init_win): Fix reporting of module
+       finalization.
+
+2005-10-29  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (get_candidate_list): Fix the timing of referring plist.
+
+2005-10-28  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (load_branch): Ignore an undefined map name.
+       (load_im_info): Set im_info->title from `name' only if it's not
+       Mnil.
+       (shift_state): Always update ic->status.
+       (adjust_candidates): Renamed from adjust_candidate_command.
+       Argument changed.  Caller changed.
+       (get_candidate_list, regularize_action): New functions.
+       (take_action_list): Use them.  On handling Munhandle, don't set
+       ic_info->used to 0.
+       (handle_key): If KEY is not handled by MAP, and MAP has
+       branch_actions, perform them.
+
+       * database.c (mdatabase__fini): Free dir_info->filename;
+
+2005-10-20  Kenichi Handa  <handa@m17n.org>
+
+       * input.c (marker_code): Accept '@@'.
+       (integer_value): Handle '@@'.
+       (parse_action_list): Accept a symbol argument.
+       (take_action_list): Resolve the symbol argument.  Handle the
+       integer argument.
+
+2005-10-18  Kenichi Handa  <handa@m17n.org>
+
+       * input.c: Include "charset.h".
+       (M_candidates, Mcandidates_group_size, Mcandidates_charset): New
+       variables.
+       (MIMState): New member (M17NObject control).
+       (lookup_nested_list, set_nested_list, parse_nested_list_value)
+       (get_nested_list, resolve_variable): New functions.
+       (integer_value): New arg (MPlist **value).  Set it to the plist
+       element containing the value.
+       (resolve_command): New function.
+       (load_translation): New arg (MPlist *map_actions).
+       (load_branch): New args language and name.  If `keylist' is a
+       symbol, resolved that as a command name.
+       (free_map): New arg top.  Free map->map_actions only if top is
+       nonzero.
+       (free_state): New function.
+       (load_state): New arg name.
+       (im_info_list): New variable.
+       (free_im_info, get_im_info_by_tags): New functions.
+       (load_im_info): Arg key changed to plist.  Handle `include'.
+       Return (MInputMethodInfo *).
+       (preedit_commit): Ref ic->candidate_list.
+       (get_select_charset, adjust_candidate_command): New functions.
+       (take_action_list): Handle `include'.  Adjust candidate action
+       properly.  Handle control variables `candidates-charset' and
+       `candidates-group-size'.
+       (open_im): Use get_im_info.
+       (create_ic): Get global variables.
+       (load_partial_im_info): New function.
+       (get_im_info): New function.
+       (check_command_keyseq, check_command_list, check_variable_list):
+       New functions.
+       (minput__init): Don't handle M_database_hook and Mdetail_text.
+       Initialize M_candidates, Mcandidates_group_size,
+       Mcandidates_charset.
+       (parse_variable_list, get_variable_list, parse_command_list)
+       (get_command_list): Delete them.
+       (MDatabaseStatList, imdir_stat_list, input_method_hook): Delete them.
+       (minput__fini): Simply unref command_list and variable_list.
+       (minput_get_description): Adjusted for the new form of description.
+       (minput_get_commands): Use get_nested_list.
+       (minput_assign_command_keys): Likewise.
+       (minput_get_variables, minput_set_variable): Likewise.
+
+       * input.h (MInputMethodInfo): New members im and maps.
+
+       * database.h (M_database_hook): Delete extern.
+       (MDatabaseHookFunc): Delete extern.
+       (mdatabase__check): Extern it.
+
+       * database.c: Include <glob.h>.
+       (MAX_TIME): New macro.
+       (Masterisk): New variable.
+       (get_database_stream): Argument changed to (MDatabaseInfo *).
+       Callers changed.
+       (get_dir_info): Renamed from duplicate_dirname.  Callers changed.
+       (find_database): New function.
+       (update_database_list): New function.
+       (mdatabase__init): Initialize Masterisk.  Setup mdb_list by
+       calling update_database_list.
+       (mdatabase__check): New function.
+       (mdatabase_find): Use update_database and find_database.  Don't
+       handle MDatabaseHookFunc.
+       (mdatabase_list): Call update_database at first.
+       (mdatabase_define): Adjusted for the change of mdb->extra_info.
+       (MDatabaseList): New type.
+
+       * plist.h (mplist_conv, mplist__pop_unref): Extern them.
+
+       * m17n.h (Mdetail_text): Delete extern.
+
+       * m17n-core.h (mplist_conc): Delete extern.
+
+       * plist.c (mplist__conc): Renamed from mplist_conc.  Don't ref
+       tail.
+       (mplist_conc): Renamed to mplist__conc.
+       (mplist__pop_unref): New function.
+
+2005-10-14  Kenichi Handa  <handa@m17n.org>
+
+       * plist.c (read_mtext_element): Ignore the sequence of '\\' and
+       newline.
+       (read_element): If keys is an empty plist, return any element
+       found first.
+       (dump_plist_element): Check if plist is nested.
+       (mplist_conc): Always ref tail.
+       (mplist_set): If key is a managing key, ref val in advance.
+
+       * plist.h (MPLIST_VAL_MANAGED_P): Delete this macro.
+       (MPLIST_NESTED_P, MPLIST_SET_NESTED_P): New macros.
+       (MPLIST_ADD_PLIST, MPLIST_PUSH_PLIST, MPLIST_PUT_PLIST): New
+       macros.
+
+       * fontset.c (free_fontset): Unref fontset_list if necessary.
+       (mfont__fontset_fini): Don't free fontset_list.  Unref
+       default_fontset.
+       (mfont__realize_fontset): Initialize request.
+       (mfontset): Ref default_fontset or fontset only if necessary.
+       (mfontset_copy): Don't ref copy.
+
+       * draw.c (render_glyphs): Check gend->type before checking
+       gend->to.
+
+       * font-ft.c (mfont__ft_fini): Unref ft_default_list.  Set all
+       unrefed plists to NULL.
+
+2005-10-04  Kenichi Handa  <handa@m17n.org>
+
+       * textprop.c (mtext_serialize): Be sure to make mt
+       MTEXT_FORMAT_UTF_8 and NULL terminated.
+
+       * m17n-gui.c (m17n_init_win): Initialize Mcolormap.
+
+       * draw.c (mdraw_glyph_list): Fix settting of glyphs->font->source.
+
+2005-10-03  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c (mdraw_glyph_info): Pay attention to the case that FROM
+       is not at the beginning of line.
+
+2005-09-22  Kenichi Handa  <handa@m17n.org>
+
+       * input.c: Include <sys/stat.h> and <unistd.h>.
+       (Minclude, Mcommit, Munhandle): New variables.
+       (minput__init): Initialize them.  Push only Mstate to
+       load_im_info_keys.   Add aliases C-lowercase for C-uppercase.
+       (parse_action_list): Allow integer arg for undo.  Handle Mcommit
+       and Munhandle.
+       (load_input_method): Handle "include" directive.  If no states are
+       loaded, return -1.
+       (shift_state): If state_name is Mt, shift back to the previous
+       state.  Call preedit_commit to commit preedit text.
+       (preedit_commit): New function.
+       (take_action_list): Improve debug printing.  Handle commit and
+       unhandle commands.
+       (handle_key): Check the return value of take_action_list.  Don't
+       take branch_actions just after changing to the root map.
+       (reset_ic): Reset all ic_info members.
+       (filter): When a key is not handled, just move ic_info->keys
+       instead fo calling reset_ic.
+       (load_im_info): If key is not Mstate, push Mmap to
+       load_im_info_keys.
+       (MDatabaseStatList): New type.
+       (imdir_stat_list): New variable.
+       (input_method_hook): Don't cancel the hook.  Check the
+       modification time of directories.
+       (minput__fini): Free imdir_stat_list;
+
+       * input.h (MInputContextInfo): New member prev_state.
+
+       * m17n-core.h (mplist_conc): Extern it.
+
+       * plist.c (mplist_conc): New function.
+
+       * mtext.c (mdebug_dump_mtext): Escape '"' and '\\' by '\\'.
+
+       * font.h (MRealizedFont): New member average_width.
+
+       * font-ft.c (ft_open): Set rface->average_width.
+
+       * font.c (xlfd_unparse_name): Print '*' before registry name.
+
+       * m17n-X.c (MDisplayInfo): New member AVERAGE_WIDTH.
+       (xfont_open): Set rfont->average_width.
+       (xft_open): Likewise.
+       (device_open): Initialize disp_info->AVERAGE_WIDTH.
+
+       * internal-gui.h (struct MFrame): New member average_width.
+
+       * m17n-gui.c (mframe): Fix setting of frame->rfont.
+       (mframe_get_prop): Return the average_width of a font.
+
+       * face.c (mface__realize): Set rface->average_width.
+       (mface__update_frame_face): Set frame->average_width.
+
+       * face.h (MRealizedFace): New member average_width.
+
+2005-09-19  Kenichi Handa  <handa@m17n.org>
+
+       * font.c (xlfd_unparse_name): New arg full_xlfd.
+       (mfont__encode_char): Use shortcut only for X core fonts.
+       (mfont_unparse_name): Call xlfd_unparse_name with full_xlfd arg 1.
+       (mfont_put_prop): Handle `language' property.
+       (mdebug_dump_font): Call xlfd_unparse_name with full_xlfd arg 0.
+       Print file can capability info too.
+
+       * m17n-core.c (mdebug__output): New variable.
+       (SET_DEBUG_FLAG): Unset mask if env_value is '0'.
+       (m17n_init_core): Handle MDEBUG_ALL and MDEBUG_OUTPUT_FILE.
+       (m17n_fini_core): Close mdebug__output if it's not stderr.
+
+       * m17n-X.c (MDisplayInfo): New member MULE_BASELINE_OFFSET.
+       (xfont_open): Handle baseline_offset.
+       (xfont_find_metric): Likewise.
+       (xfont_render): Likewise.
+       (xft_open): Likewise.
+       (xft_render): Likewise.
+
+       * internal.h (MDebugMaskBit): Add MDEBUG_ALL.
+       (mdebug__output): Extern it.
+       (MDEBUG_PRINT, MDEBUG_PRINT1, MDEBUG_PRINT2, MDEBUG_PRINT3)
+       (MDEBUG_PRINT4, MDEBUG_PRINT5): Print to medebug__output.
+       (MDEBUG_DUMP): New macro.
+       (MDEBUG_PRINT_TIME): Print to medebug__output.
+
+       * font.h (MRealizedFont): New member baseline_offset.
+
+       * font-ft.c (ft_get_charmaps): Check if the font support iso8859-1
+       characters.
+       (fc_weight_table): Add FC_WEIGHT_REGULAR.
+       (ft_list_family): Check alias.
+       (ft_list_language): If language is "en", don't try to the second
+       step.
+       (ft_default_list): New variable.
+       (ft_list_default): New function.
+       (ft_select): If family is not specified, try only the default
+       fonts.  Treat the weights normal and medium same.
+       (ft_open): Fix debug message.  If registry is not specified, try
+       unicode-bmp.  Handle _MULE_BASELINE_OFFSET property of BDF fonts.
+       (ft_find_metric): Likewise.
+       (ft_render): Likewise.
+       (ft_list): Fix debug message.  Accept the registring iso8859-1.
+       If family is not specified, try only the default fonts.
+
+       * face.c (mface__realize): Fix logic of opening a font.
+
+2005-09-16  Kenichi Handa  <handa@m17n.org>
+
+       * face.c (mface__realize): 
+
+       * m17n.h (Minput_focus_move, Minput_focus_in, Minput_focus_out):
+       Extern them.
+
+       * input.c (shift_state): Fix the condition of taking init actions.
+       (take_action_list): Fix handling of pushback action.
+       (handle_key): Don't change key while checking its alias.
+       (minput__init): Initialize new variables.
+       (Minput_focus_move, Minput_focus_in, Minput_focus_out): New
+       variables.
+
+2005-09-12  Kenichi Handa  <handa@m17n.org>
+
+       * mtext.c (mtext__uppercase): Add proper open/close parens.
+       (mtext_titlecase): Add proper casting.
+
+       * input.c (parse_action_list): Handle the case that the arg is a
+       key sequence (MText or MPlist).
+       (take_action_list): Likewise.
+       (shift_state): Shorter debug message.
+       (handle_key): Terminate a debug message by "\n".
+       (reset_ic): Don't take initial actions here.
+       (minput_open_im): Print a debug message.
+       (minput_close_im): Likewise.
+       (minput_create_ic): Likewise.
+       (minput_destroy_ic): Likewise.
+
+2005-09-09  TAKAHASHI Naoto  <ntakahas@m17n.org>
+
+       * mtext.c (mtext_lowercase, mtext_titlecase, mtext_uppercase):
+       Change API.
+
+2005-09-07  TAKAHASHI Naoto  <ntakahas@m17n.org>
+       * character.c: Add "cased", "soft-dotted", and "case-mapping" in
+       mchar__init ().
+
+       * character.c: Add Japanese documentation for
+       mchar_get_prop_table ().
+
+2005-09-06  TAKAHASHI Naoto  <ntakahas@m17n.org>
+
+       * mtext.c (tricky_chars, *cased, *soft_dotted, *case_mapping)
+       (MCharTable *combining_class, Mlt, Mtr, Maz, gr03A3, lt0049,
+       (lt004A, lt012E, lt00CC, lt00CD, lt0128, tr0130, tr0049, tr0069):
+       New variables.
+       (init_case_conversion): New function.
+       (CASE_CONV_INIT, REPLACE, DELETE, LOOKUP): New macros.
+       (uppercase_precheck, lowercase_precheck, final_sigma)
+       (after_soft_dotted, more_above, before_dot, after_i)
+       (mtext_uppercase, mtext_titlecase, mtext_lowercase): New functions.
+
+2005-09-05  TAKAHASHI Naoto  <ntakahas@m17n.org>
+
+       * plist.c (read_mtext_element): Fix previous change.
+
+2005-09-05  Kenichi Handa  <handa@m17n.org>
+
+       * plist.c (read_mtext_element): Handle \uXXXX notation.
+
+       * internal.h (MTABLE_MALLOC): Don't use a local variable.
+       (MTABLE_ALLOCA): Change the name of local variable.
+
+       * m17n-gd.c (device_open): Define it even if HAVE_GD nor
+       HAVE_FREETYPE are defined.
+
+       * m17n-X.c: Check HAVE_X11.
+
+       * Makefile.am (X_LD_FLAGS): Use @X11_LD_FLAGS@ instead of
+       directory listing libraries.
+       (noinst_PROGRAMS): Define it only in maintainer mode.
+
+2005-09-02  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-gui.h (mdraw_line_break_option): Extern it.
+
+       * draw.c (truncate_gstring): Use find_glyph_in_gstring to find the
+       end of the first glyph.
+       (GET_LB_TYPE, find_break_backward, find_break_forward): Delete
+       them.
+       (mdraw_line_break_option): New variable.
+       (mdraw_default_line_break): Use mtext_line_break.
+
+       * mtext.h (wordseg_func_table): Don't extern it.
+       (mtext__wseg_fini): Extern it.
+
+       * mtext.c: Don't include word-thai.h.
+       (wordseg_func_table): Delete this variable.
+       (mtext__init): Don't initialize above.  Don't call
+       mtext__word_thai_init.
+       (mtext__fini): Don't free wordseg_func_table.  Call
+       mtext__wseg_fini instead fo mtext__word_thai_fini.
+       (MTextWordsegFunc): Don't typedef it.
+       (mtext__word_segment): Moved to mtext-wseg.c.
+
+       * m17n-core.h (enum MTextLineBreakOption): New enum.
+       (mtext_line_break): Extern it.
+
+       * mtext-wseg.c: New file.
+
+       * mtext-lbrk.c: New file.
+
+       * Makefile.am (libm17n_core_la_SOURCES): Delete word-thai.[ch],
+       add mtext-lbrk.c and mtext-wseg.c.
+
+       * textprop.c (mtext__adjust_plist_for_change): Pay attention for
+       the case that head is NULL.
+
+2005-09-01  Kenichi Handa  <handa@m17n.org>
+
+       * word-thai.c (wordseg_propertize): If the property value is nil,
+       don't make the property no-merge.
+       (thai_wordseg): Don't require *from and *to are set a priori.  Pay
+       attention to the case that they are NULL.
+       (mtext__word_thai_init): Make the name of Mthai_wordseg starts
+       with two spaces.
+
+       * character.c (mchar_get_prop_table): New function.
+
+       * textprop.h (mtext__adjust_plist_for_change): Prototype adjusted.
+
+       * m17n-core.h (mtext_insert, mtext_replace): Extern them.
+       (mchar_get_prop_table): Extern it.
+
+       * textprop.c (prepare_to_modify): New arg deleting.  Callers changed.
+       (mtext__adjust_plist_for_change): Argument changed.  Callers changed.
+
+       * internal.h (enum MTextCoverage): New enum.
+       (MText): New member coverage.
+
+       * mtext.c (FORMAT_COVERAGE): New macro.
+       (insert): Copy mt2->coverage.
+       (mtext__from_data): Initialize mt->coverage.
+       (mtext__adjust_format): Update mt->coverage.
+       (mtext): Initialize mt->coverage.
+       (mtext_set_char): Adjust args to mtext__adjust_plist_for_change.
+       Update mt->coverage if necessary.
+       (mtext_duplicate): Copy mt->coverage.
+       (mtext_insert, mtext_replace): New functions.
+       (mtext_dup): Use mtext_duplicate.
+       (mtext__word_segment): Don't set *from and *to if a word
+       segmentation funcion is not found.
+       (mtext_ins_char): Fix typo.
+
+2005-08-25  Kenichi Handa  <handa@m17n.org>
+
+       * font.h (MFont): New member for_full_width.
+
+       * font.c (compare_font_score): Prefer a font of not
+       for_full_width.
+
+       * m17n-X.c (xfont_registry_list): Set font.for_full_width if the
+       registry charset of a font is one of CJK charsets.
+
+       * font-ft.c (fc_parse_pattern): Set font->for_full_width if a font
+       supports some of CJK.
+
+2005-08-24  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-gui.h (Mascent, Mdescent): Don't extern them.
+
+       * m17n-gui.c (null_device_open): Check Mresolution param and set
+       frame->dpi.
+
+       * m17n-gd.c (device_open): Check Mresolution param and set
+       frame->dpi.
+
+       * m17n-X.c (MWDevice): New member resy.
+       (xfont_open): Set ascent, descent, and max_advance members of
+       rfont.
+       (xft_open): Likewise.
+       (device_open): Compare also screen_num to find a device.  Set
+       device->resy and frame->dpi.
+
+       * internal-gui.h (MFrame): New member dpi.
+
+       * font.h (MRealizedFont): New member max_advance.
+
+       * font.c (xlfd_unparse_name): Handle the case of font->size < 0.
+       (mfont__init): Don't initialize Mascent, Mdescent.
+       (Mascent, Mdescent): Delete these variables.
+       (mfont_get_prop): Fix previous change.  Check Mfont_ascent and
+       Mfont_descent instead of Mascent and Mdescent.
+       (mfont_put_prop): Allow negative size.
+       (mfont_find): Handle the case of spec->size < 0.  Fix previous
+       change.
+       (mfont_list): Handle the case of spec->size < 0.
+       (mfont_check): Likewise.
+
+       * font-ft.c (STRDUP_LOWER): Ignore the tailing spaces.
+       (fc_get_pattern): Handle the case of font->size < 0.
+       (ft_open): Set ascent, descent, and max_advance members of rfont.
+       (ft_find_metric): Improve rounding.
+       (mfont__ft_parse_name): If FC_PIXEL_SIZE is not available, set
+       FC_SIZE.
+
+       * face.c (mface__realize): Handle the case of font->size < 0.
+
+2005-08-22  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (MConverterStatus): Change the member buf to union.
+       (mconv_buffer_converter): Add const to the arg buf.
+       (mconv_decode_buffer, mconv_rebind_buffer): Likewise.
+       (mconv_decode): Adjusted for the change of MConverterStatus.
+       (mconv_encode_range): Likewise.
+
+       * m17n.h (mconv_buffer_converter): Prototype adjusted.
+       (mconv_decode_buffer, mconv_rebind_buffer): Likewise.
+
+2005-08-20  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-gui.h (mfont_from_name): Prototype adjusted.
+       (Mspacing, Mascent, Mdescent, Mmax_advance): Extern them.
+
+       * m17n-X.c (xfont_open): Set members ascent, descent, and
+       max_advance of rfont.
+       (xft_open): Likewise.
+
+       * font-ft.c (ft_open): Set members ascent, descent, and max_advance
+       of rfont.
+       (mfont__ft_parse_name): Add const to the arg name.
+
+       * font.c (xlfd_parse_name): Add const to the arg name.  Call
+       mfont__set_property instead of mfont_set_spec.  Set font->spacing.
+       (xlfd_unparse_name): Handle spacing.
+       (mfont__init): Initialize new variables.
+       (mfont__id): Handle spacing.
+       (mfont__merge): Likewise.
+       (mfont__set_spec): This function deleted.
+       (mfont__parse_name_into_font): Add const to the arg name.  Fix the
+       condition of calling mfont__ft_parse_name.
+       (Mspacing, Mascent, Mdescent, Mmax_advance): New variables.
+       (mfont_get_prop): Handle properties spacing, ascent, descent,
+       and max-advance.
+       (mfont_find): Return a realized font.
+       (mfont_from_name): Add const to the arg name.
+
+       * font.h (enum MFontProperty): New member MFONT_SPACING.
+       (enum MFontSpacing): New enum.
+       (MFont): New members spacing and max_advance.
+       (mfont__ft_parse_name): Prototype adjusted.
+       (mfont__set_spec): Extern deleted.
+       (mfont__parse_name_into_font): Prototype adjusted.
+
+2005-08-19  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-gui.h (mfont_parse_name): Prototype adjusted.
+
+       * font.c (mfont_list): If FONT is null, use a temporary font.
+       (mfont_parse_name): Add const to the arg name.
+
+2005-08-18  Kenichi Handa  <handa@m17n.org>
+
+       * word-thai.c: Surround code by #ifdef and #endif to escape from
+       doxygen.
+
+       * font-ft.c: Mostly re-written.
+
+       * font-flt.c (FontLayoutCmdOTF): This type deleted.
+       (FontLayoutCmd): Type of the member otf changed..
+       (load_otf_command): Adjusted for the format change of otf command.
+       (load_command): Likewise.
+       (free_flt_command): Unref cmd->body.otf.
+       (run_otf): Ajusted for the type change of otf_cmd.
+       (run_command): Ajusted for the type change of otf_cmd.  On
+       debugging, print ctx->combining_code.
+       (mfont__flt_run): Initialize ctx's members code_offset,
+       combining_code, and left_padding to 0.
+
+       * face.h (struct MRealizedFace): New member font.
+       (mface__realize): Prototype adjusted.
+
+       * face.c (find_realized_face): New arg font.
+       (find_realized_face): Adjusted for the change of MFont.
+       (mface__init): Call M17N_OBJECT_ADD_ARRAY.
+       (mface__fini): Don't call mdebug__report_object.
+       (mface__realize): New arg font.
+       (mface__for_chars): Adjusted for the change of mfont__encode_char.
+       Optimize the latin case.
+       (mface__free_realized): Free rface->font.
+       (mface__update_frame_face): Adjusted for the change of mface__realize.
+       (mface_equal): New function.
+
+       * draw.c (Mcommon): New variable.
+       (visual_order): Args to mfont__encode_char changed.
+       (compose_glyph_string): Handle Mfont text property.
+       (layout_glyphs): Adjusted for the change of MFont.
+       (mdraw__init): Initialize Mcommon.
+       (mdraw_glyph_info): Adjusted for the change of MRealizedFont.
+
+       * font.h (enum MFontType): Members completely changed.
+       (enum MFontProperty): Move MFONT_SIZE to the tail.
+       (enum MFontSource): New enum.
+       (struct MFont): New members type, source, sizes, file, capability,
+       and encoding.
+       (struct MRealizedFont): Type of member font changed. Members
+       score, status, and encoding deleted.
+       (MFontScore): New type.
+       (MFontList): Member changed.
+       (struct MFontDriver): New member has_char.  Types of members
+       changed.
+       (Miso8859_1, Miso10646_1, Municode_bmp, Municode_full)
+       (Mapple_roman): Extern them.
+       (OTF_Tag): Typedefed if not HAVE_OTF.
+       (enum MFontOpenTypeTable): New enum.
+       (MFontCapability): New type.
+       (mfont__ft_drive_otf): Prototype adjusted.
+       (mfont__score): Extern deleted.
+       (mfont__merge): Extern it.
+       (mfont__has_char): Extern it.
+       (mfont__encode_char): Prototype adjusted.
+       (mfont__open): Extern it.
+       (mfont__set_spec): Prototype adjusted.
+       (mfont__get_capability): Extern it.
+
+       * font.c: Include "fontset.h".
+       (M_font_capability, M_font_list, M_font_list_len): New variables.
+       (font_score_priority): Change order of initial elements.
+       (font_score_shift_bits): Fix array size.
+       (common_weight): Add "thin", "semibold", and "heavy".
+       (common_stretch): Add "ultracondensed", "extracondensed",
+       "extraexpanded", and "utltraexpand".
+       (font_weight_regular, font_weight_normal, font_weight_medium): New
+       variables.
+       (gen_font_name): This function deleted.
+       (find_encoding): Set font->encoding.
+       (OTF_tag): New function.
+       (otf_script_list): New variable.
+       (load_otf_script_list): New function.
+       (find_script_from_otf_tag): New function.
+       (xlfd_parse_name): Set font->type and font->source.
+       (mfont__free_realized): Free chains rfonts.
+       (font_score): Renamed from mfont__score.
+       (Miso8859_1, Miso10646_1, Municode_bmp, Municode_full)
+       (Mapple_roman): New variables.
+       (mfont__init): Initilize new variables.  Initalize
+       default_encoding.encoding_name and
+       default_encoding.encoding_charset to Municode_full and
+       mcharset__unicode.  Use SAFE* macros for allocating filepath
+       buffer.
+       (mfont__fini): Free otf_script_list.
+       (mfont__id): New function.
+       (mfont__match_p): Check also capability member of MFont.
+       (mfont__merge): New funciton.
+       (mfont__set_spec_from_face): Set type and source members.
+       (mfont__set_spec_from_plist): Set capability and type members.
+       (mfont__select): Argument changed.
+       (mfont__available): New function.
+       (compare_font_score): New function.
+       (mfont__list): New function.
+       (mfont__open): Return a realized font.
+       (mfont__resize): Adjusted for the change of MFont.
+       (mfont__has_char): New function.
+       (mfont__encode_char): Argument changed.
+       (mfont__set_spec): Argument changed.
+       (free_font_capability): New function.
+       (mfont__get_capability): New function.
+       (MFontfile): New variable.
+       (mfont_get_prop): Adjusted for the change of MFont.
+       (mfont_put_prop): Likewise.
+       (mfont_set_selection_priority): Fix the way of setting
+       font_score_priority[].
+       (mfont_find): Use mfont__list instead of mfont__select.
+       (mfont_resize_ratio): Adjusted for the change of MFont.
+       (mfont_list): Use mfont__list.
+       (mfont_check): New function.
+       (font_score): Make it static.
+
+       * fontset.h (mfont__realize_fontset): Prototype adjusted.
+       (mfont__lookup_fontset): Likewise.
+
+       * fontset.c (struct MFontset): Delete member font_spec_list.
+       (struct MRealizedFontset): Type of member spec changed.  New
+       member request.
+       (load_font_group): Arg spec_list deleted.
+       (load_fontset_contents): Adjusted for the change of fontset_def.
+       (free_fontset): Fix the way of freeing fontset elements.
+       (realize_fontset_elements): Argument changed.
+       (get_per_script): New function.
+       (free_realized_fontset_elements): Fix the way of feeing rfontset
+       elements.
+       (update_fontset_elements): Fix args to realize_fontset_elements.
+       (mfont__realize_fontset): New arg spec.
+       (try_font_list): New function.
+       (try_font_group): New arg request.  Use try_font_list.
+       (mfont__lookup_fontset): New arg ignore_fallback.  Fix arg to
+       try_font_group.
+       (mfontset): Adjusted for the change of MFontset.
+       (mfontset_copy): Likewise.  Don't share plists.
+       (mfontset_modify_entry): Adjusted for the change of MFontset.
+       (mfontset_lookup): Call get_per_script.
+       (mdebug_dump_fontset): Print also the address of fonts.
+
+       * input.c (shift_state): Don't reset ic_info->vars.
+       (take_action_list): Call MDEBUG_PRINT fore calling
+       take_action_list.
+
+       * internal-gui.h (MFontDriver): Don't typedef it here.
+
+       * m17n-X.c: Include <fontconfig/fcfreetype.h> if HAVE_XFT2.
+       (MXFont): This type deleted.
+       (MFontX): New type.
+       (struct _MFontX): New struct.
+       (SET_SIZE, HAVE_SIZE): Adjusted for the change of arg FONTX.
+       (MDisplayInfo): Member base_font_list deleted.
+       (DEFAULT_FONT): Definition changed.
+       (FALLBACK_FONT): This maclr deleted.
+       (free_display_info): Adjusted for the change of MDisplayInfo.
+       (free_device): Argument to mfont__free_realized changed.
+       (xfont_driver): Adjusted for the change of MFontDriver.
+       (xfont_registry_list): Use MFontX instead of MXFont.
+       (MRealizedFontX): Renamed from MXFontInfo.
+       (xfont_select): Return the font found first.
+       (close_xfont): Change MXFontInfo to MRealizedFontX.
+       (xfont_open): Return the realized font.
+       (xfont_find_metric): Get xfont from rfont->fontp.
+       (xfont_has_char): New function.
+       (xfont_encode_char): Adjusted for the argument change.
+       (xfont_render): Get xfont from rfont->fontp.
+       (xfont_list): Adjusted for the argument change.
+       (MRealizedFontXft): Renamed from MXftFontInfo.
+       (xft_driver): Ajusted for the change of MFontDriver.
+       (close_xft): Change MXtfFontInfo to MRealizedFontXft
+       (xft_open_font): Argument changed.
+       (xft_open): Argument changed.  Return the realized font.
+       (xft_find_metric): Get xft_font from rfont->fontp.
+       (xft_has_char, xft_encode_char): New functions.
+       (xft_render): Change MXftFontInfo to MRealizedFontXft.  Open a
+       font if not yet opened.
+       (device_open): Don't set frame->font.
+
+       * m17n-gd.c (gd_font_driver): Adjusted for the change of
+       MFontDriver.
+       (gd_font_open): New function.
+       (gd_render): Don't use the local variable ft_info.
+       (device_init): Adjusted for the change of gd_font_driver.
+
+       * textprop.c (mtext__prop_init): Initialize text_property_table.
+       Call M17N_OBJECT_ADD_ARRAY.
+       (mtext__prop_fini): Don't call mdebug__report_object.
+
+       * plist.c (mplist__init): Initialize plist_table.
+       (mplist__init): Call M17N_OBJECT_ADD_ARRAY.
+       (mplist__fini): Don't call mdebug__report_object.
+
+       * mtext.c (mtext__init): Call M17N_OBJECT_ADD_ARRAY.
+       (mtext__fini): Don't call mdebug__report_object.
+       (MTEXT_FORMAT_UTF_16): Correct type.
+       (mtext_data): New function.
+       (mtext_text): Fix calculation of limit and args to
+       find_char_backward.
+
+       * language.c: Include "plist.h".
+       (M_script_lang_list): New variable.
+       (mlang__init): Read languages and their information from m17n
+       database.
+       (mlanguage__list): New function.
+       (Miso639_1, Miso639_2): New variables.
+
+       * language.h (mlanguage__list): Extern it.
+
+       * database.c (get_database_stream): Use SAFE_* macros for
+       allocating and freeing path.
+       (mdatabase__init): Likewise.
+
+       * symbol.c (msymbol__fini): Don't free symbols here.
+       (msymbol__free_table): New function.
+       (msymbol_is_managing_key): New function.
+
+       * symbol.h (msymbol__free_table): Extern it.
+       (msymbol__list): Extern it.
+
+       * internal.h (MFATAL, USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE):
+       New macros.
+       (M17N_OBJECT_UNREF): Change "if ... else ..." structure.
+       (struct _M17NObjectArray): New member name and next.
+       (mdebug__add_object_array): Extern it.
+       (M17N_OBJECT_ADD_ARRAY): New macro.
+       (mdebug__report_object): Don't extern it.
+
+       * m17n-misc.h (enum MErrorCode): New element MERROR_FONT_X.
+
+       * m17n-gui.c (free_frame): Don't free frame->font.
+       (null_device_fini): Fix code for freeing
+       null_device.realized_font_list.
+       (m17n_fini_win): Free interface.
+       (mframe): Cast the return value of dlsym.  Set frame->font here.
+       (mframe_get_prop): Check frame->rface->rfont before accessing the
+       member font.
+
+       * m17n-gui.h (Mfontfile): Extern it.
+       (mfont_check): Extern it.
+       (mface_equal): Extern it.
+
+       * m17n-core.c: Include "symbol.h".
+       (report_header_printed): This variable deleted.
+       (object_array_root): New variable.
+       (report_object_array): New function.
+       (mdebug__report_object): This function deleted.
+       (mdebug__add_object_array): New function.
+       (m17n_init_core): Call mchartable_init () before mtext_init ().
+       (m17n_fini_core): Call report_object_array (if necessary) and
+       msymbol__free_atable at the end.
+
+       * m17n-core.h (msymbol_is_managing_key): Extern it.
+       (mtext_data): Extern it.
+       (MTEXT_FORMAT_UTF_16): Correct type.
+       (M17NLIB_MINOR_VERSION): Changed to 3.
+       (M17NLIB_VERSION_NAME): Changed to "1.3.0".
+       
+       * chartab.c (mchartable__init): Initalize chartable_table.count.
+       (mchartable__fini): Use N17N_OBJECT_ADD_ARRAY instead of
+       mdebug__report_object.
+
+2005-05-26  Kenichi Handa  <handa@m17n.org>
+
+       * m17n.h (Miso639_1, Miso639_2): Extern them.
+
+       * symbol.h (msymbol__list): Extern it.
+
+       * symbol.c (msymbol__list): New function.
+
+2005-05-19  Kenichi Handa  <handa@m17n.org>
+
+       * input-gui.c (minput__win_init): Don't change the value of
+       minput_driver.
+
+2005-05-16  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-core.c (m17n_object): Be sure to initialize all members.
+
+       * font-ft.c (fc_decode_prop): Fix args to msymbol.
+
+2005-05-09  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-X.c (mwin__close_device): Fix arg to M17N_OBJECT_UNREF.
+
+2005-04-27  Kenichi Handa  <handa@m17n.org>
+
+       * language.c (mlang__init): Add "an" (Aragonese).
+
+       * word-thai.c: Add support for libthai.
+       (mtext__word_thai_init): Initialize wordseg library conditionaly.
+       (mtext__word_thai_fini): Finalize wordseg library conditionaly.
+
+       * mtext.c: Include "word-thai.h" conditionaly.
+       (mtext__init): Call mtext__word_thai_init conditionaly.
+       (mtext__fini): Call mtext__word_thai_fini conditionaly.
+
+       * Makefile.am (libm17n_core_la_LIBADD): Add THAI_WORDSEG_LD_FLAGS,
+       not WORDCUT_LD_FLAGS.
+
+2005-04-19  Kenichi Handa  <handa@m17n.org>
+
+       * word-thai.c (wordseg_propertize): Always unref the attached
+       property.
+       (thai_wordseg): Don't unref the property.
+
+2005-04-18  Kenichi Handa  <handa@m17n.org>
+
+       * word-thai.c: Include stdlib.h.
+       (wordseg_propertize): Add dummy function for the case that wordcut
+       library doesn't exist.
+       (wordseg_propertize): Fix for old wordcut library.
+
+2005-04-16  Kenichi Handa  <handa@m17n.org>
+
+       * word-thai.c: Include <stdio.h>.
+
+2005-04-15  Kenichi Handa  <handa@m17n.org>
+
+       * draw.c: Include mtext.h.
+       (linebreak_table, M_break_at_space, M_break_at_word)
+       (M_break_at_any, M_kinsoku_bol, M_kinsoku_eol): New variables.
+       (compose_glyph_string): Check POS before getting Mface text
+       property.
+       (truncate_gstring): Give correct TO arg to line_break function.
+       (GET_LB_TYPE): New macro.
+       (find_break_backward, find_break_forward): New functions.
+       (mdraw__init): Initialize the above new variables.
+       (mdraw__fini): Free linebreak_table.
+       (mdraw_default_line_break): Use find_break_backward and
+       find_break_forward.
+
+       * word-thai.c: New file.
+
+       * word-thai.h: New file.
+
+       * mtext.c: Include word-thai.h.
+       (wordseg_func_table): New variable.
+       (mtext__init): Initialize wordseg_func_table and call
+       mtext__word_thai_init.
+       (mtext__fini): Call mtext__word_thai_fini, free
+       wordseg_func_table.
+       (MTextWordsegFunc): New type.
+       (mtext__word_segment): New function.
+
+       * mtext.h (wordseg_func_table): Extern it.
+       (mtext__word_segment): Extern it.
+
+       * m17n.c (m17n_init): Fix typo (== -> =).
+
+       * Makefile.am (libm17n_core_la_SOURCES): Include word-thai.[ch].
+       (libm17n_core_la_LIBADD): Add @WORDCUT_LD_FLAGS@.
+
+       * textprop.h (MTEXTPROP_START, MTEXTPROP_END, MTEXTPROP_KEY)
+       (MTEXTPROP_VAL): New macros.
+
+       * input.c (DLOPEN_SHLIB_EXT): Don't define it.
+
+2005-04-07  Kenichi Handa  <handa@m17n.org>
+
+       * database.c (load_chartable): Fix pursing of symbol name.
+
+2005-03-24  Kenichi Handa  <handa@m17n.org>
+
+       * m17n.c (m17n_init): Fix typo (== -> =).
+
+2005-03-11  Kenichi Handa  <handa@m17n.org>
+
+       * m17n-gui.c (m17n_init_win): Set merror_code to MERROR_NONE at first.
+
+       * m17n.c (m17n_init): Set merror_code to MERROR_NONE at first.
+
+       * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE at
+       first.
+
+2005-03-09  handa  <handa@m17n.org>
+
+       * m17n-gui.c (m17n_init_win): Set merror_code to MERROR_NONE before
+       calling m17n_init ().
+
+       * m17n.c (m17n_init): Set merror_code to MERROR_NONE before
+       calling m17n_init_core ().
+
+2005-02-28  Kenichi Handa  <handa@m17n.org>
+
+       * font-flt.c (mfont__flt_run): Add resulting code sequence in
+       debug info.
+
+2005-02-17  Kenichi Handa  <handa@m17n.org>
+
+       * input.c: Include <sys/types.h>, <dirent.h>, and "database.h".
+       (M_description, M_command, M_variable): New variables.
+       (load_im_info_keys): New variables.
+       (load_im_info, check_command_keyseq, get_description_advance)
+       (parse_command_list, get_command_list, parse_variable_list)
+       (get_variable_list, input_method_hook): New functions.
+       (command_list, variable_list): New variables.
+       (minput__init): Put input_method_hook to Minput_method.
+       Initialize M_description, M_command, M_variable, Mdetail_text,
+       load_im_info_keys, command_list, variable_list.
+       (minput__fini): Unref command_list, variable_list, load_im_info_keys.
+       (Mdetail_text): New variable.
+       (minput_get_description, minput_get_commands)
+       (minput_assign_command_keys, minput_get_variables)
+       (minput_set_variable): New functions.
+
+       * m17n.h (Mdetail_text, minput_get_description, minput_get_commands)
+       (minput_assign_command_keys, minput_get_variables)
+       (minput_set_variable): Extern them.
+
+       * plist.c (UNGETC): Just decrement st->p.
+       (read_mtext_element): New arg skip.
+       (read_integer_element): Likewise.
+       (read_symbol_element): Likewise.
+       (read_element): New arg KEYS.
+       (mplist__from_plist): Don't increment ref-count of NULL object.
+       (mplist__from_file): New arg KEYS.
+       (mplist_put): Don't increment ref-count of NULL object.
+       (mplist_add): Likewise.
+       (mplist_push): Likewise.
+       (mplist_set): Likewise.  Call M17N_OBJECT_UNREF unconditionally.
+
+       * plist.h (mplist__from_file): Prototype adjusted.
+
+       * database.c (mdatabase__dir_list): Renamed from mdb_dir_list.
+       (get_database_stream): New function.
+       (load_database): Use get_database_stream.
+       (M_database_hook): New variable
+       (mdatabase__init): Initialize M_database_hook.
+       (mdatabase__load_for_keys): New function.
+       (mdatabase_find, mdatabase_list, mdatabase_define): Check hook
+       function.
+       (mdatabase_define): Free mdb->extra_info if necessary.
+
+       * database.h (mdatabase__dir_list, M_database_hook)
+       (mdatabase__load_for_keys): Extern them.
+       (MDatabaseHookFunc): New type.
+
+       * internal.h (M17N_OBJECT_UNREF): When freed, set OBJECT to NULL.
+
 2004-12-27  Kenichi Handa  <handa@m17n.org>
 
        * Version 1.2.0 released.
 
 2004-12-27  Kenichi Handa  <handa@m17n.org>
 
+       * input.c (minput_filter): Don't reset ic->xxx_changed.
+
        * mtext.c (mtext_from_data): Fix documentation.
 
 2004-12-25  Kenichi Handa  <handa@m17n.org>