From: handa Date: Fri, 23 Jun 2006 02:47:18 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: REL-1-3-4~164 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9df58897856843d96762f91e4684877239085fa7;p=m17n%2Fm17n-lib.git *** empty log message *** --- diff --git a/NEWS b/NEWS index 27850d4..4eb7fc2 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,18 @@ Copyright (C) 2003, 2004, 2005 See the end for copying conditions. +* Changes in the m17n library 1.3.3 + +** New function mfont_list_family_names () return a list of available +font family names. + +** New functions mlanguage_list (), mlanguage_code (), mlanguage_name (), +and mlanguage_text () returns various language-related information. + +** New functions mscript_list () and mscript_language_list () returns +various script-related information. + + * Changes in the m17n library 1.3.0 ** The `configure' script accepts the argument "--without-gui" to diff --git a/example/ChangeLog b/example/ChangeLog index b3a9c17..6cc1d2e 100644 --- a/example/ChangeLog +++ b/example/ChangeLog @@ -1,3 +1,10 @@ +2006-06-23 Kenichi Handa + + * medit.c (show_cursor): Call mlanguage_name to get English name + of language. + (compare_input_method): Likewise. + (main): Likewise. + 2006-02-22 Kenichi Handa * Version 1.3.3 released. diff --git a/src/ChangeLog b/src/ChangeLog index 2c419e7..70993d1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,85 @@ +2006-06-23 Kenichi Handa + + * font-ft.c (struct MFontFT): Delete member lang. + (free_ft_info): Don't unref member lang. Destroy members langset + and charset. + (fc_parse_pattern): Last argument changed to MFontFT *. Callers + changed. Set members langset and charset. + (fc_init_font_list, fc_list_pattern, fc_build_charset): New + functions. + (ft_init_font_list, ft_has_char_list_p, ft_list_char_list): New + functions. + (ft_list_family) [HAVE_FONTCONFIG]: Include FC_CHARSET on objset. + (ft_list_family) [! HAVE_FONTCONFIG]: Call ft_init_font_list. + (ft_list_language) [HAVE_FONTCONFIG]: Check representative + characters at first. If it fails, try listing by language names. + (ft_list_language) [! HAVE_FONTCONFIG]: Call ft_list_char_list. + (ft_check_language): Renamed from ft_check_lang. Adjusted for the + change of MFontCapability. + (ft_list_capability): Likewise. Try listing by languages, then by + scripts. Check OTF at last. + (ft_check_script): New function. + (ft_select): Adjusted for the check of MFontCapability. + (ft_list_family_names): New function. + (ft_check_capability): If cap->script is not Mnil, call + ft_check_script. + (mfont__ft_driver): Initialize with ft_list_family_names. + + * font.h (struct MFontDriver): New member list_fmaily_names. + (struct): Change member "MSymbol *lang" to "MSymbol language". + + * font.c: Include "language.h". + (Motf): New variable. + (otf_script_list, load_otf_script_list): Delete it. + (find_script_from_otf_tag): Delete it. + (merge_capability): New function. + (mfont__init): Init Motf. + (mfont__fini): Don't unref otf_script_list. + (free_font_capability): Check cap->script_tag to determine if + OTF-related capability is set. + (mfont__get_capability): Call mscript__from_otf_tag. Adjusted for + the change of type MFontCapability. + (mfont_put_prop): Call merge_capability for Mlanguage, Mscript, + and Motf properties. + (mfont_list): Call merge_capability for LANGUAGE arg. + (mfont_list_family_names): New function. + + * input-gui.c: Typo in comments fixed. + + * input.c: Typo in comments fixed. + + * language.h (mlanguage__list): Delete it. + (mscript__char_list, mscript__otf_tag, mscript__from_otf_tag): New + functions. + + * language.c: Include "mtext.h". + (M_script_lang_list): Delete it. + (language_list, script_list): New variables. + (load_lang_script_list, init_language_list, init_script_list): New + functions. + (mlang__init): Don't load language database here. + (mlang__fini): Unref language_list and script_list if not NULL. + (mlanguage__list): Delete it. + (mlanguage__info, mscript__info, mscript__char_list) + (mscript__otf_tag, mscript__from_otf_tag): New functions. + (mlanguage_list, mlanguage_code, mlanguage_name, mlanguage_text) + (mscript_list, mscript_language_list): New functions. + + * m17n-gui.h (mfont_list_family_names): Extern it. + + * m17n.h (mlanguage_list, mlanguage_code, mlanguage_name) + (mlanguage_text, mscript_list, mscript_language_list): Extern + them. + +2006-06-21 Kenichi Handa + + * m17n-X.c (xfont_driver): Initialize with + xfont_list_family_names. + (xfont_list_family_names): New function. + (xft_driver): Initialize with NULL for list_family_names member. + (device_init): Set list_family_names member of xft_driver to that + of mfont__ft_driver. + 2006-06-06 Kenichi Handa * fontset.c (mfont__lookup_fontset): Don't set *num to 1 if it is 0.