50e1504d2a160bf368dfae4f81558bafbefa6065
[m17n/m17n-lib.git] / src / ChangeLog
1 2005-12-02  Kenichi Handa  <handa@m17n.org>
2
3         * language.c (mlang__init): Handle extra chars.
4
5         * m17n-gui.h (mfont_check): Adjust prototype.
6
7         * m17n-X.c (xfont_driver): Specify xfont_check_capability.
8         (xfont_check_capability): New function.
9         (xft_driver): Specify xft_check_capability.
10         (xft_check_capability): New function.
11
12         * font-ft.c (M0_3): Delete it.
13         (M0): New variable.
14         (ft_get_charmaps): Refer to M0.
15         (fc_parse_pattern): Fix previous change.
16         (ft_list_language): Check also extra chars.
17         (ft_check_otf): Define it even if HAVE_OTF is undef.
18         (ft_check_lang): Check the result of FcLangSetHasLang against
19         FcLangDifferentLang.  Check also extra chars.
20         (ft_list_capability): Delete ifdef HAVE_OTF.
21         (ft_select): Likewise.
22         (ft_open): Improve debug information.
23         (ft_check_capability): New function.
24         (mfont__ft_driver): Specify ft_check_capability.
25         (mfont__ft_init): Initialize M0.
26
27         * fontset.c (get_font_from_group): New function.
28         (mfontset__get_font): New function.
29
30         * fontset.h (mfontset__get_font): Extern it.
31
32         * font.c (OTF_tag): Define it if HAVE_OTF is undef.
33         (mfont__fini): Delete ifdef HAVE_OTF.
34         (free_font_capability): Likewise.
35         (mfont__get_capability): Likewise.
36         (mfont__check_capability): New function.
37         (mfont_check): Change the order of arguments.  Use
38         mfontset__get_font.
39
40         * font.h (struct MFontDriver): New member check_capability.
41         (MFontCapability): Delete ifdef HAVE_OTF.
42         (mfont__check_capability): Extern it.
43
44         * face.c (mface__realize): Fix handling of FONT arg.
45         (mface__for_chars): Fix handling of explicitly specified font.
46
47 2005-11-25  Kenichi Handa  <handa@m17n.org>
48
49         * font-flt.c (run_command): Print debug info for
50         left/rigth_padding
51
52         * draw.c (layout_glyphs): Fix handling of left/right_padding.
53
54         * face.c (mface__for_chars): Check rfont before accessing the
55         members.
56
57 2005-11-21  Kenichi Handa  <handa@m17n.org>
58
59         * Makefile.am (lib_LTLIBRARIES): Define it conditionaly on
60         WITH_GUI.
61
62         * fontset.c (fontset_table): New variable.
63         (free_fontset): Call M17N_OBJECT_UNREGISTER.
64         (mfont__fontset_init): Add fontset_table as an object array.
65         (mfont__realize_fontset): Ref FONTSET.
66         (mfont__free_realized_fontset): Unref REALIZED->fontset.
67         (mfontset): Call M17N_OBJECT_REGISTER.
68         (mfontset_copy): Likewise.
69
70         * input.c (handle_key): For debugging, print information about
71         alias key.
72         (filter): Add an alias for Meta and Alt modifiers.
73         (Mcond, Mplus, Mminus, Mstar, Mslush, Mand, Mor, Mnot): New
74         variables.
75         (minput__init): Initialize them.
76         (parse_expression): New function.
77         (resolve_expression): New function.
78         (parse_action_list): Handle expressions by parse_expression.
79         (take_action_list): Handle expressions by resolve_expression.
80         (parse_nested_list_value): Fix previous change.
81         (resolve_command): Fix handling of the return value of
82         get_nested_list.
83
84 2005-11-18  Kenichi Handa  <handa@m17n.org>
85
86         * font-ft.c (ft_check_otf, otf_script_list): Define only when
87         HAVE_OTF is defined.
88         (ft_list_capability): Call ft_check_otf only when HAVE_OTF is
89         defined.
90         (ft_select): Likewise.
91
92         * font.c (mfont_list): Fix for the case that FONT is NULL.
93         (OTF_tag): Delete it.
94         (load_otf_script_list): Define only when HAVE_OTF is defined.
95         (mfont__fini): Unref otf_script_list only when HAVE_OTF is
96         defined.
97
98         * draw.c (truncate_gstring): Be sure to truncate at
99         glapheme-cluster boundary.
100
101 2005-11-11  Kenichi Handa  <handa@m17n.org>
102
103         * input.c (delete_surrounding_text): Clear cache if necessary.
104
105 2005-11-09  Kenichi Handa  <handa@m17n.org>
106
107         * draw.c (compose_glyph_string): Update prev->rface->rfont if the
108         glyph prev is also supported by the current flt.
109
110 2005-11-08  Kenichi Handa  <handa@m17n.org>
111
112         * m17n-X.c (xft_render): Cancel previous change.
113
114 2005-11-07  Kenichi Handa  <handa@m17n.org>
115
116         * input.c: Include <stdlib.h>.
117         (get_surrounding_text, delete_surrounding_text)
118         (get_preceding_char, get_following_char): New functions.
119         (integer_value): New arg surrounding.  If it is nonzero, try to
120         get a surrounding character.  Callers changed.
121         (take_action_list): Check `value' before setting an element.
122         (destroy_ic): Unref ic_info->preceding_text and
123         ic_info->following_text.
124         (minput__init): Initialize Minput_get_surrounding_text and
125         Minput_delete_surrounding_text.
126         (Minput_get_surrounding_text, Minput_delete_surrounding_text): New
127         variables.
128         (filter): Unref ic_info->preceding_text and
129         ic_info->following_text.
130
131         * m17n.h (Minput_get_surrounding_text, Minput_delete_surrounding_text):
132         Extern them.
133
134         * input.h (MInputContextInfo): New members preceding_text and
135         following_text.
136
137 2005-11-04  Kenichi Handa  <handa@m17n.org>
138
139         * input.c (parse_nested_list_value): Fix handling of the global
140         definition.
141         (get_nested_list): Get global definitions by load_partial_im_info.
142         (preedit_commit): Set ic->candidates_changed to bitwise or of enum
143         MInputCandidatesChanged.
144         (take_action_list): Likewise.
145         (reset_ic): Likewise.
146         (create_ic): Don't pay special attention to
147         Mcandidates_group_size.
148         (load_partial_im_info): Call mdatabase_find with correct 4th arg.
149         (minput_set_variable): Get a definition of varible by
150         mplist_find_by_value, not mplist_get.
151
152         * m17n.h (enum MInputCandidatesChanged): New enum.
153
154 2005-11-01  Kenichi Handa  <handa@m17n.org>
155
156         * m17n-X.c (xft_render): Check xft_draw's drawable before changing
157         it.
158         (mwin__destroy_window): If xft_draw's drawable is win, change it
159         to device->drawable before destroying win.
160
161 2005-10-31  Kenichi Handa  <handa@m17n.org>
162
163         * input.c (load_im_info): Fix adding of state.
164
165         * m17n-core.c (m17n_fini_core): Fix reporting of module
166         finalization.
167
168         * m17n.c (m17n_fini): Fix reporting of module finalization.
169
170         * m17n-gui.c (m17n_init_win): Fix reporting of module
171         finalization.
172
173 2005-10-29  Kenichi Handa  <handa@m17n.org>
174
175         * input.c (get_candidate_list): Fix the timing of referring plist.
176
177 2005-10-28  Kenichi Handa  <handa@m17n.org>
178
179         * input.c (load_branch): Ignore an undefined map name.
180         (load_im_info): Set im_info->title from `name' only if it's not
181         Mnil.
182         (shift_state): Always update ic->status.
183         (adjust_candidates): Renamed from adjust_candidate_command.
184         Argument changed.  Caller changed.
185         (get_candidate_list, regularize_action): New functions.
186         (take_action_list): Use them.  On handling Munhandle, don't set
187         ic_info->used to 0.
188         (handle_key): If KEY is not handled by MAP, and MAP has
189         branch_actions, perform them.
190
191         * database.c (mdatabase__fini): Free dir_info->filename;
192
193 2005-10-20  Kenichi Handa  <handa@m17n.org>
194
195         * input.c (marker_code): Accept '@@'.
196         (integer_value): Handle '@@'.
197         (parse_action_list): Accept a symbol argument.
198         (take_action_list): Resolve the symbol argument.  Handle the
199         integer argument.
200
201 2005-10-18  Kenichi Handa  <handa@m17n.org>
202
203         * input.c: Include "charset.h".
204         (M_candidates, Mcandidates_group_size, Mcandidates_charset): New
205         variables.
206         (MIMState): New member (M17NObject control).
207         (lookup_nested_list, set_nested_list, parse_nested_list_value)
208         (get_nested_list, resolve_variable): New functions.
209         (integer_value): New arg (MPlist **value).  Set it to the plist
210         element containing the value.
211         (resolve_command): New function.
212         (load_translation): New arg (MPlist *map_actions).
213         (load_branch): New args language and name.  If `keylist' is a
214         symbol, resolved that as a command name.
215         (free_map): New arg top.  Free map->map_actions only if top is
216         nonzero.
217         (free_state): New function.
218         (load_state): New arg name.
219         (im_info_list): New variable.
220         (free_im_info, get_im_info_by_tags): New functions.
221         (load_im_info): Arg key changed to plist.  Handle `include'.
222         Return (MInputMethodInfo *).
223         (preedit_commit): Ref ic->candidate_list.
224         (get_select_charset, adjust_candidate_command): New functions.
225         (take_action_list): Handle `include'.  Adjust candidate action
226         properly.  Handle control variables `candidates-charset' and
227         `candidates-group-size'.
228         (open_im): Use get_im_info.
229         (create_ic): Get global variables.
230         (load_partial_im_info): New function.
231         (get_im_info): New function.
232         (check_command_keyseq, check_command_list, check_variable_list):
233         New functions.
234         (minput__init): Don't handle M_database_hook and Mdetail_text.
235         Initialize M_candidates, Mcandidates_group_size,
236         Mcandidates_charset.
237         (parse_variable_list, get_variable_list, parse_command_list)
238         (get_command_list): Delete them.
239         (MDatabaseStatList, imdir_stat_list, input_method_hook): Delete them.
240         (minput__fini): Simply unref command_list and variable_list.
241         (minput_get_description): Adjusted for the new form of description.
242         (minput_get_commands): Use get_nested_list.
243         (minput_assign_command_keys): Likewise.
244         (minput_get_variables, minput_set_variable): Likewise.
245
246         * input.h (MInputMethodInfo): New members im and maps.
247
248         * database.h (M_database_hook): Delete extern.
249         (MDatabaseHookFunc): Delete extern.
250         (mdatabase__check): Extern it.
251
252         * database.c: Include <glob.h>.
253         (MAX_TIME): New macro.
254         (Masterisk): New variable.
255         (get_database_stream): Argument changed to (MDatabaseInfo *).
256         Callers changed.
257         (get_dir_info): Renamed from duplicate_dirname.  Callers changed.
258         (find_database): New function.
259         (update_database_list): New function.
260         (mdatabase__init): Initialize Masterisk.  Setup mdb_list by
261         calling update_database_list.
262         (mdatabase__check): New function.
263         (mdatabase_find): Use update_database and find_database.  Don't
264         handle MDatabaseHookFunc.
265         (mdatabase_list): Call update_database at first.
266         (mdatabase_define): Adjusted for the change of mdb->extra_info.
267         (MDatabaseList): New type.
268
269         * plist.h (mplist_conv, mplist__pop_unref): Extern them.
270
271         * m17n.h (Mdetail_text): Delete extern.
272
273         * m17n-core.h (mplist_conc): Delete extern.
274
275         * plist.c (mplist__conc): Renamed from mplist_conc.  Don't ref
276         tail.
277         (mplist_conc): Renamed to mplist__conc.
278         (mplist__pop_unref): New function.
279
280 2005-10-14  Kenichi Handa  <handa@m17n.org>
281
282         * plist.c (read_mtext_element): Ignore the sequence of '\\' and
283         newline.
284         (read_element): If keys is an empty plist, return any element
285         found first.
286         (dump_plist_element): Check if plist is nested.
287         (mplist_conc): Always ref tail.
288         (mplist_set): If key is a managing key, ref val in advance.
289
290         * plist.h (MPLIST_VAL_MANAGED_P): Delete this macro.
291         (MPLIST_NESTED_P, MPLIST_SET_NESTED_P): New macros.
292         (MPLIST_ADD_PLIST, MPLIST_PUSH_PLIST, MPLIST_PUT_PLIST): New
293         macros.
294
295         * fontset.c (free_fontset): Unref fontset_list if necessary.
296         (mfont__fontset_fini): Don't free fontset_list.  Unref
297         default_fontset.
298         (mfont__realize_fontset): Initialize request.
299         (mfontset): Ref default_fontset or fontset only if necessary.
300         (mfontset_copy): Don't ref copy.
301
302         * draw.c (render_glyphs): Check gend->type before checking
303         gend->to.
304
305         * font-ft.c (mfont__ft_fini): Unref ft_default_list.  Set all
306         unrefed plists to NULL.
307
308 2005-10-04  Kenichi Handa  <handa@m17n.org>
309
310         * textprop.c (mtext_serialize): Be sure to make mt
311         MTEXT_FORMAT_UTF_8 and NULL terminated.
312
313         * m17n-gui.c (m17n_init_win): Initialize Mcolormap.
314
315         * draw.c (mdraw_glyph_list): Fix settting of glyphs->font->source.
316
317 2005-10-03  Kenichi Handa  <handa@m17n.org>
318
319         * draw.c (mdraw_glyph_info): Pay attention to the case that FROM
320         is not at the beginning of line.
321
322 2005-09-22  Kenichi Handa  <handa@m17n.org>
323
324         * input.c: Include <sys/stat.h> and <unistd.h>.
325         (Minclude, Mcommit, Munhandle): New variables.
326         (minput__init): Initialize them.  Push only Mstate to
327         load_im_info_keys.   Add aliases C-lowercase for C-uppercase.
328         (parse_action_list): Allow integer arg for undo.  Handle Mcommit
329         and Munhandle.
330         (load_input_method): Handle "include" directive.  If no states are
331         loaded, return -1.
332         (shift_state): If state_name is Mt, shift back to the previous
333         state.  Call preedit_commit to commit preedit text.
334         (preedit_commit): New function.
335         (take_action_list): Improve debug printing.  Handle commit and
336         unhandle commands.
337         (handle_key): Check the return value of take_action_list.  Don't
338         take branch_actions just after changing to the root map.
339         (reset_ic): Reset all ic_info members.
340         (filter): When a key is not handled, just move ic_info->keys
341         instead fo calling reset_ic.
342         (load_im_info): If key is not Mstate, push Mmap to
343         load_im_info_keys.
344         (MDatabaseStatList): New type.
345         (imdir_stat_list): New variable.
346         (input_method_hook): Don't cancel the hook.  Check the
347         modification time of directories.
348         (minput__fini): Free imdir_stat_list;
349
350         * input.h (MInputContextInfo): New member prev_state.
351
352         * m17n-core.h (mplist_conc): Extern it.
353
354         * plist.c (mplist_conc): New function.
355
356         * mtext.c (mdebug_dump_mtext): Escape '"' and '\\' by '\\'.
357
358         * font.h (MRealizedFont): New member average_width.
359
360         * font-ft.c (ft_open): Set rface->average_width.
361
362         * font.c (xlfd_unparse_name): Print '*' before registry name.
363
364         * m17n-X.c (MDisplayInfo): New member AVERAGE_WIDTH.
365         (xfont_open): Set rfont->average_width.
366         (xft_open): Likewise.
367         (device_open): Initialize disp_info->AVERAGE_WIDTH.
368
369         * internal-gui.h (struct MFrame): New member average_width.
370
371         * m17n-gui.c (mframe): Fix setting of frame->rfont.
372         (mframe_get_prop): Return the average_width of a font.
373
374         * face.c (mface__realize): Set rface->average_width.
375         (mface__update_frame_face): Set frame->average_width.
376
377         * face.h (MRealizedFace): New member average_width.
378
379 2005-09-19  Kenichi Handa  <handa@m17n.org>
380
381         * font.c (xlfd_unparse_name): New arg full_xlfd.
382         (mfont__encode_char): Use shortcut only for X core fonts.
383         (mfont_unparse_name): Call xlfd_unparse_name with full_xlfd arg 1.
384         (mfont_put_prop): Handle `language' property.
385         (mdebug_dump_font): Call xlfd_unparse_name with full_xlfd arg 0.
386         Print file can capability info too.
387
388         * m17n-core.c (mdebug__output): New variable.
389         (SET_DEBUG_FLAG): Unset mask if env_value is '0'.
390         (m17n_init_core): Handle MDEBUG_ALL and MDEBUG_OUTPUT_FILE.
391         (m17n_fini_core): Close mdebug__output if it's not stderr.
392
393         * m17n-X.c (MDisplayInfo): New member MULE_BASELINE_OFFSET.
394         (xfont_open): Handle baseline_offset.
395         (xfont_find_metric): Likewise.
396         (xfont_render): Likewise.
397         (xft_open): Likewise.
398         (xft_render): Likewise.
399
400         * internal.h (MDebugMaskBit): Add MDEBUG_ALL.
401         (mdebug__output): Extern it.
402         (MDEBUG_PRINT, MDEBUG_PRINT1, MDEBUG_PRINT2, MDEBUG_PRINT3)
403         (MDEBUG_PRINT4, MDEBUG_PRINT5): Print to medebug__output.
404         (MDEBUG_DUMP): New macro.
405         (MDEBUG_PRINT_TIME): Print to medebug__output.
406
407         * font.h (MRealizedFont): New member baseline_offset.
408
409         * font-ft.c (ft_get_charmaps): Check if the font support iso8859-1
410         characters.
411         (fc_weight_table): Add FC_WEIGHT_REGULAR.
412         (ft_list_family): Check alias.
413         (ft_list_language): If language is "en", don't try to the second
414         step.
415         (ft_default_list): New variable.
416         (ft_list_default): New function.
417         (ft_select): If family is not specified, try only the default
418         fonts.  Treat the weights normal and medium same.
419         (ft_open): Fix debug message.  If registry is not specified, try
420         unicode-bmp.  Handle _MULE_BASELINE_OFFSET property of BDF fonts.
421         (ft_find_metric): Likewise.
422         (ft_render): Likewise.
423         (ft_list): Fix debug message.  Accept the registring iso8859-1.
424         If family is not specified, try only the default fonts.
425
426         * face.c (mface__realize): Fix logic of opening a font.
427
428 2005-09-16  Kenichi Handa  <handa@m17n.org>
429
430         * face.c (mface__realize): 
431
432         * m17n.h (Minput_focus_move, Minput_focus_in, Minput_focus_out):
433         Extern them.
434
435         * input.c (shift_state): Fix the condition of taking init actions.
436         (take_action_list): Fix handling of pushback action.
437         (handle_key): Don't change key while checking its alias.
438         (minput__init): Initialize new variables.
439         (Minput_focus_move, Minput_focus_in, Minput_focus_out): New
440         variables.
441
442 2005-09-12  Kenichi Handa  <handa@m17n.org>
443
444         * mtext.c (mtext__uppercase): Add proper open/close parens.
445         (mtext_titlecase): Add proper casting.
446
447         * input.c (parse_action_list): Handle the case that the arg is a
448         key sequence (MText or MPlist).
449         (take_action_list): Likewise.
450         (shift_state): Shorter debug message.
451         (handle_key): Terminate a debug message by "\n".
452         (reset_ic): Don't take initial actions here.
453         (minput_open_im): Print a debug message.
454         (minput_close_im): Likewise.
455         (minput_create_ic): Likewise.
456         (minput_destroy_ic): Likewise.
457
458 2005-09-09  TAKAHASHI Naoto  <ntakahas@m17n.org>
459
460         * mtext.c (mtext_lowercase, mtext_titlecase, mtext_uppercase):
461         Change API.
462
463 2005-09-07  TAKAHASHI Naoto  <ntakahas@m17n.org>
464         * character.c: Add "cased", "soft-dotted", and "case-mapping" in
465         mchar__init ().
466
467         * character.c: Add Japanese documentation for
468         mchar_get_prop_table ().
469
470 2005-09-06  TAKAHASHI Naoto  <ntakahas@m17n.org>
471
472         * mtext.c (tricky_chars, *cased, *soft_dotted, *case_mapping)
473         (MCharTable *combining_class, Mlt, Mtr, Maz, gr03A3, lt0049,
474         (lt004A, lt012E, lt00CC, lt00CD, lt0128, tr0130, tr0049, tr0069):
475         New variables.
476         (init_case_conversion): New function.
477         (CASE_CONV_INIT, REPLACE, DELETE, LOOKUP): New macros.
478         (uppercase_precheck, lowercase_precheck, final_sigma)
479         (after_soft_dotted, more_above, before_dot, after_i)
480         (mtext_uppercase, mtext_titlecase, mtext_lowercase): New functions.
481
482 2005-09-05  TAKAHASHI Naoto  <ntakahas@m17n.org>
483
484         * plist.c (read_mtext_element): Fix previous change.
485
486 2005-09-05  Kenichi Handa  <handa@m17n.org>
487
488         * plist.c (read_mtext_element): Handle \uXXXX notation.
489
490         * internal.h (MTABLE_MALLOC): Don't use a local variable.
491         (MTABLE_ALLOCA): Change the name of local variable.
492
493         * m17n-gd.c (device_open): Define it even if HAVE_GD nor
494         HAVE_FREETYPE are defined.
495
496         * m17n-X.c: Check HAVE_X11.
497
498         * Makefile.am (X_LD_FLAGS): Use @X11_LD_FLAGS@ instead of
499         directory listing libraries.
500         (noinst_PROGRAMS): Define it only in maintainer mode.
501
502 2005-09-02  Kenichi Handa  <handa@m17n.org>
503
504         * m17n-gui.h (mdraw_line_break_option): Extern it.
505
506         * draw.c (truncate_gstring): Use find_glyph_in_gstring to find the
507         end of the first glyph.
508         (GET_LB_TYPE, find_break_backward, find_break_forward): Delete
509         them.
510         (mdraw_line_break_option): New variable.
511         (mdraw_default_line_break): Use mtext_line_break.
512
513         * mtext.h (wordseg_func_table): Don't extern it.
514         (mtext__wseg_fini): Extern it.
515
516         * mtext.c: Don't include word-thai.h.
517         (wordseg_func_table): Delete this variable.
518         (mtext__init): Don't initialize above.  Don't call
519         mtext__word_thai_init.
520         (mtext__fini): Don't free wordseg_func_table.  Call
521         mtext__wseg_fini instead fo mtext__word_thai_fini.
522         (MTextWordsegFunc): Don't typedef it.
523         (mtext__word_segment): Moved to mtext-wseg.c.
524
525         * m17n-core.h (enum MTextLineBreakOption): New enum.
526         (mtext_line_break): Extern it.
527
528         * mtext-wseg.c: New file.
529
530         * mtext-lbrk.c: New file.
531
532         * Makefile.am (libm17n_core_la_SOURCES): Delete word-thai.[ch],
533         add mtext-lbrk.c and mtext-wseg.c.
534
535         * textprop.c (mtext__adjust_plist_for_change): Pay attention for
536         the case that head is NULL.
537
538 2005-09-01  Kenichi Handa  <handa@m17n.org>
539
540         * word-thai.c (wordseg_propertize): If the property value is nil,
541         don't make the property no-merge.
542         (thai_wordseg): Don't require *from and *to are set a priori.  Pay
543         attention to the case that they are NULL.
544         (mtext__word_thai_init): Make the name of Mthai_wordseg starts
545         with two spaces.
546
547         * character.c (mchar_get_prop_table): New function.
548
549         * textprop.h (mtext__adjust_plist_for_change): Prototype adjusted.
550
551         * m17n-core.h (mtext_insert, mtext_replace): Extern them.
552         (mchar_get_prop_table): Extern it.
553
554         * textprop.c (prepare_to_modify): New arg deleting.  Callers changed.
555         (mtext__adjust_plist_for_change): Argument changed.  Callers changed.
556
557         * internal.h (enum MTextCoverage): New enum.
558         (MText): New member coverage.
559
560         * mtext.c (FORMAT_COVERAGE): New macro.
561         (insert): Copy mt2->coverage.
562         (mtext__from_data): Initialize mt->coverage.
563         (mtext__adjust_format): Update mt->coverage.
564         (mtext): Initialize mt->coverage.
565         (mtext_set_char): Adjust args to mtext__adjust_plist_for_change.
566         Update mt->coverage if necessary.
567         (mtext_duplicate): Copy mt->coverage.
568         (mtext_insert, mtext_replace): New functions.
569         (mtext_dup): Use mtext_duplicate.
570         (mtext__word_segment): Don't set *from and *to if a word
571         segmentation funcion is not found.
572         (mtext_ins_char): Fix typo.
573
574 2005-08-25  Kenichi Handa  <handa@m17n.org>
575
576         * font.h (MFont): New member for_full_width.
577
578         * font.c (compare_font_score): Prefer a font of not
579         for_full_width.
580
581         * m17n-X.c (xfont_registry_list): Set font.for_full_width if the
582         registry charset of a font is one of CJK charsets.
583
584         * font-ft.c (fc_parse_pattern): Set font->for_full_width if a font
585         supports some of CJK.
586
587 2005-08-24  Kenichi Handa  <handa@m17n.org>
588
589         * m17n-gui.h (Mascent, Mdescent): Don't extern them.
590
591         * m17n-gui.c (null_device_open): Check Mresolution param and set
592         frame->dpi.
593
594         * m17n-gd.c (device_open): Check Mresolution param and set
595         frame->dpi.
596
597         * m17n-X.c (MWDevice): New member resy.
598         (xfont_open): Set ascent, descent, and max_advance members of
599         rfont.
600         (xft_open): Likewise.
601         (device_open): Compare also screen_num to find a device.  Set
602         device->resy and frame->dpi.
603
604         * internal-gui.h (MFrame): New member dpi.
605
606         * font.h (MRealizedFont): New member max_advance.
607
608         * font.c (xlfd_unparse_name): Handle the case of font->size < 0.
609         (mfont__init): Don't initialize Mascent, Mdescent.
610         (Mascent, Mdescent): Delete these variables.
611         (mfont_get_prop): Fix previous change.  Check Mfont_ascent and
612         Mfont_descent instead of Mascent and Mdescent.
613         (mfont_put_prop): Allow negative size.
614         (mfont_find): Handle the case of spec->size < 0.  Fix previous
615         change.
616         (mfont_list): Handle the case of spec->size < 0.
617         (mfont_check): Likewise.
618
619         * font-ft.c (STRDUP_LOWER): Ignore the tailing spaces.
620         (fc_get_pattern): Handle the case of font->size < 0.
621         (ft_open): Set ascent, descent, and max_advance members of rfont.
622         (ft_find_metric): Improve rounding.
623         (mfont__ft_parse_name): If FC_PIXEL_SIZE is not available, set
624         FC_SIZE.
625
626         * face.c (mface__realize): Handle the case of font->size < 0.
627
628 2005-08-22  Kenichi Handa  <handa@m17n.org>
629
630         * coding.c (MConverterStatus): Change the member buf to union.
631         (mconv_buffer_converter): Add const to the arg buf.
632         (mconv_decode_buffer, mconv_rebind_buffer): Likewise.
633         (mconv_decode): Adjusted for the change of MConverterStatus.
634         (mconv_encode_range): Likewise.
635
636         * m17n.h (mconv_buffer_converter): Prototype adjusted.
637         (mconv_decode_buffer, mconv_rebind_buffer): Likewise.
638
639 2005-08-20  Kenichi Handa  <handa@m17n.org>
640
641         * m17n-gui.h (mfont_from_name): Prototype adjusted.
642         (Mspacing, Mascent, Mdescent, Mmax_advance): Extern them.
643
644         * m17n-X.c (xfont_open): Set members ascent, descent, and
645         max_advance of rfont.
646         (xft_open): Likewise.
647
648         * font-ft.c (ft_open): Set members ascent, descent, and max_advance
649         of rfont.
650         (mfont__ft_parse_name): Add const to the arg name.
651
652         * font.c (xlfd_parse_name): Add const to the arg name.  Call
653         mfont__set_property instead of mfont_set_spec.  Set font->spacing.
654         (xlfd_unparse_name): Handle spacing.
655         (mfont__init): Initialize new variables.
656         (mfont__id): Handle spacing.
657         (mfont__merge): Likewise.
658         (mfont__set_spec): This function deleted.
659         (mfont__parse_name_into_font): Add const to the arg name.  Fix the
660         condition of calling mfont__ft_parse_name.
661         (Mspacing, Mascent, Mdescent, Mmax_advance): New variables.
662         (mfont_get_prop): Handle properties spacing, ascent, descent,
663         and max-advance.
664         (mfont_find): Return a realized font.
665         (mfont_from_name): Add const to the arg name.
666
667         * font.h (enum MFontProperty): New member MFONT_SPACING.
668         (enum MFontSpacing): New enum.
669         (MFont): New members spacing and max_advance.
670         (mfont__ft_parse_name): Prototype adjusted.
671         (mfont__set_spec): Extern deleted.
672         (mfont__parse_name_into_font): Prototype adjusted.
673
674 2005-08-19  Kenichi Handa  <handa@m17n.org>
675
676         * m17n-gui.h (mfont_parse_name): Prototype adjusted.
677
678         * font.c (mfont_list): If FONT is null, use a temporary font.
679         (mfont_parse_name): Add const to the arg name.
680
681 2005-08-18  Kenichi Handa  <handa@m17n.org>
682
683         * word-thai.c: Surround code by #ifdef and #endif to escape from
684         doxygen.
685
686         * font-ft.c: Mostly re-written.
687
688         * font-flt.c (FontLayoutCmdOTF): This type deleted.
689         (FontLayoutCmd): Type of the member otf changed..
690         (load_otf_command): Adjusted for the format change of otf command.
691         (load_command): Likewise.
692         (free_flt_command): Unref cmd->body.otf.
693         (run_otf): Ajusted for the type change of otf_cmd.
694         (run_command): Ajusted for the type change of otf_cmd.  On
695         debugging, print ctx->combining_code.
696         (mfont__flt_run): Initialize ctx's members code_offset,
697         combining_code, and left_padding to 0.
698
699         * face.h (struct MRealizedFace): New member font.
700         (mface__realize): Prototype adjusted.
701
702         * face.c (find_realized_face): New arg font.
703         (find_realized_face): Adjusted for the change of MFont.
704         (mface__init): Call M17N_OBJECT_ADD_ARRAY.
705         (mface__fini): Don't call mdebug__report_object.
706         (mface__realize): New arg font.
707         (mface__for_chars): Adjusted for the change of mfont__encode_char.
708         Optimize the latin case.
709         (mface__free_realized): Free rface->font.
710         (mface__update_frame_face): Adjusted for the change of mface__realize.
711         (mface_equal): New function.
712
713         * draw.c (Mcommon): New variable.
714         (visual_order): Args to mfont__encode_char changed.
715         (compose_glyph_string): Handle Mfont text property.
716         (layout_glyphs): Adjusted for the change of MFont.
717         (mdraw__init): Initialize Mcommon.
718         (mdraw_glyph_info): Adjusted for the change of MRealizedFont.
719
720         * font.h (enum MFontType): Members completely changed.
721         (enum MFontProperty): Move MFONT_SIZE to the tail.
722         (enum MFontSource): New enum.
723         (struct MFont): New members type, source, sizes, file, capability,
724         and encoding.
725         (struct MRealizedFont): Type of member font changed. Members
726         score, status, and encoding deleted.
727         (MFontScore): New type.
728         (MFontList): Member changed.
729         (struct MFontDriver): New member has_char.  Types of members
730         changed.
731         (Miso8859_1, Miso10646_1, Municode_bmp, Municode_full)
732         (Mapple_roman): Extern them.
733         (OTF_Tag): Typedefed if not HAVE_OTF.
734         (enum MFontOpenTypeTable): New enum.
735         (MFontCapability): New type.
736         (mfont__ft_drive_otf): Prototype adjusted.
737         (mfont__score): Extern deleted.
738         (mfont__merge): Extern it.
739         (mfont__has_char): Extern it.
740         (mfont__encode_char): Prototype adjusted.
741         (mfont__open): Extern it.
742         (mfont__set_spec): Prototype adjusted.
743         (mfont__get_capability): Extern it.
744
745         * font.c: Include "fontset.h".
746         (M_font_capability, M_font_list, M_font_list_len): New variables.
747         (font_score_priority): Change order of initial elements.
748         (font_score_shift_bits): Fix array size.
749         (common_weight): Add "thin", "semibold", and "heavy".
750         (common_stretch): Add "ultracondensed", "extracondensed",
751         "extraexpanded", and "utltraexpand".
752         (font_weight_regular, font_weight_normal, font_weight_medium): New
753         variables.
754         (gen_font_name): This function deleted.
755         (find_encoding): Set font->encoding.
756         (OTF_tag): New function.
757         (otf_script_list): New variable.
758         (load_otf_script_list): New function.
759         (find_script_from_otf_tag): New function.
760         (xlfd_parse_name): Set font->type and font->source.
761         (mfont__free_realized): Free chains rfonts.
762         (font_score): Renamed from mfont__score.
763         (Miso8859_1, Miso10646_1, Municode_bmp, Municode_full)
764         (Mapple_roman): New variables.
765         (mfont__init): Initilize new variables.  Initalize
766         default_encoding.encoding_name and
767         default_encoding.encoding_charset to Municode_full and
768         mcharset__unicode.  Use SAFE* macros for allocating filepath
769         buffer.
770         (mfont__fini): Free otf_script_list.
771         (mfont__id): New function.
772         (mfont__match_p): Check also capability member of MFont.
773         (mfont__merge): New funciton.
774         (mfont__set_spec_from_face): Set type and source members.
775         (mfont__set_spec_from_plist): Set capability and type members.
776         (mfont__select): Argument changed.
777         (mfont__available): New function.
778         (compare_font_score): New function.
779         (mfont__list): New function.
780         (mfont__open): Return a realized font.
781         (mfont__resize): Adjusted for the change of MFont.
782         (mfont__has_char): New function.
783         (mfont__encode_char): Argument changed.
784         (mfont__set_spec): Argument changed.
785         (free_font_capability): New function.
786         (mfont__get_capability): New function.
787         (MFontfile): New variable.
788         (mfont_get_prop): Adjusted for the change of MFont.
789         (mfont_put_prop): Likewise.
790         (mfont_set_selection_priority): Fix the way of setting
791         font_score_priority[].
792         (mfont_find): Use mfont__list instead of mfont__select.
793         (mfont_resize_ratio): Adjusted for the change of MFont.
794         (mfont_list): Use mfont__list.
795         (mfont_check): New function.
796         (font_score): Make it static.
797
798         * fontset.h (mfont__realize_fontset): Prototype adjusted.
799         (mfont__lookup_fontset): Likewise.
800
801         * fontset.c (struct MFontset): Delete member font_spec_list.
802         (struct MRealizedFontset): Type of member spec changed.  New
803         member request.
804         (load_font_group): Arg spec_list deleted.
805         (load_fontset_contents): Adjusted for the change of fontset_def.
806         (free_fontset): Fix the way of freeing fontset elements.
807         (realize_fontset_elements): Argument changed.
808         (get_per_script): New function.
809         (free_realized_fontset_elements): Fix the way of feeing rfontset
810         elements.
811         (update_fontset_elements): Fix args to realize_fontset_elements.
812         (mfont__realize_fontset): New arg spec.
813         (try_font_list): New function.
814         (try_font_group): New arg request.  Use try_font_list.
815         (mfont__lookup_fontset): New arg ignore_fallback.  Fix arg to
816         try_font_group.
817         (mfontset): Adjusted for the change of MFontset.
818         (mfontset_copy): Likewise.  Don't share plists.
819         (mfontset_modify_entry): Adjusted for the change of MFontset.
820         (mfontset_lookup): Call get_per_script.
821         (mdebug_dump_fontset): Print also the address of fonts.
822
823         * input.c (shift_state): Don't reset ic_info->vars.
824         (take_action_list): Call MDEBUG_PRINT fore calling
825         take_action_list.
826
827         * internal-gui.h (MFontDriver): Don't typedef it here.
828
829         * m17n-X.c: Include <fontconfig/fcfreetype.h> if HAVE_XFT2.
830         (MXFont): This type deleted.
831         (MFontX): New type.
832         (struct _MFontX): New struct.
833         (SET_SIZE, HAVE_SIZE): Adjusted for the change of arg FONTX.
834         (MDisplayInfo): Member base_font_list deleted.
835         (DEFAULT_FONT): Definition changed.
836         (FALLBACK_FONT): This maclr deleted.
837         (free_display_info): Adjusted for the change of MDisplayInfo.
838         (free_device): Argument to mfont__free_realized changed.
839         (xfont_driver): Adjusted for the change of MFontDriver.
840         (xfont_registry_list): Use MFontX instead of MXFont.
841         (MRealizedFontX): Renamed from MXFontInfo.
842         (xfont_select): Return the font found first.
843         (close_xfont): Change MXFontInfo to MRealizedFontX.
844         (xfont_open): Return the realized font.
845         (xfont_find_metric): Get xfont from rfont->fontp.
846         (xfont_has_char): New function.
847         (xfont_encode_char): Adjusted for the argument change.
848         (xfont_render): Get xfont from rfont->fontp.
849         (xfont_list): Adjusted for the argument change.
850         (MRealizedFontXft): Renamed from MXftFontInfo.
851         (xft_driver): Ajusted for the change of MFontDriver.
852         (close_xft): Change MXtfFontInfo to MRealizedFontXft
853         (xft_open_font): Argument changed.
854         (xft_open): Argument changed.  Return the realized font.
855         (xft_find_metric): Get xft_font from rfont->fontp.
856         (xft_has_char, xft_encode_char): New functions.
857         (xft_render): Change MXftFontInfo to MRealizedFontXft.  Open a
858         font if not yet opened.
859         (device_open): Don't set frame->font.
860
861         * m17n-gd.c (gd_font_driver): Adjusted for the change of
862         MFontDriver.
863         (gd_font_open): New function.
864         (gd_render): Don't use the local variable ft_info.
865         (device_init): Adjusted for the change of gd_font_driver.
866
867         * textprop.c (mtext__prop_init): Initialize text_property_table.
868         Call M17N_OBJECT_ADD_ARRAY.
869         (mtext__prop_fini): Don't call mdebug__report_object.
870
871         * plist.c (mplist__init): Initialize plist_table.
872         (mplist__init): Call M17N_OBJECT_ADD_ARRAY.
873         (mplist__fini): Don't call mdebug__report_object.
874
875         * mtext.c (mtext__init): Call M17N_OBJECT_ADD_ARRAY.
876         (mtext__fini): Don't call mdebug__report_object.
877         (MTEXT_FORMAT_UTF_16): Correct type.
878         (mtext_data): New function.
879         (mtext_text): Fix calculation of limit and args to
880         find_char_backward.
881
882         * language.c: Include "plist.h".
883         (M_script_lang_list): New variable.
884         (mlang__init): Read languages and their information from m17n
885         database.
886         (mlanguage__list): New function.
887         (Miso639_1, Miso639_2): New variables.
888
889         * language.h (mlanguage__list): Extern it.
890
891         * database.c (get_database_stream): Use SAFE_* macros for
892         allocating and freeing path.
893         (mdatabase__init): Likewise.
894
895         * symbol.c (msymbol__fini): Don't free symbols here.
896         (msymbol__free_table): New function.
897         (msymbol_is_managing_key): New function.
898
899         * symbol.h (msymbol__free_table): Extern it.
900         (msymbol__list): Extern it.
901
902         * internal.h (MFATAL, USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE):
903         New macros.
904         (M17N_OBJECT_UNREF): Change "if ... else ..." structure.
905         (struct _M17NObjectArray): New member name and next.
906         (mdebug__add_object_array): Extern it.
907         (M17N_OBJECT_ADD_ARRAY): New macro.
908         (mdebug__report_object): Don't extern it.
909
910         * m17n-misc.h (enum MErrorCode): New element MERROR_FONT_X.
911
912         * m17n-gui.c (free_frame): Don't free frame->font.
913         (null_device_fini): Fix code for freeing
914         null_device.realized_font_list.
915         (m17n_fini_win): Free interface.
916         (mframe): Cast the return value of dlsym.  Set frame->font here.
917         (mframe_get_prop): Check frame->rface->rfont before accessing the
918         member font.
919
920         * m17n-gui.h (Mfontfile): Extern it.
921         (mfont_check): Extern it.
922         (mface_equal): Extern it.
923
924         * m17n-core.c: Include "symbol.h".
925         (report_header_printed): This variable deleted.
926         (object_array_root): New variable.
927         (report_object_array): New function.
928         (mdebug__report_object): This function deleted.
929         (mdebug__add_object_array): New function.
930         (m17n_init_core): Call mchartable_init () before mtext_init ().
931         (m17n_fini_core): Call report_object_array (if necessary) and
932         msymbol__free_atable at the end.
933
934         * m17n-core.h (msymbol_is_managing_key): Extern it.
935         (mtext_data): Extern it.
936         (MTEXT_FORMAT_UTF_16): Correct type.
937         (M17NLIB_MINOR_VERSION): Changed to 3.
938         (M17NLIB_VERSION_NAME): Changed to "1.3.0".
939         
940         * chartab.c (mchartable__init): Initalize chartable_table.count.
941         (mchartable__fini): Use N17N_OBJECT_ADD_ARRAY instead of
942         mdebug__report_object.
943
944 2005-05-26  Kenichi Handa  <handa@m17n.org>
945
946         * m17n.h (Miso639_1, Miso639_2): Extern them.
947
948         * symbol.h (msymbol__list): Extern it.
949
950         * symbol.c (msymbol__list): New function.
951
952 2005-05-19  Kenichi Handa  <handa@m17n.org>
953
954         * input-gui.c (minput__win_init): Don't change the value of
955         minput_driver.
956
957 2005-05-16  Kenichi Handa  <handa@m17n.org>
958
959         * m17n-core.c (m17n_object): Be sure to initialize all members.
960
961         * font-ft.c (fc_decode_prop): Fix args to msymbol.
962
963 2005-05-09  Kenichi Handa  <handa@m17n.org>
964
965         * m17n-X.c (mwin__close_device): Fix arg to M17N_OBJECT_UNREF.
966
967 2005-04-27  Kenichi Handa  <handa@m17n.org>
968
969         * language.c (mlang__init): Add "an" (Aragonese).
970
971         * word-thai.c: Add support for libthai.
972         (mtext__word_thai_init): Initialize wordseg library conditionaly.
973         (mtext__word_thai_fini): Finalize wordseg library conditionaly.
974
975         * mtext.c: Include "word-thai.h" conditionaly.
976         (mtext__init): Call mtext__word_thai_init conditionaly.
977         (mtext__fini): Call mtext__word_thai_fini conditionaly.
978
979         * Makefile.am (libm17n_core_la_LIBADD): Add THAI_WORDSEG_LD_FLAGS,
980         not WORDCUT_LD_FLAGS.
981
982 2005-04-19  Kenichi Handa  <handa@m17n.org>
983
984         * word-thai.c (wordseg_propertize): Always unref the attached
985         property.
986         (thai_wordseg): Don't unref the property.
987
988 2005-04-18  Kenichi Handa  <handa@m17n.org>
989
990         * word-thai.c: Include stdlib.h.
991         (wordseg_propertize): Add dummy function for the case that wordcut
992         library doesn't exist.
993         (wordseg_propertize): Fix for old wordcut library.
994
995 2005-04-16  Kenichi Handa  <handa@m17n.org>
996
997         * word-thai.c: Include <stdio.h>.
998
999 2005-04-15  Kenichi Handa  <handa@m17n.org>
1000
1001         * draw.c: Include mtext.h.
1002         (linebreak_table, M_break_at_space, M_break_at_word)
1003         (M_break_at_any, M_kinsoku_bol, M_kinsoku_eol): New variables.
1004         (compose_glyph_string): Check POS before getting Mface text
1005         property.
1006         (truncate_gstring): Give correct TO arg to line_break function.
1007         (GET_LB_TYPE): New macro.
1008         (find_break_backward, find_break_forward): New functions.
1009         (mdraw__init): Initialize the above new variables.
1010         (mdraw__fini): Free linebreak_table.
1011         (mdraw_default_line_break): Use find_break_backward and
1012         find_break_forward.
1013
1014         * word-thai.c: New file.
1015
1016         * word-thai.h: New file.
1017
1018         * mtext.c: Include word-thai.h.
1019         (wordseg_func_table): New variable.
1020         (mtext__init): Initialize wordseg_func_table and call
1021         mtext__word_thai_init.
1022         (mtext__fini): Call mtext__word_thai_fini, free
1023         wordseg_func_table.
1024         (MTextWordsegFunc): New type.
1025         (mtext__word_segment): New function.
1026
1027         * mtext.h (wordseg_func_table): Extern it.
1028         (mtext__word_segment): Extern it.
1029
1030         * m17n.c (m17n_init): Fix typo (== -> =).
1031
1032         * Makefile.am (libm17n_core_la_SOURCES): Include word-thai.[ch].
1033         (libm17n_core_la_LIBADD): Add @WORDCUT_LD_FLAGS@.
1034
1035         * textprop.h (MTEXTPROP_START, MTEXTPROP_END, MTEXTPROP_KEY)
1036         (MTEXTPROP_VAL): New macros.
1037
1038         * input.c (DLOPEN_SHLIB_EXT): Don't define it.
1039
1040 2005-04-07  Kenichi Handa  <handa@m17n.org>
1041
1042         * database.c (load_chartable): Fix pursing of symbol name.
1043
1044 2005-03-24  Kenichi Handa  <handa@m17n.org>
1045
1046         * m17n.c (m17n_init): Fix typo (== -> =).
1047
1048 2005-03-11  Kenichi Handa  <handa@m17n.org>
1049
1050         * m17n-gui.c (m17n_init_win): Set merror_code to MERROR_NONE at first.
1051
1052         * m17n.c (m17n_init): Set merror_code to MERROR_NONE at first.
1053
1054         * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE at
1055         first.
1056
1057 2005-03-09  handa  <handa@m17n.org>
1058
1059         * m17n-gui.c (m17n_init_win): Set merror_code to MERROR_NONE before
1060         calling m17n_init ().
1061
1062         * m17n.c (m17n_init): Set merror_code to MERROR_NONE before
1063         calling m17n_init_core ().
1064
1065 2005-02-28  Kenichi Handa  <handa@m17n.org>
1066
1067         * font-flt.c (mfont__flt_run): Add resulting code sequence in
1068         debug info.
1069
1070 2005-02-17  Kenichi Handa  <handa@m17n.org>
1071
1072         * input.c: Include <sys/types.h>, <dirent.h>, and "database.h".
1073         (M_description, M_command, M_variable): New variables.
1074         (load_im_info_keys): New variables.
1075         (load_im_info, check_command_keyseq, get_description_advance)
1076         (parse_command_list, get_command_list, parse_variable_list)
1077         (get_variable_list, input_method_hook): New functions.
1078         (command_list, variable_list): New variables.
1079         (minput__init): Put input_method_hook to Minput_method.
1080         Initialize M_description, M_command, M_variable, Mdetail_text,
1081         load_im_info_keys, command_list, variable_list.
1082         (minput__fini): Unref command_list, variable_list, load_im_info_keys.
1083         (Mdetail_text): New variable.
1084         (minput_get_description, minput_get_commands)
1085         (minput_assign_command_keys, minput_get_variables)
1086         (minput_set_variable): New functions.
1087
1088         * m17n.h (Mdetail_text, minput_get_description, minput_get_commands)
1089         (minput_assign_command_keys, minput_get_variables)
1090         (minput_set_variable): Extern them.
1091
1092         * plist.c (UNGETC): Just decrement st->p.
1093         (read_mtext_element): New arg skip.
1094         (read_integer_element): Likewise.
1095         (read_symbol_element): Likewise.
1096         (read_element): New arg KEYS.
1097         (mplist__from_plist): Don't increment ref-count of NULL object.
1098         (mplist__from_file): New arg KEYS.
1099         (mplist_put): Don't increment ref-count of NULL object.
1100         (mplist_add): Likewise.
1101         (mplist_push): Likewise.
1102         (mplist_set): Likewise.  Call M17N_OBJECT_UNREF unconditionally.
1103
1104         * plist.h (mplist__from_file): Prototype adjusted.
1105
1106         * database.c (mdatabase__dir_list): Renamed from mdb_dir_list.
1107         (get_database_stream): New function.
1108         (load_database): Use get_database_stream.
1109         (M_database_hook): New variable
1110         (mdatabase__init): Initialize M_database_hook.
1111         (mdatabase__load_for_keys): New function.
1112         (mdatabase_find, mdatabase_list, mdatabase_define): Check hook
1113         function.
1114         (mdatabase_define): Free mdb->extra_info if necessary.
1115
1116         * database.h (mdatabase__dir_list, M_database_hook)
1117         (mdatabase__load_for_keys): Extern them.
1118         (MDatabaseHookFunc): New type.
1119
1120         * internal.h (M17N_OBJECT_UNREF): When freed, set OBJECT to NULL.
1121
1122 2004-12-27  Kenichi Handa  <handa@m17n.org>
1123
1124         * Version 1.2.0 released.
1125
1126 2004-12-27  Kenichi Handa  <handa@m17n.org>
1127
1128         * input.c (minput_filter): Don't reset ic->xxx_changed.
1129
1130         * mtext.c (mtext_from_data): Fix documentation.
1131
1132 2004-12-25  Kenichi Handa  <handa@m17n.org>
1133
1134         * m17n-core.h (M17NLIB_MINOR_VERSION): Update to 2.
1135         (M17NLIB_VERSION_NAME): Update to "1.2.".
1136
1137 2004-12-24  Kenichi Handa  <handa@m17n.org>
1138
1139         * input.c (reset_ic): Set key_unhandled to 0.
1140
1141 2004-12-21  Kenichi Handa  <handa@m17n.org>
1142
1143         * m17n-gui.h (mfont_from_spec): Delete extern.
1144
1145         * input-gui.c (win_callback): Handle Minput_reset.
1146         (minput__win_init): Register reset_ic as a callback for
1147         Minput_reset.
1148
1149         * input.c (reset_ic): New arg IGNORE which is ignored.  Caller
1150         changed.  At first, shift to the initial state.
1151         (minput__init): Initialize Minput_reset.  Register reset_ic as a
1152         callback for Minput_reset.
1153         (Minput_reset): New variable.
1154         (minput_filter): Always set ic->xxx_changed to 0.
1155         (minput_reset_ic): New function.
1156         (integer_value): Fix typo ('>' -> '<') and calculation of length
1157         of preedit text.
1158
1159         * m17n-core.c (merror_code): Change type to `int'.
1160
1161         * m17n-misc.h (merror_code): Adjust type.
1162
1163         * m17n.h (Minput_reset, minput_reset_ic): Extern them.
1164
1165         * m17n-core.h (MTEXT_FORMAT_UTF_16, MTEXT_FORMAT_UTF_32): Adjust types.
1166         (mtext_change_prop): Delete extern.
1167
1168         * mtext.c (MTEXT_FORMAT_UTF_16, MTEXT_FORMAT_UTF_32): Change types
1169         to `int'.  Move the documents to m17n-core.h.
1170
1171 2004-12-13  Kenichi Handa  <handa@m17n.org>
1172
1173         * m17n-core.h (m17n_object): Rename extern from m17n_object_setup.
1174         (MTextProperty): Document it.
1175
1176 2004-12-09  Kenichi Handa  <handa@m17n.org>
1177
1178         * m17n-core.h: Fix typo (MTextStatus -> M17NStatus).
1179
1180 2004-12-03  Kenichi Handa  <handa@m17n.org>
1181
1182         * internal.h (m17n__core_initialized, m17n__shell_initialized,
1183         m17n__gui_initialized): New externs.
1184
1185         * m17n-core.h (enum M17NStatus): New enum.
1186         (m17n_status): Extern it.
1187
1188         * m17n-core.c (core_initialized): Delete this variable.
1189         (m17n__core_initialized, m17n__shell_initialized,
1190         m17n__gui_initialized): New variables.
1191         (m17n_init_core, m17n_fini_core): Check m17n__core_initialized
1192         instead of core_initialized.
1193         (m17n_status): New function.
1194
1195         * m17n.c (shell_initialized): Delete this variable.
1196         (m17n_init, m17n_fini): Check m17n__shell_initialized instead of
1197         shell_initialized.
1198
1199         * m17n-gui.h (m17n_init_win): Adjust the prototype.
1200
1201         * m17n-gui.c (win_initialized): Delete this variable.
1202         (m17n_init_win, m17n_fini_win): Check m17n__gui_initialized
1203         instead of gui_initialized.
1204
1205 2004-11-19  Kenichi Handa  <handa@m17n.org>
1206
1207         * input.c (reset_ic): Check if ic_info->state is NULL.
1208         (filter): If ic_info->state is NULL, return 0.
1209         (load_input_method): Don't unref `maps' it it's not created.
1210
1211 2004-11-15  Kenichi Handa  <handa@m17n.org>
1212
1213         * input.c (find_candidates_group): If INDEX is -1, find the last
1214         candidate group.
1215         (take_action_list): If the previous of the first candidate is
1216         requested, select the last candidate.
1217
1218 2004-11-08  Kenichi Handa  <handa@m17n.org>
1219
1220         * m17n-X.c (device_open): Try at most 32 fonts to find a
1221         non-autoscaled font.
1222
1223         * font.c (xlfd_parse_name): Fix previous change.
1224
1225 2004-11-05  Kenichi Handa  <handa@m17n.org>
1226
1227         * font.c: (commont_style): Include dummy elements "slanted" and
1228         "rslanted" to prefer "o" to "r" if "i" is requested.
1229
1230         * font-ft.c (ft_to_prop): Fix "oblique" entry.
1231
1232 2004-10-29  Kenichi Handa  <handa@m17n.org>
1233
1234         * font.c (xlfd_parse_name): If avgwidth is 0, set the size to 0.
1235
1236         * m17n-X.c (MXFont): Change type of the member `sizes' to int.
1237         New members smallest and larger.
1238         (SET_SIZE, HAVE_SIZE): Adjusted for the above change.
1239         (xfont_registry_list): Likewise.
1240         (xfont_select): Likewise.
1241         
1242
1243 2004-10-28  Kenichi Handa  <handa@m17n.org>
1244
1245         * m17n-X.c (xfont_registry_list): Include '-' before PIXEL_SIZE in
1246         font name comparison.
1247         (xfont_select): Fix logic for selecting a larger size font.
1248
1249 2004-10-25  Kenichi Handa  <handa@m17n.org>
1250
1251         * input.c (take_action_list): Initialize `ret' to 0 for "=", "<",
1252         ">" actions.
1253
1254 2004-10-22  Kenichi Handa  <handa@m17n.org>
1255
1256         * input.c (update_candidate): Renamed from udpate_candidate.
1257         (take_action_list): Show more debugging info on arithmetic commands.
1258
1259         * m17n-X.c (device_open): Fix previous change.
1260
1261         * draw.c (compose_glyph_string): Don't get face property at the
1262         end of M-text.
1263
1264 2004-10-21  Kenichi Handa  <handa@m17n.org>
1265
1266         * draw.c (compose_glyph_string): Fix for the case of category
1267         being Mnil.
1268
1269 2004-10-19  Kenichi Handa  <handa@m17n.org>
1270
1271         * input.c (mdebug_mask): New variable.
1272         (shift_state): Print debug information.
1273         (take_action_list): Likewise.
1274         (handle_key): Likewise.
1275
1276 2004-10-14  Kenichi Handa  <handa@m17n.org>
1277
1278         * m17n-X.c (device_open): Accept Mxft as the value of key Mfont.
1279
1280 2004-10-13  Kenichi Handa  <handa@m17n.org>
1281
1282         * m17n-X.c (device_open): Be sure to register at least one font
1283         driver.
1284
1285         * font-ft.c: Include <freetype/ftbdf.h> conditionally.  Check
1286         HAVE_FTBDF_H before calling FT_Get_BDF_Property.
1287
1288 2004-10-12  Kenichi Handa  <handa@m17n.org>
1289
1290         * draw.c (alloc_gstring): Fix previous change.
1291
1292         * font-ft.c (ft_list_generic): Fix for the case of not
1293         HAVE_FONTCONFIG.
1294
1295         * m17n-X.c (mwin__parse_event): Fix for non-ASCII keys.
1296
1297         * font.c (mfont_list): If no font is found, return NULL.
1298         (load_font_encoding_table): Put entries of nil registry first.
1299         (find_encoding): Adjust for the above change.
1300
1301 2004-10-11  Kenichi Handa  <handa@m17n.org>
1302
1303         * m17n-gui.h (mfont_list): Adjust prototype.
1304
1305         * m17n-X.c (xfont_list): New arg maxnum.
1306
1307         * font.h (struct MFontDriver): Change prototype of <list>.
1308
1309         * font-ft.c (fc_generic_family_list): Delete it.
1310         (Mserif, Msans_serif, Mmonospace): Delete them.
1311         (M_generic_family_info): New variable.
1312         (enum GenericFamilyType): New enum.
1313         (struct GenericFamilyInfo): New struct.
1314         (generic_family_table): New variable.
1315         (set_font_info): New arg style. Don't check 0xA0..0xBF to decide
1316         iso8859-1.
1317         (add_font_info): Get style here.
1318         (ft_list_family): Don't initialize fc_config here.  Don't list
1319         generic families.
1320         (ft_list_generic): New function.
1321         (ft_select): Pay attention to generic familes here.
1322         (ft_open): Fix calculation of ascent and descent.
1323         (ft_list): Pay attention to generic families.
1324         (mfont__ft_init): Initialize M_generic_family_info,
1325         generic_family_table, and fc_config..
1326         (mfont__ft_fini): Finalize generic_family_table.
1327
1328         * draw.c (compose_glyph_string): Use more constant font for
1329         glyphs.  Adjust for the member change in MGlyph.
1330         (layout_glyph_string): Adjust for the member change in MGlyph.
1331         (alloc_gstring): Intilize scracth_glyph to avoid
1332         compose_glyph_string on it.
1333         (get_gstring): Don't call compose_glyph_string on scracth_glyph.
1334         (mdraw_coordinates_position): Fix previous change.
1335
1336         * internal-gui.h (glyph_category): New enum.
1337         (MGlyph): Change type of <category> to enum glyph_category.
1338
1339         * face.c (mface__realize): Delete args langauge and charset.
1340         (mface__for_chars): Fix for the case that glyphs have different
1341         rfaces.
1342         (mface__update_frame_face): Adjust for mface__realize change.
1343
1344         * face.h (mface__realize): Adjust prototype.
1345
1346 2004-10-05  Kenichi Handa  <handa@m17n.org>
1347
1348         * language.c (mlang__init): Add Akan.
1349
1350 2004-10-04  Kenichi Handa  <handa@m17n.org>
1351
1352         * font-ft.c (add_font_info): Add instead of push the element.
1353         (ft_list_family): For generic fonts, try all
1354         substituted. families.
1355
1356         * font-flt.c (UPDATE_CLUSTER_RANGE): New macro.
1357         (run_rule): Don't update cluster range here.
1358         (run_command): Update cluster range on appending a glyph.
1359         (run_otf): Update cluster range for glyphs generated by OTF.
1360
1361 2004-10-02  Kenichi Handa  <handa@m17n.org>
1362
1363         * m17n-X.c (device_open): Handle Mfont key in PLIST.
1364
1365 2004-09-30  Kenichi Handa  <handa@m17n.org>
1366
1367         * font-ft.c (ft_select): Ignore family on calling mfont__score.
1368
1369 2004-09-30  Kenichi Handa  <handa@m17n.org>
1370
1371         * font.h: Include <fontconfig/fontconfig.h>.
1372         (MFTInfo): New member langset.
1373         (mfont__encoding_list): Extern it.
1374
1375         * font.c (mfont__encoding_list): New function.
1376         (mdebug_dump_font_list): New function.
1377
1378         * font-ft.c: Don't include <fontconfig/fontconfig.h> here.
1379         (Mserif, Msans_serif, Mmonospace, Mmedium, Mr, Mnull): New
1380         variables.
1381         (ft_family_list): New variable.
1382         (set_font_info): New arg basep.  Callers changed.
1383         (fc_list): Check the return value of FcPatternGetString.
1384         (add_font_info): New arg plist.  Callers changed. Update
1385         ft_family_list.
1386         (ft_list_family): New function (merged fc_list and ft_list_all).
1387         (ft_select): Use ft_list_family.
1388         (ft_list): Likewise.  If FONT is not NULL, check all fonts.  Fix
1389         typo (== -> !=).
1390         (mfont__ft_init): Initialize above new variables.
1391         (mfont__ft_fini): Free ft_family_list.
1392         (STRDUP_LOWER): New macro.
1393         (set_font_info): Use STRDUP_LOWER.
1394         (ft_list_family): Avoid duplicate addition of font path.  Use
1395         STRDUP_LOWER.
1396         (fc_decode_prop): Fix typo.
1397
1398         * m17n-X.c (MDisplayInfo): New member all_fonts_scaned.
1399         (xfont_registry_list): Change argument disp_info to frame.
1400         Callers changed.
1401         (xfont_list_all): New function.
1402         (xfont_list): If FONT is not NULL, check all fonts.
1403
1404 2004-09-28  Kenichi Handa  <handa@m17n.org>
1405
1406         * m17n-X.c (MXFont, MXFontList): New types.
1407         (MDisplayInfo): Delete members font_registry_list,
1408         iso8859_1_family_list, iso10646_1_family_list, new members
1409         font_list, base_font_list.
1410         (free_display_info): Adusted for the change of MDisplayInfo.
1411         (xfont_driver): Initialize with xfont_list.
1412         (font_compare): New function.
1413         (build_font_list): Deleted.
1414         (xfont_registry_list): New function.
1415         (xfont_select): Use xfont_registry_list.
1416         (xfont_list): New function.
1417         (device_open): Adusted for the change of MDisplayInfo.
1418
1419         * font-ft.c (add_font_info): New arg languages.  Callers changed.
1420         (fc_list): Get languages from fonts..
1421         (ft_list_all): Renamed from ft_list.  Callers changed.
1422         (ft_list): New function.
1423         (mfont__ft_driver): Initalize with ft_list.
1424
1425         * font.c (mfont_list): New function.
1426
1427         * font.h (struct MFontDriver): New member `list'.
1428         (MFTInfo): New member languages.
1429
1430         * m17n-gui.h (mfont_list): Extern it.
1431
1432 2004-09-27  Kenichi Handa  <handa@m17n.org>
1433
1434         * internal-gui.h (struct MGlyphString): Delete members mt,
1435         sub_width, sub_lbrearing, sub_rbearing, and region.
1436
1437         * draw.c (MSubTextExtents): New type.
1438         (layout_glyphs): New arg extents.  Set its members.
1439         (layout_glyph_string): Adjusted for the above change.
1440         (alloc_gstring): Don't set gstring->mt.
1441         (truncate_gstring): Call line_break function with mt instead of
1442         gstring->mt.
1443
1444 2004-09-22  Kenichi Handa  <handa@m17n.org>
1445
1446         * mtext.c (count_utf_16_chars): Count each code of invalid
1447         surrogates as one.
1448
1449 2004-09-19  Kenichi Handa  <handa@m17n.org>
1450
1451         * mtext.c (default_utf_16, default_utf_32): Rename them to
1452         MTEXT_FORMAT_UTF_16 and MTEXT_FORMAT_UTF_32 respectively.  Caller
1453         changed.
1454
1455         * m17n-core.h (MTEXT_FORMAT_UTF_16, MTEXT_FORMAT_UTF_32): Extern
1456         them.
1457
1458 2004-09-13  Kenichi Handa  <handa@m17n.org>
1459
1460         * draw.c (Mlatin): Don't declare it here.
1461         (visual_order): Fix reordering of combining characters.
1462         (compose_glyph_string): Fix detection of script.
1463         (layout_glyphs): Don't fix reordering of combining characters
1464         here.
1465         (layout_glyph_string): Pay attention to
1466         control->disable_overlapping_adjustment.
1467         (truncate_gstring): Include at least on character in a line.
1468         (get_gstring): Always scan one full line.
1469         (mdraw__init): Don't initialize Mlatin here.
1470         (mdraw_text_per_char_extents): Fix iteration.  If a glyph doesn't
1471         have a font, use ascent/descent of an ASCII font.  Allow
1472         ink_array_return and logical_array_return to be NULL.
1473         (mdraw_coordinates_position): Fix iteration.
1474
1475         * font-ft.c (MFTtoProp): Member completely changed.
1476         (ft_to_prop): Adjusted for the above change.
1477         (ft_to_prop_size): Likewise.
1478         (set_font_info): Adjusted for the change of MFTtoProp.
1479         (fc_generic_family_list): New variable.
1480         (fc_list): Add special handling of generic font names.
1481         (mfont__ft_init): Adjusted for the change of MFTtoProp.
1482         Initialize fc_generic_family_list.
1483         (mfont__ft_fini): Don't free ft_to_prop.  Free
1484         fc_generic_family_list.
1485         (FC_vs_M17N_font_prop): New type.
1486         (fc_weight_table, fc_slant_table, fc_width_table): New variables.
1487         (fc_decode_prop, fc_encode_prop): New functions.
1488         (mfont__ft_parse_name): Use fc_decode_prop.
1489         (mfont__ft_unparse_name): Use fc_encode_prop.
1490
1491         * m17n-X.c (MDisplayInfo): Delete member realized_font_list.
1492         (MWDevice): Add member realized_font_list.
1493         (free_display_info): Don't free disp_info->realized_font_list.
1494         (free_device): Free device->realized_fontset_list.
1495         (xft_find_metric): Use gstring->frame instead of rfont->frame.
1496         (device_open): Don't initialize disp_info->realized_font_list.
1497         (device_open): Initialize device->realized_font_list and set it to
1498         frame->realized_font_list.
1499
1500         * fontset.c (try_font_group): New function.
1501         (mfont__lookup_fontset): Use try_font_group.
1502
1503         * font.c (common_weight): Change the order of "regular".
1504
1505         * face.c (Mlatin): Don't make it static.
1506         (mface__realize): Be sure to set work_gstring.frame.
1507         (mface__for_chars): Likewise.
1508
1509         * mtext.c (mdebug_dump_mtext): Fix for the case of mt->format >
1510         MTEXT_FORMAT_UTF_8.
1511
1512         * internal-gui.h (Mlatin): Extern it.
1513
1514         * m17n-gui.h (MDrawControl): New member
1515         disable_overlapping_adjustment.
1516
1517 2004-09-06  Kenichi Handa  <handa@m17n.org>
1518
1519         * font-flt.c (run_otf): Fix typo ('}'->']').
1520
1521         * internal-gui.h (MAKE_PRECOMPUTED_COMBINDING_CODE)
1522         (COMBINING_PRECOMPUTED_P): New macros.
1523
1524         * draw.c (layout_glyphs): Handle precomputed combining code.
1525
1526         * font-ft.c (mfont__ft_drive_otf): Set g->combining_code to a
1527         precomupted combining code.
1528
1529 2004-09-03  Kenichi Handa  <handa@m17n.org>
1530
1531         * font-ft.c (mfont__ft_drive_otf): Use malloc and free for
1532         otf_gstring.glyphs.
1533
1534 2004-08-27  Kenichi Handa  <handa@m17n.org>
1535
1536         * face.c (mface_put_prop): If the new value is the same as the
1537         current one, don't increment frame->tick.
1538
1539 2004-08-25  Kenichi Handa  <handa@m17n.org>
1540
1541         * fontset.c (mfontset): Initialize font_spec_list member.
1542         (mfontset_copy): Load fontset if necessary.
1543
1544         * m17n-gui.h (MDrawGlyphInfo): Change the member name 'this' to
1545         'metrics' to for C++.
1546
1547         * draw.c (mdraw_glyph_info): Adjusted for the member name change
1548         (this -> metics).
1549
1550 2004-08-16  Kenichi Handa  <handa@m17n.org>
1551
1552         * Version 1.1.0 released.
1553
1554 2004-08-13  Kenichi Handa  <handa@m17n.org>
1555
1556         * language.c (mlang__init): Add Dhivehi.
1557
1558         * m17n-gui.c (Mx, Mfreetype): Delete it.
1559         (m17n_init_win): Don't initialize Mx and Mfreetype here.
1560
1561         * m17n-gui.h (Mfreetype, Mxft): Extern them.
1562         (mfont_resize_ratio): Extern it.
1563         (MDrawGlyphInfo): New member logical_width;
1564         (MDrawGlyph): New type.
1565         (mdraw_glyph_list): Prototype adjusted.
1566
1567         * m17n-X.c (xfont_open): Set type and fontp members.
1568         (xft_open): Likewise.
1569
1570         * internal-gui.h (Mx, Mfreetype): Delete extern.
1571
1572         * font.h (struct MRealizedFont): New member type and fontp.
1573
1574         * font.c (mfont__init): Initialize Mx, Mfreetype, and Mxft.
1575         (Mx, Mfreetype): Declare here.
1576         (Mxft): New variable.
1577         (mfont_resize_ratio): New function.
1578
1579         * font-ft.c (ft_open): Set type and fontp members.
1580
1581         * draw.c (mdraw_glyph_list): Argument type changed.  Don't set
1582         glyph_code member.
1583
1584 2004-08-11  Kenichi Handa  <handa@m17n.org>
1585
1586         * font-ft.c (ft_find_metric): Call FT_Load_Glyph with
1587         FT_LOAD_DEFAULT.
1588
1589 2004-08-06  Kenichi Handa  <handa@m17n.org>
1590
1591         * font-ft.c (mfont__ft_drive_otf): Fix for the case that no GSUB
1592         feature to apply.
1593
1594         * font-flt.c (run_otf): Print debugging information if necessary.
1595
1596 2004-08-05  Kenichi Handa  <handa@m17n.org>
1597
1598         * font-ft.c (mfont__ft_drive_otf): Fix sign of g->yoff.  Support
1599         positioning_type 5 and 6.  Switch simplified.
1600
1601 2004-08-04  Kenichi Handa  <handa@m17n.org>
1602
1603         * font-ft.c (mfont__ft_drive_otf): Call OTF_drive_gdef.
1604
1605 2004-08-02  Kenichi Handa  <handa@m17n.org>
1606
1607         * font.c (mfont__score): If prop is MFONT_FOUNDRY or MFONT_FAMILY,
1608         set val to 1 even if it is greater than 1.
1609
1610         * fontset.c (mfontset_modify_entry): Fix handling of the arg `how'.
1611
1612 2004-07-29  Kenichi Handa  <handa@m17n.org>
1613
1614         * font-flt.c (run_rule, run_command, mfont__flt_run): Print more
1615         debugging information.
1616
1617         * internal.h (MDEBUG_PRINT5): New macro.
1618
1619         * draw.c (layout_glyphs): Don't combine a zero width glyph with
1620         the previous one if the zero width glyph has left or right
1621         padding.
1622
1623 2004-07-26  Kenichi Handa  <handa@m17n.org>
1624
1625         * m17n-X.c (xft_render): Pay attention to members left_padding and
1626         right_padding of MGlyph.
1627
1628         * draw.c (visual_order): Allocate one more elements for arrays as
1629         a workaround of fribidi bug.
1630         (layout_glyphs): Fix previous change. Check MGlyph->combining_code
1631         instead of MGlyph->bidi_sensitive.
1632         (layout_glyph_string): Pay attentinon to
1633         control->orientation_reversed when padding at the head or tail.
1634         Fix adjustment of space glyph width.
1635         (get_gstring): If cursor_width or cursor_bidi is changed, don't
1636         use a cache.
1637
1638         * font-ft.c (mfont__ft_drive_otf): Set MGlyph->combining_code
1639         instead of MGlyph->bidi_sensitive.
1640
1641         * internal-gui.h (MGlyph): Delete member bidi_sensitive.
1642
1643 2004-07-26  Kenichi Handa  <handa@m17n.org>
1644
1645         * draw.c (visual_order): Don't treat combined glyphs specially.
1646         (layout_glyphs): Don't get metrics glyphs that are already ready.
1647         Pay attention to MGlyph->bidi_sensitive.  Combine a glyph of zero
1648         width with the previous one. 
1649         (draw_background): Fix bar cursor position on a r2l glyph.
1650
1651         * font-flt.c (FontLayoutCmdOTF): Move back from internal-gui.h.
1652         (run_rule): Fix place of updating cluster_begin_pos and
1653         cluster_end_pos here.
1654         (run_otf): Don't set left_padding.
1655
1656         * font-ft.c (adjust_anchor): Type of argument `code' changed.
1657         Caller changed.
1658         (mfont__ft_drive_otf): Renamed back from mfont__ft_drive_gsub.
1659         Fix handling of GPOS.
1660         (mfont__ft_drive_gpos): Delete this function.
1661
1662         * font.h (mfont__ft_drive_otf): Renamed back from
1663         mfont__ft_drive_gsub.
1664         (mfont__ft_drive_gpos): Delete extern.
1665
1666         * internal-gui.h (FontLayoutCmdOTF): Move back to font-flt.c.
1667         (MGlyph): Delete member otf_cmd, add member bidi_sensitive.
1668
1669 2004-07-23  Kenichi Handa  <handa@m17n.org>
1670
1671         * draw.c (layout_glyphs): Call mfont__ft_drive_gpos with glyphs of
1672         the same bidi level.
1673
1674         * font-ft.c (mfont__ft_drive_gpos): Check bidi-level.
1675
1676 2004-07-22  Kenichi Handa  <handa@m17n.org>
1677
1678         * font-flt.c (load_flt): Treat the symbol Mend as end-of-file.
1679
1680 2004-07-20  Kenichi Handa  <handa@m17n.org>
1681
1682         * draw.c (render_glyphs): Fix checking of g->code validity.
1683
1684         * face.c (mface__realize): Set g.type.
1685
1686 2004-07-18  Kenichi Handa  <handa@m17n.org>
1687
1688         * Makefile.am: Prepend ${top_srcdir} to all *.la in
1689         *_LIBADD/*_LDADD.
1690
1691         * m17n-gui.c (mframe): Print error message give by dlopen to
1692         stderr.
1693
1694 2004-07-16  Kenichi Handa  <handa@m17n.org>
1695
1696         * draw.c (compose_glyph_string): Improve the way of deciding a
1697         script.  For a character that doesn't have script property, use
1698         the last non-latin script.
1699
1700         * font-ft.c (fc_list): Cancel previous change.
1701         (mfont__ft_init): Add more entries in ft_to_prop_name.
1702
1703 2004-07-15  Kenichi Handa  <handa@m17n.org>
1704
1705         * draw.c (mdraw_glyph_list): Add the width of padding glyphs to
1706         previous or next character glyphs.
1707
1708 2004-07-14  Kenichi Handa  <handa@m17n.org>
1709
1710         * draw.c (compose_glyph_string): Be sure to set codes for glyphs
1711         of type GLYPH_SPACE.
1712
1713         * fontset.c (mfont__lookup_fontset): If glyph type is
1714         GLYPH_SPACE, get codes for SPACE.
1715
1716         * internal-gui.h (Mfont): Delete extern.
1717
1718         * m17n-gui.h (Mfont): Delete duplicated extern.
1719
1720 2004-07-13  Kenichi Handa  <handa@m17n.org>
1721
1722         * font-ft.c (DEVICE_DELTA): New macro.
1723         (adjust_anchor): New function.
1724         (mfont__ft_drive_gsub): Renamed from mfont__ft_drive_otf.  Drive
1725         only GSUB.
1726         (mfont__ft_drive_gpos): New function.
1727
1728         * font-flt.c (FontLayoutCmdOTF): Moved to internal-gui.h.
1729         (FontLayoutContext): Delete member `rfont'.
1730         (run_otf): Set g->otf_cmd.  Call 
1731         (mfont__flt_run): Don't set ctx.rfont.  Call mfont__ft_decode_otf
1732         only whne HAVE_OTF is defined.
1733
1734         * fontset.c: Include "config.h".
1735
1736         * internal-gui.h (FontLayoutCmdOTF): Moved from font-flt.c.
1737         (MGlyph): New member otf_cmd.
1738
1739         * font.h (mfont__ft_drive_gsub): Changed from mfont__ft_drive_otf.
1740         (mfont__ft_drive_gpos): Extern it.
1741
1742         * face.c: Include "config.h".
1743
1744         * draw.c (layout_glyphs): Call mfont__ft_drive_gpos.
1745
1746         * input-gui.c: Include "config.h".
1747
1748         * plist.c: Include "config.h".
1749
1750 2004-07-06  Kenichi Handa  <handa@m17n.org>
1751
1752         * m17n-gui.c, m17n-gui.h, m17n-gd.c, m17n-X.h, m17n-X.c,
1753         internal-gui.h: Cancel previous changes.
1754
1755         * m17n-gd.h: Delete it.
1756
1757         * Makefile.am (libm17n_core_la_LIBADD): New variable.
1758         (libm17n_core_la_LDFLAGS): Add -export-dynamic, move
1759         @XML2_LD_FLAGS@ to above.
1760         (libm17n_la_LIBADD): Add -ldl.
1761         (libm17n_la_LDFLAGS): Add -export-dynamic.
1762         (X_LD_FLAGS): Fix the order of linking.
1763         (libm17n_gui_la_LIBADD): Add ${OPTIONAL_LD_FLAGS}.
1764         (libm17n_gui_la_LDFLAGS): Add -export-dynamic, delete above.
1765         (libm17n_X_la_LDFLAGS): Add -module.
1766         (libm17n_gd_la_SOURCES): Delete m17n-gd.h.
1767         (libm17n_gd_la_LIBADD): Add @GD_LD_FLAGS@.
1768         (libm17n_gd_la_LDFLAGS): Add -module.
1769         (include_HEADERS): Delete m17n-gd.h.
1770
1771 2004-06-30  Kenichi Handa  <handa@m17n.org>
1772
1773         * m17n-gui.c: Adjusted for the change of struct MDeviceDriver.
1774         (MDeviceLibraryInterface): Delete it.
1775         (register_device_library): Delete it.
1776         (m17n__device_library_list): Renamed from device_library_list.
1777
1778         * m17n-gui.h (M17N_INIT_X, M17N_INIT_GD): New macros.
1779         (m17n_init_win): Adjust prototype.
1780
1781         * m17n-gd.c: Adjusted for the change of struct MDeviceDriver.
1782         (m17n_init_gd): New function. 
1783
1784         * m17n-gd.h: New file.
1785
1786         * m17n-X.h: Include <m17n-gui.h>.
1787         (m17n_init_X): Extern it.
1788         (M17N_INIT): Redefine it.
1789
1790         * m17n-X.c: Adjusted for the change of struct MDeviceDriver.
1791         (m17n_init_X): New function.
1792
1793         * internal-gui.h (m17n__device_library_list): Extern it.
1794         (struct MDeviceDriver): New members initialized, init, and fini.
1795
1796         * Makefile.am (libm17n_X_la_LIBADD): Add ${X_LD_FLAGS} and
1797         @XFT2_LD_FLAGS@.
1798         (libm17n_X_la_LIBADD): Delete aboves.
1799         (libm17n_gd_la_SOURCES): Add m17n-gd.h.
1800         (libm17n_gd_la_LIBADD): Add @GD_LD_FLAGS@.
1801         (libm17n_gd_la_LDFLAGS): Delete it.
1802         (include_HEADERS): Add m17n-gd.h.
1803
1804 2004-06-25  Kenichi Handa  <handa@m17n.org>
1805
1806         * Makefile.am (libm17n_X_la_LDFLAGS): Cancel previous change.
1807         (libm17n_gd_la_LDFLAGS): Cancel previous change.
1808
1809         * m17n-gd.c (gd_render): Don't call FT_Get_Char_Index.
1810
1811         * font-ft.c (fc_list): If FcFontList finds no font, try
1812         FcFontMatch.
1813
1814         * draw.c (compose_glyph_string): Terminate the last loop after
1815         doing default combining if necessary.
1816
1817 2004-06-24  Kenichi Handa  <handa@m17n.org>
1818
1819         * draw.c (mdraw_glyph_list): Unref gstring->top at the tail.
1820
1821         * character.c (mchar_define_property): Add const to an arg.
1822
1823         * charset.c (mchar_define_charset): Add const to an arg.
1824
1825         * coding.c (MCodingSystem): Add const to an arg or decoder.
1826         (finish_decoding): Add const to an arg.
1827         (decode_coding_charset, decode_coding_utf_8)
1828         (decode_coding_utf_16, decode_coding_utf_32)
1829         (decode_coding_iso_2022, decode_coding_sjis)
1830         (mconv_define_coding): Likewise.
1831
1832         * m17n-X.c (xft_find_metric): Delete unused variable.
1833
1834         * m17n-core.h (mchar_define_property, mtext_from_data): Adjust
1835         prototypes.
1836
1837         * m17n.h (mchar_define_charset, mconv_define_coding): Adjust
1838         prototypes.
1839
1840         * mtext.c (count_utf_8_chars, count_utf_16_chars)
1841         (mtext__from_data, mtext_from_data): Add `const' to an arg.
1842
1843         * mtext.h (mtext__from_data): Ajust prototype.
1844
1845 2004-06-23  Kenichi Handa  <handa@m17n.org>
1846
1847         * draw.c (compose_glyph_string): Always get glyph codes by
1848         mface__for_char.
1849         (mdraw_glyph_info): Set info->glyph_code and info->logical_width.
1850         (mdraw_glyph_list): New function.
1851
1852         * font-flt.c (mfont__flt_run): Be sure to call
1853         rfont->driver->encode_char.
1854
1855         * font-ft.c (ft_find_metric): Don't call FT_Get_Char_Index.
1856         (ft_encode_char): Delete arg C.
1857         (ft_render): Don't call FT_Get_Char_Index.
1858
1859         * font.c (mfont__encodable_p): Delete it.
1860         (mfont__encode_char): Be sure to call rfont->driver->encode_char.
1861
1862         * font.h (struct MFontDriver): Delete arg C of encode_char.
1863         (mfont__encodable_p): Delete extern.
1864
1865         * m17n-X.c (xfont_encode_char): Delete arg C.
1866         (xft_find_metric): Don't cal FT_Get_Char_Index.
1867         (xft_render): Likewise.
1868
1869         * m17n-gui.h (MDrawGlyphInfo): New members glyph_code and
1870         logical_width.
1871         (mdraw_glyph_list): Extern it.
1872
1873         * Makefile.am (libm17n_X_la_LDFLAGS): Don't include ${X_LD_FLAGS}.
1874
1875 2004-06-22  Kenichi Handa  <handa@m17n.org>
1876
1877         * m17n-gui.h (mfontset_lookup): Extern it.
1878
1879         * m17n-gui.c (m17n_init_win): Delete unnecessary printing.
1880
1881         * fontset.c (realize_fontset_elements)
1882         (free_realized_fontset_elements, update_fontset_elements): New
1883         functions.
1884         (mfont__realize_fontset): Call realize_fontset_elements.
1885         (mfont__free_realized_fontset): Call free_realized_fontset_elements.
1886         (mfont__lookup_fontset): If a fontset was modified, update
1887         the realized fontset.
1888         (mfontset_modify_entry): Increment fontset->tick.
1889         (mfontset_lookup): New function.
1890
1891 2004-06-21  Kenichi Handa  <handa@m17n.org>
1892
1893         * font-ft.c (mfont__ft_parse_name): Cast the arg to FcNameParse.
1894
1895         * mtext.c (mtext_dup, mtext_cat, mtext_ncat, mtext_cpy)
1896         (mtext_ncpy, mtext_duplicate): Pay attention to the case that the
1897         length of source text 0.
1898
1899 2004-06-21  Kenichi Handa  <handa@m17n.org>
1900
1901         * mtext.c (INC_POSITION): Use CHAR_UNITS_BY_HEAD_UTF16.
1902         (compare): Pay attention to format other than utf-8.
1903         (copy): Delete this function.
1904         (count_by_utf_8, count_by_utf_16, insert): New functions.
1905         (count_utf_16_chars): Fix handling of a surrogate pair.
1906         (find_char_forward, find_char_backward): Likewise.
1907         (mtext__from_data): Delete unnecessary check.  Fix number of
1908         allocated bytes.
1909         (mtext_from_data): Don't count items.
1910         (mtext_ref_char): Optimize the code.
1911         (mtext_set_char): Pay attention to format other than utf-8.
1912         (mtext_cat_char): Likewise.
1913         (mtext_dup): Don't call copy, instead do allocation here.
1914         (mtext_cat): Call insert instead of copy.
1915         (mtext_ncat): Likewise.
1916         (mtext_cpy): Delete character at first and call insert instead of
1917         copy.
1918         (mtext_ncpy): Likewise.
1919         (mtext_copy): Likewise.
1920         (mtext_duplicate): Call insert instead of copy.
1921         (mtext_del): Pay attention to format other than utf-8.
1922         (mtext_ins): Simply call insert.
1923         (mtext_ins_char): Pay attention to format other than utf-8.
1924         (mtext_tok): Call insert instead of copy.
1925         (mtext_text): Call UNIT_BYTES.
1926
1927         * textprop.c (mtext__adjust_plist_for_change): New function.
1928
1929         * character.h (USHORT_SIZE, UINT_SIZE, UNIT_BYTES): New macros.
1930         (CHAR_UNITS_UTF16, CHAR_UNITS): Simplified.
1931         (CHAR_UNITS_AT): Fix typo.
1932         (CHAR_UNITS_BY_HEAD): Fix typo.
1933         (STRING_CHAR_AND_UNITS): Fix typo.
1934
1935         * internal.h (MTEXT_READ_ONLY_P): New macro. 
1936
1937         * mtext.h (mtext__replace): Delete the extern.
1938         (mtext__adjust_foramt): Adjust prototype.
1939
1940         * plist.c (mplist_deserialize): Adjust the format of MT to utf-8
1941         if possible.  Otherwise make a copy of mmt.
1942
1943         * coding.c (mconv_decode, mconv_gets): Adjust the format of MT to
1944         utf-8.
1945
1946 2004-06-18  Kenichi Handa  <handa@m17n.org>
1947
1948         * character.h (CHAR_STRING_UTF16): Fix syntax.
1949
1950 2004-06-16  Kenichi Handa  <handa@m17n.org>
1951
1952         * Makefile.am (libm17n_gd_la_LIBADD): Delete it.
1953         (libm17n_X_la_LIBADD): Delete it.
1954         (libm17n_gd_la_LDFLAGS): Don't include @GD_LD_FLAGS@.
1955
1956         * m17n-X.c (device_open): Add parens in `if' condition.
1957
1958         * mtext.c (INC_POSITION): Handle format other than utf8 and utf16.
1959         (DEC_POSITION): Likewise.
1960         (compare): Fix case that mt1->format is MTEXT_FORMAT_UTF_8.
1961
1962 2004-06-15  Kenichi Handa  <handa@m17n.org>
1963
1964         * fontset.c (mfont__lookup_fontset): Fix selection of font groups
1965         by language.
1966
1967         * draw.c (compose_glyph_string): If langauge is specified, call
1968         mface__for_chars even if a text is all latin.  Fix condition for
1969         setting non_ascii_found.
1970
1971         * m17n-X.c (xft_find_metric): Fix setting of g->lbrearing.
1972
1973         * m17n.h (minput_char_to_key): Delete extern.
1974
1975         * m17n-gui.h (minput_event_to_key): Cancel previous change.
1976
1977         * m17n-gui.c (null_device_open): Set several members of frame.
1978
1979 2004-06-14  Kenichi Handa  <handa@m17n.org>
1980
1981         * m17n-gui.h (minput_event_to_key): Delete extern.
1982
1983         * symbol.h (struct MSymbolStruct): Renamed from MSymbol.
1984
1985         * m17n-core.h (MSymbol): Defined as "struct MSymbolStruct *".
1986
1987         * Makefile.am (AM_CPPFLAGS): Refer to @M17NDIR@.
1988
1989 2004-06-08  Kenichi Handa  <handa@m17n.org>
1990
1991         * character.c (mchar_put_prop): Don't increment the ref-count of
1992         record->table.
1993
1994 2004-06-04  Kenichi Handa  <handa@m17n.org>
1995
1996         * m17n-core.c (mdebug__register_object): New function.
1997         (mdebug__unregister_object): Likewise.
1998
1999         * internal.h (mdebug__register_object, mdebug__unregister_object):
2000         Extern them.
2001         (M17N_OBJECT_REGISTER, M17N_OBJECT_UNREGISTER): Call them
2002         respectively.
2003
2004         * charset.c (mcharset__load_from_database): Don't call
2005         mconv__register_charset_coding here.
2006
2007         * coding.c (find_coding): Get a real name from an element of
2008         coding_definition_list.
2009         (mconv__register_charset_coding): Set the real name at the top of
2010         param.
2011         (mcoding__load_from_database): Likewise.
2012         (mconv_list_codings): Adjusted for the above change.
2013
2014 2004-06-03  Kenichi Handa  <handa@m17n.org>
2015
2016         * coding.c (find_coding): Find by canonicalized name.  Don't have
2017         to modify the element of coding_definition_list by
2018         mplist__from_plist.
2019         (mconv__define_coding_from_charset): Delete it.
2020         (mconv__register_charset_coding): Canonicalize sym.
2021         (mcoding__load_from_database): Register plist modified by
2022         mplist__from_plist.
2023
2024         * coding.h (mconv__define_coding_from_charset): Don't extern it.
2025
2026         * font-ft.c (ft_open): Fix setting of rfont->descent.
2027
2028 2004-06-02  Kenichi Handa  <handa@m17n.org>
2029
2030         * font.c (enum xlfd_field_idx): Moved from m17n-X.c.
2031         (xlfd_parse_name): Merge split_font_name and xfont_parse_name.
2032         (xlfd_unparse_name): Renamed from xfont_build_name.
2033         (mfont__init): Initialized Mfontconfig.
2034         (mfont__free_realized): Unconditionally unref rfont->info.
2035         (mfont__select): Free `this' if it's not best.
2036         (mfont__open): Don't check frame->realized_font_list.
2037         (mfont__parse_name_into_font): New function.
2038         (Mfontconfig): New variable.
2039         (mfont_from_name): Call mfont_parse_name.
2040         (mfont_name): Call mfont_unparse_name.
2041         (mdebug_dump_font): Likewise.
2042
2043         * font.h (struct MFontDriver): Delete members parse_name and
2044         build_name.
2045         (mfont__ft_parse_name, mfont__ft_unparse_name): Extern them.
2046         (mfont__parse_name_into_font): Extern it.
2047
2048         * font-ft.c: Include "symbol.h".
2049         (close_ft): Unconditionally free filename and charmap_list of
2050         ft_into.
2051         (ft_open): Duplicate base->filename.  Increment ref-count of
2052         ft_info->charmap_list.  Free ft_info->charmap_list and
2053         ft_info->filename on error.
2054         (mfont__ft_parse_name, mfont__ft_unparse_name): New functions.
2055
2056         * m17n-X.c (xfont_driver): Don't include xfont_parse_name and
2057         xfont_build_name.
2058         (enum xlfd_field_idx): Moved to font.c.
2059         (split_font_name, build_font_name): Likewise.
2060         (build_font_list): Call mfont__parse_name_info_font.
2061         (xfont_open): Call mfont__unparse_name.  Free name.
2062         (xfont_parse_name, xfont_build_name): Moved to font.c
2063         (xft_select): Prototype deleted.
2064         (device_open): Check HAVE_FREETYPE on using mfont__ft_driver.
2065         Call mfont_pase_name.
2066
2067         * m17n-gui.c (free_frame): Unref frame->font_driver_list.
2068         (m17n_fini_win): Add check HAVE_FREETYPE on using null_interface.
2069         (mframe): Likewise.
2070
2071         * m17n-gui.h (mfont_parse_name, mfont_unparse_name, Mfontconfig):
2072         Extern them.
2073
2074         * Makefile.am (linkgui_LDADD): Add libm17n-X.la and libm17n-gd.la.
2075
2076 2004-06-01  Kenichi Handa  <handa@m17n.org>
2077
2078         * fontset.c (mfontset_modify_entry): Pay attention to the case
2079         that fontset->font_spec_list is NULL.
2080
2081 2004-05-31  Kenichi Handa  <handa@m17n.org>
2082
2083         * m17n-gui.c: Include <dlfcn.h> only when HAVE_DLFCN_H is defined.
2084
2085         * input.c: Include <dlfcn.h> only when HAVE_DLFCN_H is defined.
2086
2087         * font.c (mfont__select): Print score the a font for debugging.
2088
2089         * Makefile.am (libm17n_la_LIBADD): Delete -ldl.
2090
2091         * coding.c (reset_coding_sjis): Check kanji and kana instead of
2092         kanji_sym and kana_sym.
2093
2094 2004-05-28  Kenichi Handa  <handa@m17n.org>
2095
2096         * Makefile.am (VINFO): New variable.
2097         (libm17n_core_la_LDFLAGS, libm17n_la_LDFLAGS)
2098         (libm17n_gd_la_LDFLAGS): Include ${VINFO}.
2099
2100 2004-05-27  Kenichi Handa  <handa@m17n.org>
2101
2102         The following chanages are to make device dependent functions
2103         accessible only from MDeviceDriver structure, and to add GD and
2104         null device drivers.  Font drivers get also device dependent.
2105
2106         * m17n.c (m17n_init): Increament shell_initialized.
2107         (m17n_fini): Decremented shell_initialized.
2108
2109         * m17n-misc.h (enum MErrorCode): New element MERROR_GD.
2110
2111         * m17n-gui.h (Mdevice, Mdisplay, Mscreen, Mdrawable, Mdepth)
2112         (Mwidget, Mcolormap, Mx): Extern them.
2113
2114         * m17n-gui.c: Include <dlfcn.h> and "config.h".
2115         (free_frame): Call frame->driver->close instead of
2116         mwin__close_device.
2117         (DLOPEN_SHLIB_EXT): New macro.
2118         (MDeviceLibraryInterface): New type.
2119         (device_library_list): New variable.
2120         (register_device_library): New function.
2121         (null_device): New variable.
2122         (null_device_close, null_device_get_prop)
2123         (null_device_realize_face, null_device_free_realized_face): New
2124         function.
2125         (null_driver): New variable.
2126         (null_device_init, null_device_fini, null_device_open): New
2127         functions.
2128         (null_interface): New variable.
2129         (Mfreetype, Mdevice): Declare them.
2130         (m17n_init_win): Increment win_initialized.  Initialize Mx, Mgd,
2131         Mfreetype, Mdevice, Mdisplay, Mscreen, Mdrawable, Mdevice, and
2132         Mwin__Close_Device.  Register drivers for Mx and Mgd.
2133         (m17n_fini_win): Decremented win_initialized.  Call "fini"
2134         function of all opened devices.  Don't call mwin__fini.
2135         (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget, Mcolormap):
2136         Declare them here.
2137         (mframe): Handle Mdevice key of PLIST.
2138         (mframe_get_prop): Call frame->device->get_prop instead of
2139         mwin__device_get_prop.
2140
2141         * m17n-gd.c: New file.
2142
2143         * m17n-core.h (M17NLIB_MAJOR_VERSION, M17NLIB_MINOR_VERSION)
2144         (M17NLIB_PATCH_LEVEL, M17NLIB_VERSION_NAME): Updated to 1.1.0.
2145
2146         * m17n-core.c (m17n_init_core): Increate core_initialized.
2147         (m17n_fini_core): Decremented core_initialized.
2148
2149         * m17n-X.h (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget)
2150         (Mcolormap): Don't extern them here.
2151
2152         * m17n-X.c (FRAME_DEVICE): New macro.
2153         (FRAME_DISPLAY, FRAME_SCREEN, FRAME_CMAP): Use FRAME_DEVICE.
2154         (free_display_info): Use MPLIST_DO.
2155         (free_device): Free rface->info.
2156         (xft_close): Delete it.
2157         (device_init): Renamed from mwin__init.
2158         (device_fini): Renamed from mwin__fini.
2159         (device_open): Renamed from mwin__open_device.
2160         (x_driver): New variable.
2161         (MXFontInfo): Delete member frame, add member display.
2162         (Mdisplay, Mscreen, Mdrawable, Mdepth, Mwidget, Mcolormap, Mxim):
2163         Don't declare them here.
2164
2165         * internal-gui.h (MDeviceType): New enum.
2166         (MWDefice): Delete it.
2167         (struct MFrame): Change type of device to void *.  New members
2168         device_type, driver, font_driver_list.
2169         (M_CHECK_WRITABLE, M_CHECK_READABLE): New macros.
2170         (MDeviceDriver): New type.
2171         (Mx, Mgd, Mfreetype): Extern them.
2172         (mwin__XXX): Delete all of them.
2173
2174         * input-gui.c (win_create_ic): Call frame->driver->XXX instead of
2175         mwin__XXX.
2176         (win_destroy_ic): Likewise.
2177         (adjust_window_and_draw): Likewise.
2178         (win_callback): Likewise.
2179         (Mxim): Declare it here.
2180         (minput_event_to_key): Call M_CHECK_READABLE.
2181
2182         * fontset.c (mfont__lookup_fontset): Delete local variable
2183         font_group.
2184
2185         * font.h (struct MFontDriver): Delete member close, add members
2186         parse_name and build_name.
2187         (mfont__driver_list): Delete extern.
2188         (mfont__close): Delete extern.
2189
2190         * font.c (mfont__init): Don't set mfont__driver_list.
2191         (mfont__fini): Don't unref mfont__driver_list.
2192         (mfont__select): Try font drivers in frame->font_driver_list.  Set
2193         driver member of a realized font.
2194         (mfont__close): Delete it.
2195         (mfont_from_name, mfont_name, mdebug_dump_font): Call driver
2196         functions of the default frame.
2197
2198         * font-ft.c (close_ft): Check ft_info->ft_face and work
2199         differently.
2200         (add_font_info): Allocate ft_info by M17N_OBJECT.
2201         (ft_close): Delete it.
2202         (mfont__ft_driver): Don't set ft_close.
2203         (ft_select): Increment ref-count of best_font.
2204         (ft_open): Decremented ref-count of base.  On error, call
2205         FT_Done_Face and free ft_info.
2206         (ft_find_metric): Always use XXX_MONO in load_flags.
2207         (ft_render): Fix setting of width.  Call
2208         frame->driver->draw_points instead of mwin__draw_points.
2209         (ft_to_prop): Don't set mfont__driver_list.
2210         (mfont__ft_fini): Just unref ft_info.
2211
2212         * face.c (mface__init): Exchange foreground and background of
2213         mface__default.  Call mface_put_prop to set hline of
2214         mface_underline,
2215         (mface__realize): Call frame->driver->XXX instead of mwin__XXX.
2216         (mface__free_realized): Don't call mwin__free_realized_face.
2217
2218         * draw.c (Mdepth): Don't declare it here.
2219         (draw_background): Call frame->driver->XXX instead of mwin__XXX.
2220         (render_glyphs, render_glyph_string): Likewise.
2221         (mdraw__init): Don't set Mdepth.
2222         (mdraw_text, mdraw_image_text, mdraw_text_with_control): Call
2223         M_CHECK_WRITABLE.
2224         (mdraw_text_per_char_extents): Return 0 on success and -1 on
2225         error.
2226         (mdraw_text_items): Check FRAME is writable.
2227         (mdraw_per_char_extents): Implement body.
2228
2229         * Makefile.am (lib_LTLIBRARIES): Include libm17n-gui.la and
2230         libm17n-gd.la.
2231         (OPTIONAL_LD_FLAGS): Include @FONTCONFIG_LD_FLAGS@.
2232         (GUI_SOURCES): Delete it.
2233         (libm17n_X_la_SOURCES): Don't include ${GUI_SOURCES}.
2234         (libm17n_gui_la_SOURCES, libm17n_gui_la_LIBADD)
2235         (libm17n_gui_la_LDFLAGS, libm17n_gd_la_SOURCES)
2236         (libm17n_gd_la_LIBADD, libm17n_gd_la_LDFLAGS): New targets.
2237         (linkgui_LDADD): Set to libm17n-gui.la
2238         (linkgui_LDFLAGS): New target.
2239         (SRC): Include ${libm17n_gui_la_SOURCES} and
2240         ${libm17n_gd_la_SOURCES}.
2241
2242 2004-05-24  Kenichi Handa  <handa@m17n.org>
2243
2244         * draw.c (draw_background): Don't draw background even if
2245         rface->face.property[MFACE_BACKGROUND] is not Mnil.
2246
2247 2004-05-22  Kenichi Handa  <handa@m17n.org>
2248
2249         * m17n-X.c (xft_open_font): Fix anti_alias setting.
2250
2251 2004-05-20  Kenichi Handa  <handa@m17n.org>
2252
2253         * m17n-gui.h (MFaceHookFunc): Change this function type to void.
2254
2255         * m17n-gui.c: Include "plist.h".
2256         (mframe): If PLIST is NULL, initialize it to emply plist.
2257
2258         * m17n-X.c (build_font_list): Don't set property[MFONT_TYPE].
2259         (xft_driver): New variable.
2260         (xft_select, close_xft, xft_open_font, xft_open, xft_close)
2261         (xft_find_metric, xft_render): New function.
2262         (mwin__init): Adjusted for the new mfont__driver_list.
2263         (mwin__open_device): Assume arg PARAM is not NULL.  Push a newly
2264         generated face to PARAM.
2265         (mwin__realize_face): Fix setting of box colors.  Don't call hook
2266         function here.
2267         (mwin__draw_hline): New function.
2268         (mwin__xft_close, mwin__xft_open, mwin__xft_get_metric)
2269         (mwin__xft_render): Delete these function.
2270
2271         * internal-gui.h (struct MFrame): New member tick.
2272         (struct MGlyphString): New member tick.
2273         (mwin__draw_rect, mwin__draw_empty_boxes): Extern them.
2274         (mwin__xft_open, mwin__xft_close, mwin__xft_get_metric)
2275         (mwin__xft_render): Delete extern.
2276
2277         * fontset.c (mfont__lookup_fontset): Make the code simpler.
2278         (mfontset): Always increment the reference count of returned
2279         object.
2280
2281         * font-ft.c (mfont__ft_fini): Don't include <otf.h> here.
2282         (MFTInfo): Moved to font.h.
2283         (ft_iso8859_1_font_list): Delete this variable.
2284         (set_font_info): Don't set font->property[MFONT_TYPE].
2285         (set_font_info): Don't udpate ft_iso8859_1_font_list.
2286         (add_font_info): Change type to void.
2287         (fc_list): Change anme from xft_list.  Caller changed.  Include
2288         FC_FOUNDRY and FC_PIXEL_SIZE in FcObjectSet.
2289         (mfont__ft_driver): Change name from ft_driver.  Caller changed.
2290         (ft_select): Check HAVE_FONTCONFIG instead of HAVE_XFT2.
2291         (close_ft): Don't call mwin__xft_close.  Unref
2292         ft_info->extra_info.
2293         (ft_open): Don't setup ft_info->fontname.  Don't call
2294         mwin__xft_open.
2295         (ft_find_metric): Don't call mwin__xft_get_metric.
2296         (ft_encode_char): Call rfont->driver->open instead of ft_open.
2297         (ft_render): Don't check HAVE_XFT2.  Don't call mwin__xft_render.
2298         (mfont__ft_init): Adjusted for new mfont__driver_list.
2299         (mfont__ft_fini): Don't unref ft_iso8859_1_font_list.
2300
2301         * font.c (mfont__driver_list): Make it MPlist.
2302         (mfont__init): Adjust initialization of mfont__driver_list.
2303         (mfont__fini): Free mfont__driver_list.
2304         (mfont__set_spec_from_face): Don't set spec->property[MFONT_TYPE].
2305         (mfont__select): Adjusted for the new mfont__driver_list.
2306
2307         * font.h (enum MFontProperty): Delete MFONT_TYPE.
2308         (mfont__drirver_list): Adjust prototype.
2309         (MFTInfo): Move to here from fron.c.  Deleve member fontname.
2310
2311         * face.h (struct MFace): Delete member realized_face_list, add
2312         member frame_list.
2313         (struct MRealizedFace): Delete member need_update
2314         andnofont_rface, add member non_ascii_list.
2315         (mface__update_frame_face): Extern it.
2316
2317         * face.c (hline_prop_list, box_prop_list, noop_hook): New
2318         variables.
2319         (get_hline_create, get_box_create): New functions.
2320         (find_realized_face): Cancel previous change.  Arg RFONT deleted.
2321         Use memcmp.
2322         (free_face): Cancep previous change.  Free face->frame_list.
2323         (serialize_hline): Do nothing if hline->width is zero.
2324         (serialize_box): Do nothing if box->width is zero.
2325         (mface__init): Setup all properties of mface__default.
2326         (mface__fini): Free hline_prop_list and box_prop_list.
2327         (mface__realize): Cancel previous change.  Update
2328         face->frame_list.  Setup rface->non_ascii_list.
2329         (mface__for_chars): Update rface->non_ascii_list.
2330         (mface__free_realized): Free rface->non_ascii_list.
2331         (mface__update_frame_face): New function.
2332         (mface): Initialize face->frame_list.
2333         (mface_copy): Likewise.  Just copy MFACE_HLINE and MFACE_BOX
2334         properties.
2335         (mface_merge): Likewise.
2336         (mface_put_prop): If key is Mhline or Mbox, get value by
2337         get_hline_create or get_box_create respectively.
2338         (mface_put_prop): Update frame->tick and call
2339         mface__update_frame_face if necessary.
2340         (mface_update): Do nothing if func is noop_hook.
2341
2342         * draw.c (render_glyphs): If a font is not found, use
2343         mwin__draw_empty_boxes.
2344         (alloc_gstring): Initialize gstring->tick.
2345         (get_gstring): Check gstring->tick.
2346
2347 2004-05-17  Kenichi Handa  <handa@m17n.org>
2348
2349         * face.c (find_realized_face): Return value changed.  If RFONT is
2350         NULL, avoid unnecessary checking.
2351         (free_face): Free face->realized_face_list.
2352         (mface__realize): Adjusted for the change of find_realized_face.
2353         If it returns a realized face that needs update, free it and
2354         realize a new one.  Push a new realized face to
2355         frame->realized_face_list instead of appending.
2356         (mface__for_chars): Adjusted for the change of find_realized_face.
2357         Short cut if the required font is in rface->ascii_rface.
2358         (mface_put_prop): Free old value if necessary.  Set need_update
2359         member of realized faces to 1.
2360
2361         * face.h (struct MFace): Delete member tick, add member
2362         realized_face_list.
2363         (struct MRealizedFace): Delete member tick, add member
2364         need_update.
2365
2366 2004-05-13  Kenichi Handa  <handa@m17n.org>
2367
2368         * m17n-X.c (mwin__xft_open): Destroy unnecessary patterns.
2369
2370 2004-05-12  Kenichi Handa  <handa@m17n.org>
2371
2372         * internal-gui.h (mwin__xft_open): Arguemnt name changed.
2373
2374         * m17n-X.c (mwin__xft_open): Argument changed to fontname and
2375         parse it XftNameParse.
2376
2377         * font-ft.c (MFTInfo) [HAVE_XFT2]: New member fontname.
2378         (all_fonts_scaned): New variable.
2379         (set_font_info): FAMILY may be Mnil.
2380         (add_font_info): Argument changed.
2381         (xft_list): Call add_font_info in it.
2382         (ft_list): Likewise.
2383         (ft_select): Make it work in the case family is Mnil.
2384         (ft_open) [HAVE_XFT2]: Setup ft_info->fontname.
2385         (mfont__ft_fini): Set all_fonts_scaned to 0.
2386
2387         * fontset.c (mfont__lookup_fontset): Don't repeatedly try a font
2388         that is failed to open.
2389
2390 2004-05-10  Kenichi Handa  <handa@m17n.org>
2391
2392         * m17n-X.c (mwin__xft_render): Don't use anti-alias if the
2393         device's depth is 1 (i.e. monochrome).
2394
2395         * Makefile.am (OPTIONAL_LD_FLAGS): Change the order of elements
2396         to work around the problem of libtool.
2397
2398         * font-ft.c: Include <freetype/ftbdf.h>.
2399         (Municode_bmp, Municode_full, Miso10646_1, Miso8859_1): New
2400         variables.
2401         (mfont__ft_init): Initialize them.
2402         (ft_iso8859_1_font_list): New variable.
2403         (set_font_info): Detect a font containing iso8859-1 glyphs and
2404         register it in ft_iso8859_1_font_list.  If the font is not
2405         scalable, assume it as BDF or PCF font and setup SIZE and RESY
2406         properties of the font from its properties.
2407         (add_font_list): If the font is not scalable, check if it is BDF
2408         or PCF font.  If not, ignore it.
2409         (ft_select): If FAMILY is Mnil, return NULL only if the requested
2410         registry is not iso8859-1.
2411         (ft_select) [not HAVE_XFT2]: If FAMILY is Mnil, select one from
2412         ft_iso8859_1_font_list.
2413         (ft_find_metric): If the font is not scalable, assume it as BDF
2414         or PCF, and get a metric from its properties.
2415         (mfont__ft_fini): Free ft_iso8859_1_font_list.
2416
2417 2004-05-07  Kenichi Handa  <handa@redhat.m17n.org>
2418
2419         * Makefile.am (libm17n_la_LIBADD): Include -ldl.
2420         (libm17n_la_LDFLAGS): Delete it.
2421         (noinst_PROGRAMS): Renamed from bin_PROGRAMS.
2422         (install-binPROGRAMS, uninstall-binPROGRAMS): Delete them.
2423
2424 2004-05-06  Kenichi Handa  <handa@m17n.org>
2425
2426         * draw.c (compose_glyph_string): Fix previous change.
2427
2428 2004-04-30  Kenichi Handa  <handa@m17n.org>
2429
2430         * font-ft.c (ft_list): Delete unused variable `result'.
2431         (ft_render): Fix for the case that bitmap.pitch < bitmap.width.
2432
2433 2004-04-27  Kenichi Handa  <handa@m17n.org>
2434
2435         * m17n-X.c: Include config.h
2436         [HAVE_XFT2]: Include <X11/Xft/Xft.h>.
2437         (GCInfo) [HAVE_XFT2]: New member xft_color_fore, xft_color_back.
2438         (MWDevice) [HAVE_XFT2]: New member xft_draw.
2439         (FRAME_CMAP, FRAME_VISUAL): New macros.
2440         (free_device) [HAVE_XFT2]: Destroy device->xft_draw.
2441         (xfont_driver): Make it static.
2442         (mwin__open_device) [HAVE_XFT2]: Setup device->xft_draw.
2443         (mwin__realize_face) [HAVE_XFT2]: Setup info->xft_color_fore and
2444         info->xft_color_back.
2445         (MXftFontInfo) [HAVE_XFT2]: New type.
2446         (mwin__xft_close) [HAVE_XFT2]: New function.
2447         (mwin__xft_open) [HAVE_XFT2]: New function.
2448         (mwin__xft_get_metric) [HAVE_XFT2]: New function.
2449         (mwin__xft_render) [HAVE_XFT2]: New function.
2450
2451         * internal-gui.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
2452         (mwin__xft_open, mwin__xft_close) [HAVE_FREETYPE]: New externs.
2453         (mwin__xft_get_metric, mwin__xft_render) [HAVE_FREETYPE]: New
2454         externs.
2455
2456         * font.h [HAVE_FREETYPE]: Include FT_FREETYPE_H.
2457
2458         * font-ft.c: Don't include FT_FREETYPE_H here.
2459         [HAVE_XFT2]: Include <fontconfig/fontconfig.h>.
2460         (fontconfig_initialized, fc_config) [HAVE_XFT2]: New variables.
2461         (MFTInfo): New member charmap_index.
2462         (MFTInfo) [HAVE_XFT2]: New member xft_info.
2463         (check_otf_filename): Renamed from check_filename.  Return value
2464         changed.
2465         (ft_set_property): This function deleted.
2466         (set_font_info): New function.
2467         (add_font_list): Argument changed.  Add multiple fonts.
2468         (xft_list) [HAVE_XFT2]: New function.
2469         (ft_list) [not HAVE_XFT2]: New function.
2470         (ft_select): Add code for Xft.
2471         (close_ft): Likewise.
2472         (ft_open): Likewise.
2473         (ft_find_metric): Likewise.
2474         (ft_encode_char): Likewise.
2475         (ft_render): Likewise.
2476
2477         * makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@.
2478
2479 2004-04-26  Kenichi Handa  <handa@m17n.org>
2480
2481         * textprop.c (mtext_attach_property): Declare the return type as
2482         `int'.
2483
2484 2004-04-21  Kenichi Handa  <handa@m17n.org>
2485
2486         * Makefile.am (OPTIONAL_LD_FLAGS): Include @XFT2_LD_FLAGS@
2487
2488 2004-04-09  Kenichi Handa  <handa@m17n.org>
2489
2490         * font-flt.c (struct): New members seq_beg, seq_end, seq_from,
2491         seq_to.
2492         (load_command): Setup above members.
2493
2494 2004-04-05  Kenichi Handa  <handa@m17n.org>
2495
2496         * m17n-X.c (xfont_encode_char): Fix checking of byte1 and byte2.
2497
2498 2004-03-30  Kenichi Handa  <handa@m17n.org>
2499
2500         * m17n-X.c (xfont_encode_char): Return MCHAR_INVALID_CODE if code
2501         >= 0x10000.
2502
2503         * m17n-core.h (M17NLIB_PATCH_LEVEL): Changed to 2.
2504         (M17NLIB_VERSION_NAME): Changed to 1.0.2.
2505
2506 2004-03-29  Kenichi Handa  <handa@m17n.org>
2507
2508         * Version 1.0 Patch Level 2 released.
2509
2510 2004-03-29  Kenichi Handa  <handa@m17n.org>
2511
2512         * charset.c (make_charset): Set charset->fully_loaded and
2513         charset->simple correctly.  Don't try to get charset->min_char and
2514         charset->max_char for a charset of method subset and superset.
2515         Don't load a mapping file here.
2516         (mcharset__init): Set unified_max.
2517         (mcharset__load_from_database): Free a working plist.
2518
2519         * coding.c (mcoding__fini): Free all malloced data.
2520
2521         * input-gui.c (win_create_ic): Set control.as_image for preediting
2522         to 0.
2523
2524         * internal.h (M17N_OBJECT_REGISTER): Check the member `used' (not
2525         `count') to initialize the array.
2526
2527         * locale.c (mlocale_set): Fix the order of M17N_OBJECT_REF and
2528         M17N_OBJECT_UNREF.
2529
2530         * m17n-X.c (xfont_render): If rface->rfont is null, draw a
2531         rectangle.
2532         (mwin__create_window): Fix bug of setting a background pixel of a
2533         new window.
2534         (mwin__adjust_window): Clear the window before drawing.
2535
2536         * m17n-core.c (mdebug__report_object): Free array->objectes if
2537         necessary.
2538         (m17n_init_core): Don't set report_header_printed to 0 here.
2539         Fix debugging information.
2540         (m17n_fini_core): Set report_header_printed to 0 here.
2541
2542         * m17n-core.h (mplist_deserialize): Extern it.
2543
2544         * m17n-gui.c (m17n_fini_win): Fix debugging information.
2545
2546         * m17n.c (m17n_fini): Fix debugging information.
2547
2548         * mtext.c (mtext__adjust_foramt): New function.
2549
2550         * mtext.h (mtext__adjust_foramt): Extern it.
2551
2552         * plist.c (mplist_deserialize): Renamed from mplist__deserialize.
2553
2554         * plist.h (mplist__deserialize): Don't extern it.
2555
2556         * symbol.c (msymbol__fini): Set freed_symbols to 0.  Set all
2557         elements of symbol_table to NULL.  Report about created and freed
2558         symbols if MDEBUG_FINI is set.
2559
2560 2004-03-22  Kenichi Handa  <handa@m17n.org>
2561
2562         * m17n-core.c (m17n_init_core): Set merror_code to MERROR_NONE.
2563
2564         * m17n.c (m17n_init): Fix the way of checking merror_code.
2565
2566         * m17n-gui.c (m17n_init_win): Fix the way of checking merror_code.
2567
2568 2004-03-22  Kenichi Handa  <handa@m17n.org>
2569
2570         * fontset.c (realize_font_group): Adjust the font size by
2571         mfont__resize before selecting a font.
2572
2573         * font-ft.c (mfont__ft_init): Add oblique and boldoblique.
2574
2575 2004-03-19  Kenichi Handa  <handa@m17n.org>
2576
2577         * Version 1.0 Patch Level 1 released.
2578
2579 2004-03-19  Kenichi Handa  <handa@m17n.org>
2580
2581         * m17n-core.h (M17NLIB_PATCH_LEVEL): New macro.
2582
2583         * m17n-core.c (M17NLIB_PATCH_LEVEL): Describe it.
2584
2585 2004-03-19  Kenichi Handa  <handa@m17n.org>
2586
2587         Re-apply the changes forgotten in the released version.
2588
2589         * charset.c (mcharset__load_from_database): Call
2590         mchar_define_charset.
2591
2592         * coding.c (encode_unsupporeted_char): Put Mcoding text property.
2593         (mconv_encode_range): Put Mcoding text property.
2594
2595 2004-03-18  Kenichi Handa  <handa@m17n.org>
2596
2597         * draw.c (Mdepth): New variable.
2598         (visual_order): Delete unused local var `pos'.
2599         (compose_glyph_string): Fix for the case that gstring->glyphs is
2600         realloced.  Stop generating glyphs at TO.  Fix handling of
2601         control charaters.
2602         (layout_glyphs): Get metrics of all glyphs in advance.  Set
2603         lbearing and rbearing of base of composition glyph correctly.
2604         Handle left-overhang glyphs correctly.
2605         (alloc_gstring): New arg frame.  Set gstring->anti_alias.  Caller
2606         changed.
2607         (dump_combining_code): Change the defualt off_x character to ".".
2608         (mdraw__init): Initialize Mdepth.
2609
2610         * face.c (work_gstring): New variable
2611         (mface__init): Initialize work_gstring.
2612         (mface__fini): Free work_gstring.glyphs.
2613         (mface__realize): Don't handle videomode property here.  Adjusted
2614         for the change of mfont__get_metric.
2615         (mface__for_chars): Adjusted for the change of mfont__get_metric.
2616
2617         * face.h (enum face_gc): Moved to m17n-X.c.
2618
2619         * font.h (struct MFontDriver): Arguments of find_metric changed.
2620         (mfont__select): Prototype adjusted.
2621         (mfont__get_metric): Likewise.
2622         (mfont__ft_drive_otf): Likewise.
2623         (mfont__flt_run): Likewise.
2624         
2625         * font.c (mfont__select): New argument layouter.  If layouter is
2626         different in the registered font, make a new copy of realized
2627         font.
2628         (mfont__get_metric): Argument changed.  Get metrics of multiple
2629         glyphs.
2630         (mfont_find): Call mfont__select with layouter as Mnil.
2631
2632         * font-flt.c (FontLayoutContext): New member rfont.
2633         (run_otf): Adjusted for the change of mfont__ft_drive_otf.
2634         (mfont__flt_run): Argument changed.  Initialize ctx.rfont.
2635
2636         * font-ft.c (ft_find_metric): Arguments changed.  Get metrics of
2637         multiple glyphs.
2638         (NUM_POINTS): New macro.
2639         (MPointTable): New type.
2640         (ft_render): Use mwin__draw_points instead of mwin__draw_bitmap.
2641         (mfont__ft_drive_otf): New argument rfont.
2642
2643         * fontset.c (realize_font_group): Adjusted for the changed of
2644         mfont__select.
2645         (check_fontset_element): This function deleted.
2646
2647         * input-gui.c (adjust_window_and_draw): Locate a preedit window
2648         off the parent window if the preedit text is zero length.
2649
2650         * internal-gui.h (struct MFrame): New members foreground,
2651         background, videomode, font.
2652         (struct MGlyphString): New member anti_alias.
2653         (MDrawPoint): New type.
2654         (mwin__draw_bitmap): Prototype deleted.
2655         (mwin__draw_points): Prototype added.
2656
2657         * m17n-gui.h (MDrawControl): New member anti_alias.
2658
2659         * m17n-gui.c (free_frame): Free frame->font.
2660         (mframe): Set the fontset of frame->face to the default fontset.
2661
2662         * m17n-X.c (RGB_GC): New type.
2663         (enum gc_index): Renamed from enum face_gc.  Member names changed.
2664         (GCInfo): New typel
2665         (struct MWDevice): Members foreground and background deleted.  New
2666         member scratch_gc, gc_list.
2667         (DEFAULT_FONT, FALLBACK_FONT): New macros.
2668         (free_device): Free GCs in device->gc_list.
2669         (get_rgb_gc): New function.
2670         (get_gc): Renamed and argument changed from get_color.
2671         (get_gc_for_anti_alias): New function.
2672         (xfont_find_metric): Arguments changed.  Get metrics of multiple
2673         glyphs.
2674         (set_region): Argument changed.  Caller changed.
2675         (xfont_render): Allways set a font in gc.
2676         (x_error_handler, x_io_error_handler): Define only if
2677         X_SET_ERROR_HANDLER is defined.
2678         (mwin__open_device): Create device->scratch_gc.  Set members
2679         foreground, background, and videomode of frame.  Call
2680         XSetErrorHandler and XSetIOErrorHandler only if
2681         X_SET_ERROR_HANDLER is defined.
2682         (struct gc_list): Deleted.
2683         (REGISTER_GC, UNREGISTER_GC): These macros deleted.
2684         (mwin__realize_face): Adjusted for the change of the format of
2685         rface->info and the charge of set_region.
2686         (mwin__free_realized_face, mwin__fill_space, mwin__draw_hline)
2687         (mwin__draw_box): Likewise.
2688         (mwin__draw_bitmap): This function deleted.
2689         (mwin__draw_points): New function.
2690         (mwin__verify_region): Adjusted for the change of the format of
2691         rface->info and the charge of set_region.
2692         (mwin__create_window): Inherit backgound pixel from parent.
2693         (mwin__dump_gc): Adjusted for the change of the format of
2694         rface->info.
2695
2696 2004-03-16  Kenichi Handa  <handa@m17n.org>
2697
2698         * m17n-X.c (mwin__parse_event): Fix handling of modifier keys.
2699
2700         * input.c (M_key_alias): New variable.
2701         (handle_key): Try M_key_alias property of a key too.
2702         (minput__init): Initialize M_key_alias.  Give that property to
2703         symbols in one_char_symbol.  Fix bug of initializing
2704         one_char_symbol.
2705
2706         * draw.c (compose_glyph_string): Don't handle
2707         ignore_formatting_char here.  Include formatting characters in the
2708         range processed by a FTL.
2709         (layout_glyph_string): Handle ignore_formatting_char here.
2710
2711 2004-03-12  Kenichi Handa  <handa@m17n.org>
2712
2713         * input-gui.c (win_create_ic): Enable bidi in status control.
2714
2715         * draw.c (visual_order): Avoid re-ordering of combining glyphs only.
2716
2717 2004-03-09  Kenichi Handa  <handa@m17n.org>
2718
2719         * input.c (load_input_method): If title is not specified, use the
2720         input method name as title.
2721
2722         * m17n-X.c (get_color): Make it static.
2723         (xim_create_ic, xim_destroy_ic, x_error_handler)
2724         (x_io_error_handler): Likewise.
2725
2726 2004-03-01  Kenichi Handa  <handa@m17n.org>
2727
2728         * Version 1.0 released.
2729
2730 \f
2731 Copyright (C) 2003, 2004
2732   National Institute of Advanced Industrial Science and Technology (AIST)
2733   Registration Number H15PRO112
2734
2735 This file is part of the m17n library.
2736
2737 The m17n library is free software; you can redistribute it and/or
2738 modify it under the terms of the GNU Lesser General Public License
2739 as published by the Free Software Foundation; either version 2.1 of
2740 the License, or (at your option) any later version.
2741
2742 The m17n library is distributed in the hope that it will be useful,
2743 but WITHOUT ANY WARRANTY; without even the implied warranty of
2744 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2745 Lesser General Public License for more details.
2746
2747 You should have received a copy of the GNU Lesser General Public
2748 License along with the m17n library; if not, write to the Free
2749 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
2750 02111-1307, USA.