*** empty log message ***
[m17n/m17n-lib.git] / src / ChangeLog
index 0a2d04f..64d50e0 100644 (file)
@@ -1,3 +1,238 @@
+2005-09-12  Kenichi Handa  <handa@m17n.org>
+
+       * 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