(delete_char): Fix the case of deleting the previous
[m17n/m17n-lib.git] / example / ChangeLog
1 2005-11-07  Kenichi Handa  <handa@m17n.org>
2
3         * medit.c (surrounding_text_handler): New function.
4         (setup_input_methods): Add callback functions for surrounding text
5         handling.
6
7 2005-10-20  Kenichi Handa  <handa@m17n.org>
8
9         * medit.c (setup_input_methods): Ignore an input method of name
10         nil.
11
12 2005-10-14  Kenichi Handa  <handa@m17n.org>
13
14         * medit.c (main): Don't leave a fontset unfreed.
15
16 2005-10-03  Kenichi Handa  <handa@m17n.org>
17
18         * mdump.c (main): Make the image tranparent.
19
20 2005-09-27  Kenichi Handa  <handa@m17n.org>
21
22         * mdump.c (dump_image): If FILTER is "-", print the image to
23         stdout.
24
25 2005-09-22  Kenichi Handa  <handa@m17n.org>
26
27         * medit.c (select_input_method): Open an input method if
28         necessary.  Handle left bitmap of input method menus here.
29         (show_cursor): Don't open an input method here.
30         (ExposeProc): Likewise.
31         (FocusInProc): Fix typo (Minput_focus_out -> Minput_focus_in).
32         (InputMethodProc): Don't handle left bitmap of input method menus
33         here.
34         (setup_input_methods): Don't open an input method here.
35
36 2005-09-16  Kenichi Handa  <handa@m17n.org>
37
38         * medit.c (ButtonProc): Don't reset ic, instead send
39         Minput_focus_move event to the current input method.
40         (FocusInProc, FocusOutProc): New functions.
41         (actions): Add elements for FocusIn and FocusOut.
42         (main): Add  elements for FocusIn and FocusOut to trans2.
43
44 2005-09-12  Kenichi Handa  <handa@m17n.org>
45
46         * medit.c (redraw): Don't redraw an area where not text is
47         displayed.
48
49 2005-09-05  Kenichi Handa  <handa@m17n.org>
50
51         * medit.c: Check HAVE_X11_XAW_COMMAND_H before including X11/*.h.
52
53         * mview.c: Check HAVE_X11_XAW_COMMAND_H before including X11/*.h.
54
55         * Makefile.am (X_LD_FLAGS): Use @X11_LD_FLAGS@ instead of
56         directory listing libraries.
57         (PURIFY, purify_medit, purify_mdate): Define them in maintainer
58         mode.
59
60 2005-08-22  Kenichi Handa  <handa@m17n.org>
61
62         * mdump.c: Don't include config.h.
63
64         * medit.c: Likewise.
65
66         * mview.c: Likewise.
67
68         * mimx-anthy.c: Likewise.
69
70         * mimx-ispell.c: Likewise.
71
72         * Makefile.am (AM_CPPFLAGS): Set it to @CONFIG_FLAGS@.
73
74 2005-08-18  Kenichi Handa  <handa@m17n.org>
75
76         * medit.c (main): Adjusted for the change of symbol's language
77         property (now in lowercase).
78
79         * mdump.c (main): Handle --fontset arg.
80
81 2005-05-19  Kenichi Handa  <handa@m17n.org>
82
83         * medit.c (main): Explicitly set minput_driver.
84
85 2005-04-28  Kenichi Handa  <handa@m17n.org>
86
87         * .cvsignore: Change mXXXX to m17n-XXXX.
88
89         * Makefile.am (X_LD_FLAGS): Include @XAW_LD_FLAGS@, not -lXaw.
90
91         * medit.c: Check HAVE_X11_XAW_COMMAND_H, and if it not defined,
92         add dummy code.
93
94         * mview.c: Check HAVE_X11_XAW_COMMAND_H, and if it not defined,
95         add dummy code.
96
97 2005-04-15  Kenichi Handa  <handa@m17n.org>
98
99         * medit.c: Include dlfcn.h.
100         (Mword): New variable.
101         (show_cursor): Check Mlanguage text property of the cursor
102         position only.
103         (delete_char): Pay attention to the change of line beginning
104         position because of filling.
105         (insert_chars): Likewise.
106         (word_constituent_p, forward_word, backward_word): New functions.
107         (KeyProc): Assign XK_b and XK_f for back/foreward word.
108         (line_break): Delete extern.
109         (LineBreakProc): Use mdraw_default_line_break.
110         (FilterProc): New function.
111         (main): Handle --filter arg.  Initialize Mword.  
112
113         * mdump.c (main): Set control.line_break to
114         mdraw_default_line_break.
115
116         * Makefile.am (m17n_edit_SOURCES): Don't include linebreak.c.
117         (m17n_dump_SOURCES): Likewise.
118         (m17n_edit_LDADD): Don't include @WORDCUT_LD_FLAGS@.
119         (m17n_dump_LDADD): Likewise.
120
121 2005-03-09  Kenichi Handa  <handa@m17n.org>
122
123         * HELLO.utf8, HELLO.xml, HELLO.html: Fix Telugu line.
124
125 2005-02-17  Kenichi Handa  <handa@m17n.org>
126
127         * medit.c (setup_input_methods): Fix for the case that no input
128         method is available.
129
130 2005-01-12  Kenichi Handa  <handa@m17n.org>
131
132         * HELLO.utf8, HELLO.xml, HELLO.html: Adjust the encoding of
133         Myanmar kinzi to the new proposal by Myanmar NLP.
134
135 2004-12-27  Kenichi Handa  <handa@m17n.org>
136
137         * Version 1.2.0 released.
138
139 2004-12-27  Kenichi Handa  <handa@m17n.org>
140
141         * M17NEdit.ja: Renamed from MEdit.ja.
142
143         * Makefile.am: Put prefix "m17n-" instead of single "m" to
144         executables.
145         (EXTRA_DIST): Include HELLO.html and M17NEdit.ja.
146
147         * mconv.c, mdate.c, mdump.c, medit.c, mview.c: Documentations
148         changed ("mXXXX" -> "m17n-XXXX").
149
150 2004-12-21  Kenichi Handa  <handa@m17n.org>
151
152         * medit.c (ButtonProc): Reset the current input method (if
153         activated) and insert the produced text.
154         (KeyProc): Cancel the previous change.
155
156 2004-12-21  Kenichi Handa  <handa@m17n.org>
157
158         * medit.c (KeyProc): Handle C-\ as resetting input context.
159
160 2004-12-17  Kenichi Handa  <handa@m17n.org>
161
162         * medit.c (main): Allocagte filename by strdup if not specified.
163
164 2004-12-10  Kenichi Handa  <handa@m17n.org>
165
166         * mview.c (VERSION): Update to 1.2.0.
167
168         * medit.c (VERSION): Update to 1.2.0.
169         (main): If filename is not specified, open /dev/null.
170
171         * mdate.c (VERSION): Update to 1.2.0.
172
173         * mconv.c (VERSION): Update to 1.2.0.
174
175 2004-12-09  Kenichi Handa  <handa@m17n.org>
176
177         * medit.c (SaveProc, DumpImageProc, FileDialogProc, read_file):
178         Decode by Mcoding_utf_8_full, not Mcoding_utf_8.
179
180 2004-12-09  handa  <handa@m17n.org>
181
182         * Makefile.am (common_ldflags): Include libm17n-core.la.
183         (common_ldflags_gui): Include ${common_ldflags}
184         
185 2004-12-03  Kenichi Handa  <handa@m17n.org>
186
187         * mimx-anthy.c (AnthyContext): New member ic.
188         (new_context): When something goes wrong, return NULL without
189         creating a context.
190         (get_context): New function.
191         (init): Pay attention to the case of multiple calls.
192         (fini): Likewise.
193         (convert, change, resize, commit): Use get_context.
194
195         * mimx-ispell.c (face_available): New variable.
196         (init): Check if GUI APIs are available or not.  If not, set
197         face_available to 0.
198         (fini): Free a face only if face_available is not zero.
199         (ispell_word): Put face property only if available.
200
201 2004-10-29  Kenichi Handa  <handa@m17n.org>
202
203         * medit.c (main): Fix handling of "-s" arg.
204
205 2004-10-12  Kenichi Handa  <handa@m17n.org>
206
207         * medit.c (KeyProc): Cast buf to `unsigned char *'.
208         (FaceProc): Call hide_cursor () at first.
209
210 2004-09-27  Kenichi Handa  <handa@m17n.org>
211
212         * HELLO.html: Add Sinhala.
213
214 2004-09-23  Kenichi Handa  <handa@m17n.org>
215
216         * HELLO.utf8, HELLO.xml: Add Sinhala.
217
218 2004-09-14  Kenichi Handa  <handa@m17n.org>
219
220         * medit.c (update_selection): Fix for the case that the selection
221         is just one line.
222
223 2004-08-27  Kenichi Handa  <handa@m17n.org>
224
225         * mdump.c (help_exit): Describe about the arg "-r".
226         (reverse_bit_order, init_reverse_bit_order): Delete them.
227         (main): Handle the arg "-r".
228
229 2004-08-25  Kenichi Handa  <handa@m17n.org>
230
231         * medit.c: Adjusted for the member name change
232         (MDrawGlyphInfo->this -> MDrawGlyphInfo->metics).
233
234         * mdump.c: Adjusted for the member name change
235         (MDrawGlyphInfo->this -> MDrawGlyphInfo->metics).
236
237 2004-08-16  Kenichi Handa  <handa@m17n.org>
238
239         * Version 1.1.0 released.
240
241 2004-08-15  Kenichi Handa  <handa@m17n.org>
242
243         * MEdit.ja: Add Dhivehi.
244
245         * HELLO.utf8, HELLO.xml: Add Oriya and Dhivehi.
246
247         * medit.c (covert_selection): Handle explicit request of
248         UTF8_STRING.
249         (ExposeProc): If an initial input method is specifed, activate it.
250         (setup_input_methods): New arg initial_input_method.  If it's not
251         NULL, set current_input_method to the corresponding index.
252         (help_exit): Fix help message.
253         (main): Handle --im and -s command args.
254
255         * mdump.c (help_exit): Fix help message.
256
257 2004-08-09  Kenichi Handa  <handa@m17n.org>
258
259         * mconv.c (VERSION): Updated to 1.1.
260
261         * mdate.c (VERSION): Likewise.
262
263         * medit.c (VERSION): Likewise.
264
265         * mview.c (VERSION): Likewise.
266
267 2004-07-28  Kenichi Handa  <handa@m17n.org>
268
269         * HELLO.utf8: Add language names for Telugu and Gujarati.
270
271         * HELLO.xml: Add language names for Telugu and Gujarati.
272
273 2004-07-26  Kenichi Handa  <handa@m17n.org>
274
275         * medit.c (redraw_cursor): Fix checking of redrawing area.
276         (set_input_method_spot): Don't check face if the buffer is empty.
277         (show_cursor): Likewise.
278         (delete_char): Fix adjustment of nchars.
279         (CursorProc): Call update_cursor.
280
281 2004-07-23  Kenichi Handa  <handa@m17n.org>
282
283         * HELLO.xml: Add Myanmar.
284
285         * HELLO.utf8: Add Myanmar.
286
287 2004-07-22  Kenichi Handa  <handa@m17n.org>
288
289         * medit.c (get_selection): If decoding fails and *type is not
290         XA_UTF8_STRING, try to get selection value of type XA_UTF8_STRING.
291
292 2004-07-20  Kenichi Handa  <handa@m17n.org>
293
294         * medit.c (main): If frame creation is falied, exit by error.
295         Call M17N_FINI after destroying the application context.
296
297 2004-07-18  Kenichi Handa  <handa@m17n.org>
298
299         * Makefile.am (common_ldflags): Don't include
300         ${top_srcdir}/src/libm17n-core.la.
301
302 2004-07-07  Kenichi Handa  <handa@m17n.org>
303
304         * medit.c (Mcoding_compound_text): New variable.
305         (covert_selection): Fix previous change.
306         (main): Set Mcoding_compound_text.
307
308 2004-07-06  Kenichi Handa  <handa@m17n.org>
309
310         * mdump.c: Cancel previous change.
311
312         * Makefile.am (X_LD_FLAGS): Fix the order of linking.
313         (medit_LDADD, mview_LDADD, mdump_LDADD): Cancel previous change.
314
315         * HELLO.xml: Add Punjabi, Kannada, Telugu, and Gujarati.
316
317         * medit.c (covert_selection): If X_HAVE_UTF8_STRING is defined and
318         target is XA_UTF8_STRING, encode by utf-8.
319         (get_selection): If X_HAVE_UTF8_STRING is defined and *type is
320         XA_UTF8_STRING, decode by utf-8.
321
322 2004-07-05  Kenichi Handa  <handa@m17n.org>
323
324         * HELLO.utf8: Add Kannada.
325
326 2004-06-30  Kenichi Handa  <handa@m17n.org>
327
328         * mdump.c: Include <m17n-gd.h> instead of <m17n-gui.h>.
329
330         * Makefile.am (X_LD_FLAGS): New variable.
331         (medit_LDADD, mview_LDADD, mdump_LDADD): Add all depending
332         libraries.
333         (medit_LDFLAGS, mview_LDFLAGS, mdump_LDFLAGS): Delete them.
334         (libmimx_anthy_la_LIBADD): Add @ANTHY_LD_FLAGS@.
335         (libmimx_anthy_la_LDFLAGS): Delete @ANTHY_LD_FLAGS@.
336
337 2004-06-25  TAKAHASHI Naoto  <ntakahas@m17n.org>
338
339         * HELLO.utf8: Add Punjabi.
340
341 2004-06-24  Kenichi Handa  <handa@m17n.org>
342
343         * Makefile.am: (libmimx_ispell_la_LDFLAGS)
344         (libmimx_anthy_la_LDFLAGS): Add -module.
345
346 2004-06-23  Kenichi Handa  <handa@m17n.org>
347
348         * Makefile.am (medit_LDFLAGS, mview_LDFLAGS): Cancel the previous
349         change.
350
351         * medit.c (redraw_cursor): Refer to cursor.logical_width instead
352         of cursor.this.width.
353
354 2004-06-21  Kenichi Handa  <handa@m17n.org>
355
356         * Makefile.am (medit_LDFLAGS, mview_LDFLAGS): Include -lX11 and
357         -lXt.
358
359 2004-06-17  Kenichi Handa  <handa@m17n.org>
360
361         * mdump.c (main): Don't set control.as_image to 1.
362
363 2004-06-16  Kenichi Handa  <handa@m17n.org>
364
365         * mdump.c (main): Fix typo of error message.
366
367         * medit.c (face_freeserif): New variable.
368         (face_table): Add an entry for freeserif.
369         (main): Initialized and free face_freeserif.
370
371 2004-06-15  Kenichi Handa  <handa@m17n.org>
372
373         * mdump.c: Add command line arguments --family and --language.
374         (help_exit): Print info about those arguemnts.
375         (main): Make family name to lowercase.
376
377 2004-06-04  Kenichi Handa  <handa@m17n.org>
378
379         * mconv.c (compare_coding_name): New function.
380         (list_coding): Sort the list of codings by their names.
381
382 2004-06-03  Kenichi Handa  <handa@m17n.org>
383
384         * medit.c (InputMethodInfo): New type.
385         (input_method_table): Type changed to `InputMethodInfo *'.
386         (select_input_method): Adjusted for the change of
387         input_method_table.
388         (show_cursor): Open an input method here if necessary.
389         (compare_input_method): Adjusted for the change of
390         input_method_table.
391         (setup_input_methods): Likewise.  Don't open input methods here
392         except for XIM.
393         (main): Adjusted for the change of input_method_table.
394
395         * mconv.c (main): Close `in' and `out'.
396
397         * HELLO.utf8: Fix Greek line.
398
399         * HELLO.xml: Fix Greek line.
400
401 2004-05-28  Kenichi Handa  <handa@m17n.org>
402
403         * Makefile.am (VINFO): New variable.
404         (libmimx_ispell_la_LDFLAGS, libmimx_anthy_la_LDFLAGS): Include
405         ${VINFO}.
406
407         * mdump.c (PROGRAM_VERSION): Renamed from VERSION.
408         (main): Use PROGRAM_VERSION.
409
410         * medit.c (main): Make face_input_status copy of face_default.
411
412 2004-05-27  Kenichi Handa  <handa@m17n.org>
413
414         * medit.c (show_cursor): Check hline->width and box->width.
415         (main): Set reverse videomode in a face for selection.
416
417         * mdump.c: Include config.h.  Include <gd.h> instead of
418         <X11/Xlib.h>.  If not HAVE_FREETYPE nor HAVE_GD, define a pseudo
419         function main that just print an error message.
420         (help_exit): Adjusted for the change of spec.
421         (dump_image): Argument changed.  Dump PNG image instead of PBM.
422         (main): Adjusted for the change of spec.
423
424         * Makefile.am (common_ldflags_gui): Renamed from
425         common_ldflags_X.  Set to .../libm17n-gui.la.  Referrer changed.
426         (mdump_LDFLAGS): Include @GD_LD_FLAGS@
427
428         * HELLO.xml:  Add Bengali.
429
430 2004-05-21  Kenichi Handa  <handa@m17n.org>
431
432         * HELLO.utf8: Add Bengali.
433
434 2004-05-20  Kenichi Handa  <handa@m17n.org>
435
436         * medit.c (redraw): If contro.anti_alias is nonzero, always clear.
437         (ButtonMoveProc): Don't give control.anti_alias to redraw.
438         (default_face_list): New variable.
439         (FaceProc): If no selection, change the default face.
440         (main): Initialize and finalize default_face_list.
441
442 2004-04-27  Kenichi Handa  <handa@m17n.org>
443
444         * mimx-ispell.c: Add coding tag euc-jp.
445
446         * mimx-anthy.c: Add coding tag euc-jp.
447
448         * medit.c: Add coding tag euc-jp.
449         (ButtonMoveProc): Full redraw if we are using anti-aliased text.
450         (main): Set control.anti_alias to 1. 
451
452         * mdump.c: Add coding tag euc-jp.
453
454         * mdate.c: Add coding tag euc-jp.
455
456         * mconv.c: Add coding tag euc-jp.
457
458 2004-04-20  Kenichi Handa  <handa@m17n.org>
459
460         * Makefile.am (medit_LDFLAGS): Include X_PRE_LIBS, XLIBS,
461         X_EXTRA_LIBS.
462         (mview_LDFLAGS): Likewise.
463
464         * linebreak.c: Don't include wordcut/xmalloc.h, wordcut/path.h.
465
466 2004-03-29  Kenichi Handa  <handa@m17n.org>
467
468         * Version 1.0 Patch Level 2 released.
469
470 2004-03-19  Kenichi Handa  <handa@m17n.org>
471
472         * Version 1.0 Patch Level 1 released.
473
474 2004-03-19  Kenichi Handa  <handa@m17n.org>
475
476         * medit.c (VERSION): Changed to 1.0.1.
477         (update_selection): Fix for the case that the selected region is
478         expanded to the opposite direction.
479         (ButtonMoveProc): Likewise.
480         (main): Use alloca instead of malloc for allocating menu names.
481         Free several memory areas and GCs.
482
483 2004-03-12  Kenichi Handa  <handa@m17n.org>
484
485         * medit.c (input_status_control): New variable.
486         (input_status): Use input_status_control.
487         (main): Initialize input_status_control.
488
489 2004-03-01  Kenichi Handa  <handa@m17n.org>
490
491         * Version 1.0 released.
492
493 \f
494 Copyright (C) 2003, 2004
495   National Institute of Advanced Industrial Science and Technology (AIST)
496   Registration Number H15PRO112
497
498 This file is part of the m17n library.
499
500 The m17n library is free software; you can redistribute it and/or
501 modify it under the terms of the GNU Lesser General Public License
502 as published by the Free Software Foundation; either version 2.1 of
503 the License, or (at your option) any later version.
504
505 The m17n library is distributed in the hope that it will be useful,
506 but WITHOUT ANY WARRANTY; without even the implied warranty of
507 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
508 Lesser General Public License for more details.
509
510 You should have received a copy of the GNU Lesser General Public
511 License along with the m17n library; if not, write to the Free
512 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
513 02111-1307, USA.