m17n/m17n-lib.git
17 years agoBig change to improve user-side input method
handa [Thu, 7 Sep 2006 07:49:47 +0000 (07:49 +0000)]
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): New functions.

17 years ago*** empty log message ***
handa [Thu, 7 Sep 2006 07:42:22 +0000 (07:42 +0000)]
*** empty log message ***

17 years agoInclude <time.h>.
handa [Thu, 7 Sep 2006 07:40:05 +0000 (07:40 +0000)]
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.

17 years ago*** empty log message ***
ntakahas [Wed, 30 Aug 2006 11:08:22 +0000 (11:08 +0000)]
*** empty log message ***

17 years agoReturn -2 when surrounding text is unavailable.
ntakahas [Wed, 30 Aug 2006 10:55:20 +0000 (10:55 +0000)]
Return -2 when surrounding text is unavailable.

17 years ago(reset_ic): Fix previous change.
handa [Thu, 17 Aug 2006 12:22:58 +0000 (12:22 +0000)]
(reset_ic): Fix previous change.

17 years ago(reset_ic): Fix previous change.
handa [Thu, 17 Aug 2006 12:12:53 +0000 (12:12 +0000)]
(reset_ic): Fix previous change.

17 years ago*** empty log message ***
handa [Thu, 17 Aug 2006 12:09:07 +0000 (12:09 +0000)]
*** empty log message ***

17 years ago(reset_ic): Use shift_state to setup the current state.
handa [Thu, 17 Aug 2006 12:09:04 +0000 (12:09 +0000)]
(reset_ic): Use shift_state to setup the current state.

17 years ago(mdatabase__check): Add comment.
handa [Tue, 15 Aug 2006 00:06:42 +0000 (00:06 +0000)]
(mdatabase__check): Add comment.

17 years ago*** empty log message ***
handa [Wed, 2 Aug 2006 11:54:56 +0000 (11:54 +0000)]
*** empty log message ***

17 years ago(common_ldflags, common_ldflags_gui): Use ${top_builddir}.
handa [Wed, 2 Aug 2006 11:54:45 +0000 (11:54 +0000)]
(common_ldflags, common_ldflags_gui): Use ${top_builddir}.

17 years ago(libm17n_la_LIBADD, libm17n_gui_la_LIBADD)
handa [Wed, 2 Aug 2006 11:53:44 +0000 (11:53 +0000)]
(libm17n_la_LIBADD, libm17n_gui_la_LIBADD)
(libm17n_X_la_LIBADD, libm17n_gd_la_LIBADD, linkcore_LDADD)
(linkshell_LDADD, linkgui_LDADD): Use ${top_builddir}.

17 years ago(mdebug_dump_plist): Fix the 2nd arg to dump_plist_element.
handa [Wed, 2 Aug 2006 11:51:46 +0000 (11:51 +0000)]
(mdebug_dump_plist): Fix the 2nd arg to dump_plist_element.

17 years ago(mdebug_dump_mtext): If not fullp, dump just text.
handa [Wed, 2 Aug 2006 11:08:10 +0000 (11:08 +0000)]
(mdebug_dump_mtext): If not fullp, dump just text.

17 years ago(ft_encapsulate): Add code for debugging.
handa [Wed, 2 Aug 2006 11:07:22 +0000 (11:07 +0000)]
(ft_encapsulate): Add code for debugging.
(mfont__ft_drive_otf): Be sure to encode character before getting
metrics.

17 years ago*** empty log message ***
handa [Fri, 21 Jul 2006 11:39:35 +0000 (11:39 +0000)]
*** empty log message ***

17 years ago(mdraw_text_extents): Fix previous typo.
handa [Fri, 21 Jul 2006 11:39:31 +0000 (11:39 +0000)]
(mdraw_text_extents): Fix previous typo.

17 years ago*** empty log message ***
handa [Wed, 19 Jul 2006 12:55:31 +0000 (12:55 +0000)]
*** empty log message ***

17 years ago(gstring_width): New arg lbearing.
handa [Wed, 19 Jul 2006 12:55:28 +0000 (12:55 +0000)]
(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.

17 years ago*** empty log message ***
ntakahas [Wed, 19 Jul 2006 07:27:13 +0000 (07:27 +0000)]
*** empty log message ***

17 years agoAdd final sukun to Arabic.
ntakahas [Wed, 19 Jul 2006 07:26:00 +0000 (07:26 +0000)]
Add final sukun to Arabic.

17 years ago*** empty log message ***
handa [Wed, 19 Jul 2006 06:39:30 +0000 (06:39 +0000)]
*** empty log message ***

17 years agoCancel previous change.
handa [Wed, 19 Jul 2006 06:39:19 +0000 (06:39 +0000)]
Cancel previous change.

17 years ago*** empty log message ***
handa [Wed, 19 Jul 2006 06:13:25 +0000 (06:13 +0000)]
*** empty log message ***

17 years agoUse pkg-config if available for checking libotf.
handa [Wed, 19 Jul 2006 06:13:19 +0000 (06:13 +0000)]
Use pkg-config if available for checking libotf.
Include the result of `libotf-config --cflags` in CPPFLAGS.

17 years ago*** empty log message ***
handa [Wed, 19 Jul 2006 02:43:48 +0000 (02:43 +0000)]
*** empty log message ***

17 years ago(CPPFLAGS): Include the result of `libotf-config
handa [Wed, 19 Jul 2006 02:43:40 +0000 (02:43 +0000)]
(CPPFLAGS): Include the result of `libotf-config
--cflags`.

17 years ago(Mlanguage): Extern it.
handa [Wed, 19 Jul 2006 02:42:18 +0000 (02:42 +0000)]
(Mlanguage): Extern it.

17 years ago(Mlanguage): Extern deleted.
handa [Wed, 19 Jul 2006 02:42:00 +0000 (02:42 +0000)]
(Mlanguage): Extern deleted.

17 years ago* mtext.c (mtext__init): Initialize Mlanguage.
handa [Wed, 19 Jul 2006 02:41:17 +0000 (02:41 +0000)]
* 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.

17 years ago(mlocale__init): Don't initialize Mlanguage here.
handa [Wed, 19 Jul 2006 02:40:21 +0000 (02:40 +0000)]
(mlocale__init): Don't initialize Mlanguage here.
(Mlanguage): Don't declare it here.

17 years ago(mlang__init): Don't initialize Mlanguage here.
handa [Wed, 19 Jul 2006 02:39:50 +0000 (02:39 +0000)]
(mlang__init): Don't initialize Mlanguage here.

17 years ago(OTF_tag_name) [! HAVE_OTF]: New function.
handa [Wed, 19 Jul 2006 02:39:14 +0000 (02:39 +0000)]
(OTF_tag_name) [! HAVE_OTF]: New function.

17 years ago*** empty log message ***
handa [Fri, 14 Jul 2006 07:03:34 +0000 (07:03 +0000)]
*** empty log message ***

17 years agoUse FT_BDF_H macro. Include fontconfig/fcfreetype.h.
handa [Fri, 14 Jul 2006 07:01:55 +0000 (07:01 +0000)]
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.

17 years ago(struct MRealizedFont): New member encapsulating.
handa [Fri, 14 Jul 2006 06:56:25 +0000 (06:56 +0000)]
(struct MRealizedFont): New member encapsulating.
(struct MFontDriver): New members encapsulate and close.

17 years ago(mfont__match_p): If FONT is realized, check capability
handa [Fri, 14 Jul 2006 06:55:41 +0000 (06:55 +0000)]
(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.

17 years ago(xfont_list_family_names): Delete unused var. Fix
handa [Fri, 14 Jul 2006 06:54:12 +0000 (06:54 +0000)]
(xfont_list_family_names): Delete unused var.  Fix
declarations of foundry and fam local vars.
(xft_driver): Make it static.

17 years ago(mfont_match_p, mfont_open, mfont_encapsulate)
handa [Fri, 14 Jul 2006 06:52:42 +0000 (06:52 +0000)]
(mfont_match_p, mfont_open, mfont_encapsulate)
(mfont_close): Extern them.

17 years ago(device_open): Don't specify foundry and family of the
handa [Fri, 14 Jul 2006 06:50:18 +0000 (06:50 +0000)]
(device_open): Don't specify foundry and family of the
default face.

17 years ago*** empty log message ***
handa [Fri, 14 Jul 2006 06:49:32 +0000 (06:49 +0000)]
*** empty log message ***

17 years agoVersion changed to 1.3.4. Delete args to
handa [Fri, 14 Jul 2006 06:49:25 +0000 (06:49 +0000)]
Version changed to 1.3.4.  Delete args to
AM_INIT_AUTOMAKE.

17 years ago*** empty log message ***
handa [Thu, 13 Jul 2006 07:45:38 +0000 (07:45 +0000)]
*** empty log message ***

17 years ago*** empty log message ***
handa [Thu, 13 Jul 2006 07:34:17 +0000 (07:34 +0000)]
*** empty log message ***

17 years ago(fc_build_charset): Return NULL if FcCharSet can't be
handa [Thu, 13 Jul 2006 07:34:12 +0000 (07:34 +0000)]
(fc_build_charset): Return NULL if FcCharSet can't be
created.
(ft_check_script): Delete unused var.
(ft_list_capability): Likewise.

17 years ago(mfont__get_capability): Setup cap->otf.
handa [Thu, 13 Jul 2006 07:33:04 +0000 (07:33 +0000)]
(mfont__get_capability): Setup cap->otf.
(Motf): Make it global.
(mfont_get_prop): Accept Mlanguage, Mscript, and Motf as key arg.

17 years ago(MFontCapability): New member otf.
handa [Thu, 13 Jul 2006 07:31:51 +0000 (07:31 +0000)]
(MFontCapability): New member otf.

17 years ago(mlang__fini): Delete unused vars.
handa [Thu, 13 Jul 2006 07:31:13 +0000 (07:31 +0000)]
(mlang__fini): Delete unused vars.

17 years ago(Motf): Extern it.
handa [Thu, 13 Jul 2006 07:30:49 +0000 (07:30 +0000)]
(Motf): Extern it.

17 years ago(update_database_list): Delete unused vars.
handa [Thu, 13 Jul 2006 07:30:17 +0000 (07:30 +0000)]
(update_database_list): Delete unused vars.

17 years ago(m17n_fini_win): Set null_interface.handle to NULL;
handa [Tue, 11 Jul 2006 02:24:03 +0000 (02:24 +0000)]
(m17n_fini_win): Set null_interface.handle to NULL;

17 years ago*** empty log message ***
handa [Fri, 7 Jul 2006 03:45:01 +0000 (03:45 +0000)]
*** empty log message ***

17 years ago(DEVICE_DELTA): Fix typo.
handa [Fri, 7 Jul 2006 03:44:42 +0000 (03:44 +0000)]
(DEVICE_DELTA): Fix typo.

17 years ago*** empty log message ***
handa [Thu, 6 Jul 2006 05:33:31 +0000 (05:33 +0000)]
*** empty log message ***

17 years ago(mfont__lookup_fontset): Don't ignore family and
handa [Thu, 6 Jul 2006 05:33:14 +0000 (05:33 +0000)]
(mfont__lookup_fontset): Don't ignore family and
foundry of face.

17 years ago*** empty log message ***
ntakahas [Wed, 5 Jul 2006 11:47:32 +0000 (11:47 +0000)]
*** empty log message ***

17 years agoUpdate comments.
ntakahas [Wed, 5 Jul 2006 11:47:12 +0000 (11:47 +0000)]
Update comments.

17 years ago*** empty log message ***
handa [Wed, 5 Jul 2006 07:28:36 +0000 (07:28 +0000)]
*** empty log message ***

17 years ago*** empty log message ***
handa [Wed, 5 Jul 2006 07:22:01 +0000 (07:22 +0000)]
*** empty log message ***

17 years ago(PATH_MAX): Define it if not yet defined.
handa [Wed, 5 Jul 2006 07:21:45 +0000 (07:21 +0000)]
(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".

17 years ago*** empty log message ***
handa [Mon, 3 Jul 2006 12:43:50 +0000 (12:43 +0000)]
*** empty log message ***

17 years ago(win_callback): If is ic->candidate_show zero, don't
handa [Mon, 3 Jul 2006 12:43:47 +0000 (12:43 +0000)]
(win_callback): If is ic->candidate_show zero, don't
push reverse property.

17 years ago(dump_plist_element): Fix previous change.
handa [Mon, 3 Jul 2006 12:42:54 +0000 (12:42 +0000)]
(dump_plist_element): Fix previous change.

17 years ago*** empty log message ***
handa [Wed, 28 Jun 2006 11:22:11 +0000 (11:22 +0000)]
*** empty log message ***

17 years ago(xlfd_unparse_name): Suppress the heading '-' if not
handa [Wed, 28 Jun 2006 11:22:06 +0000 (11:22 +0000)]
(xlfd_unparse_name): Suppress the heading '-' if not
necessary.

17 years ago(MbidiNSM): New variable.
handa [Wed, 28 Jun 2006 11:20:57 +0000 (11:20 +0000)]
(MbidiNSM): New variable.
(visual_order) [! HAVE_FRIBIDI]: Clear levels at first.  Pay
attention to bidi type NSM.
(mdraw__init): Initialize MbibiNSM.

17 years ago*** empty log message ***
handa [Wed, 28 Jun 2006 11:20:51 +0000 (11:20 +0000)]
*** empty log message ***

17 years ago*** empty log message ***
handa [Wed, 28 Jun 2006 07:22:19 +0000 (07:22 +0000)]
*** empty log message ***

17 years ago(mscript__char_list): Fix finding a char-list element.
handa [Wed, 28 Jun 2006 07:22:15 +0000 (07:22 +0000)]
(mscript__char_list): Fix finding a char-list element.

17 years ago*** empty log message ***
handa [Wed, 28 Jun 2006 07:03:35 +0000 (07:03 +0000)]
*** empty log message ***

17 years ago(dump_string): Return number of printed characters.
handa [Wed, 28 Jun 2006 07:03:30 +0000 (07:03 +0000)]
(dump_string): Return number of printed characters.
(dump_plist_element): Print elements more compactly.

17 years ago*** empty log message ***
handa [Fri, 23 Jun 2006 12:52:57 +0000 (12:52 +0000)]
*** empty log message ***

17 years ago(BUILD_LIBS): Don't increment it conditionally.
handa [Fri, 23 Jun 2006 12:52:54 +0000 (12:52 +0000)]
(BUILD_LIBS): Don't increment it conditionally.

17 years ago(BUILD_LIBS): Don't increment it conditionally.
handa [Fri, 23 Jun 2006 12:51:45 +0000 (12:51 +0000)]
(BUILD_LIBS): Don't increment it conditionally.
(include_HEADERS): Likewise.

17 years ago*** empty log message ***
handa [Fri, 23 Jun 2006 12:29:28 +0000 (12:29 +0000)]
*** empty log message ***

17 years ago*** empty log message ***
handa [Fri, 23 Jun 2006 12:27:54 +0000 (12:27 +0000)]
*** empty log message ***

17 years ago*** empty log message ***
handa [Fri, 23 Jun 2006 12:23:00 +0000 (12:23 +0000)]
*** empty log message ***

17 years ago*** empty log message ***
ntakahas [Fri, 23 Jun 2006 08:17:59 +0000 (08:17 +0000)]
*** empty log message ***

17 years agoUpdate documentation.
ntakahas [Fri, 23 Jun 2006 08:17:31 +0000 (08:17 +0000)]
Update documentation.

17 years ago(mlanguage_code): On failure, return Mnil, not NULL.
handa [Fri, 23 Jun 2006 07:25:00 +0000 (07:25 +0000)]
(mlanguage_code): On failure, return Mnil, not NULL.

17 years ago*** empty log message ***
handa [Fri, 23 Jun 2006 02:47:18 +0000 (02:47 +0000)]
*** empty log message ***

17 years ago(show_cursor): Call mlanguage_name to get English name
handa [Fri, 23 Jun 2006 02:44:55 +0000 (02:44 +0000)]
(show_cursor): Call mlanguage_name to get English name
of language.
(compare_input_method): Likewise.
(main): Likewise.

17 years ago(struct MFontFT): Delete member lang.
handa [Fri, 23 Jun 2006 02:43:51 +0000 (02:43 +0000)]
(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.

17 years ago(struct MFontDriver): New member list_fmaily_names.
handa [Fri, 23 Jun 2006 02:32:36 +0000 (02:32 +0000)]
(struct MFontDriver): New member list_fmaily_names.
(struct): Change member "MSymbol *lang" to "MSymbol language".

17 years agoInclude "language.h".
handa [Fri, 23 Jun 2006 02:31:55 +0000 (02:31 +0000)]
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.

17 years agoTypo in comments fixed.
handa [Fri, 23 Jun 2006 02:26:12 +0000 (02:26 +0000)]
Typo in comments fixed.

17 years ago(mlanguage__list): Delete it.
handa [Fri, 23 Jun 2006 02:25:25 +0000 (02:25 +0000)]
(mlanguage__list): Delete it.
(mscript__char_list, mscript__otf_tag, mscript__from_otf_tag): New
functions.

17 years agoInclude "mtext.h".
handa [Fri, 23 Jun 2006 02:24:13 +0000 (02:24 +0000)]
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.

17 years ago(mfont_list_family_names): Extern it.
handa [Fri, 23 Jun 2006 02:20:02 +0000 (02:20 +0000)]
(mfont_list_family_names): Extern it.

17 years ago(mlanguage_list, mlanguage_code, mlanguage_name)
handa [Fri, 23 Jun 2006 02:19:36 +0000 (02:19 +0000)]
(mlanguage_list, mlanguage_code, mlanguage_name)
(mlanguage_text, mscript_list, mscript_language_list): Extern
them.

17 years ago*** empty log message ***
handa [Fri, 23 Jun 2006 02:18:17 +0000 (02:18 +0000)]
*** empty log message ***

17 years agoAdd "--with-fontconfig" arg.
handa [Fri, 23 Jun 2006 02:17:56 +0000 (02:17 +0000)]
Add "--with-fontconfig" arg.

17 years ago(xfont_driver): Initialize with
handa [Wed, 21 Jun 2006 12:42:20 +0000 (12:42 +0000)]
(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.

17 years ago*** empty log message ***
handa [Tue, 6 Jun 2006 07:09:10 +0000 (07:09 +0000)]
*** empty log message ***

17 years ago(mfont__lookup_fontset): Don't set *num to 1 if it is 0.
handa [Tue, 6 Jun 2006 07:08:57 +0000 (07:08 +0000)]
(mfont__lookup_fontset): Don't set *num to 1 if it is 0.

18 years ago*** empty log message ***
handa [Mon, 29 May 2006 11:49:42 +0000 (11:49 +0000)]
*** empty log message ***

18 years agoFor for --libtool.
handa [Mon, 29 May 2006 11:49:26 +0000 (11:49 +0000)]
For for --libtool.

18 years ago*** empty log message ***
ntakahas [Mon, 24 Apr 2006 12:06:54 +0000 (12:06 +0000)]
*** empty log message ***

18 years agoInsert libthai reference site.
ntakahas [Mon, 24 Apr 2006 12:06:08 +0000 (12:06 +0000)]
Insert libthai reference site.