Debian Codegraph @

ChangeLog-svn

raw
1 2011-02-27 Jim Huang <[email protected]>
2
3 * configure.ac: Bump version to 0.3.3
4 * NEWS: ditto.
5
6 2011-02-20 Jim Huang <[email protected]>
7
8 * configure.ac,
9 src/tools/Makefile.am: Fix tools to run on the host system during
10 cross-compile.
11 Patched by Zach Kuznia <[email protected]>
12 Review URL: http://codereview.chromium.org/2640005
13
14 2011-02-20 Jim Huang <[email protected]>
15
16 * src/chewingio.c: Add inclusion for aux function.
17
18 * test/testchewing.c (get_keystroke),
19 test/simulate.c (fake_getchar) (fini_sim): Fix compilation warnings by
20 clang.
21
22 2011-02-20 Jim Huang <[email protected]>
23
24 * data/tsi.src: Merged with libchewing-data.
25 * data/svnrev: Bump merged rev to r455
26 * NEWS: Ditto
27
28 2011-02-20 Jim Huang <[email protected]>
29
30 * scripts/gendiff-from-libchewingdata.sh: Explicit use 'bash'
31
32 2010-11-15 Jim Huang <[email protected]>
33
34 * test/simulate.c (init_sim),
35 test/simulate.sh: Support randomize testing key sequence.
36
37 * test/Makefile.am: clean materials.txt-random
38
39 2010-11-13 Jim Huang <[email protected]>
40
41 * src/choice.c (SetAvailInfo): Refactored for parameter passing.
42 (ChoiceFirstAvail): Ditto.
43
44 2010-11-13 Jim Huang <[email protected]>
45
46 * scripts/remove-autotool.sh: Remove include/config.h.in
47
48 2010-11-13 Jim Huang <[email protected]>
49
50 * src/chewingio.c (chooseCandidate): New helper function.
51 (chewing_handle_Space) (chewing_handle_Down): Revise phrase choice
52 from rearward logic.
53
54 * src/choice.c (SeekPhraseHead): New helper function.
55 (SetAvailInfo) (ChoiceFirstAvail): Ditto.
56 Patched by Ding-Yi Chen <[email protected]>
57
58 2010-11-13 Jim Huang <[email protected]>
59
60 * data/tsi.src: Add some entries to work around improper '不' cases.
61
62 * test/materials.txt: Update test cases.
63
64 2010-11-10 Jim Huang <[email protected]>
65
66 * include/internal/chewing-private.h (wch_t): Ensure this structure is
67 aligned.
68 Patched by Ding-Yi Chen <[email protected]>
69 https://bugzilla.redhat.com/show_bug.cgi?id=625980
70
71 2010-11-09 Jim Huang <[email protected]>
72
73 * src/common/key2pho.c,
74 src/common/chewing-utf8-util.c,
75 src/hanyupinyin.c,
76 src/char.c,
77 src/tools/sort_dic.c,
78 src/chewingutil.c,
79 src/zuin.c: Fix compilation warning with gcc-4.5
80
81 2010-11-09 Jim Huang <[email protected]>
82
83 * src/chewingutil.c (EasySymbolInput),
84 include/internal/chewingutil.h: Shrink parameter.
85
86 * src/chewingio.c (chewing_handle_Default): Ditto.
87
88 2010-11-08 Jim Huang <[email protected]>
89
90 * src/chewingutil.c (HaninSymbolInput): Refactoring. Simplify
91 prototype.
92 (OpenSymbolChoice): Ditto.
93 include/internal/chewingutil.h: Ditto.
94
95 * src/chewingio.c (chewing_handle_Default) (chewing_handle_CtrlNum):
96 Changed accordinly.
97
98 2010-11-08 Jim Huang <[email protected]>
99
100 * src/chewingio.c (addTerminateService),
101 src/private.h: Add typedef to simplify prototype.
102
103 2010-11-08 Jim Huang <[email protected]>
104
105 * src/chewingutil.c (SymbolChoice): Fix unexpected candidate disorder
106 when doing symbol choice.
107
108 * src/hash.c (isValidChineseString): Avoid dangling pointer.
109
110 2010-11-08 Jim Huang <[email protected]>
111
112 * src/common/key2pho.c (key_str),
113 src/chewingio.c (qkey),
114 src/zuin.c (IsDvorakHsuPhoEndKey) (IsET26PhoEndKey) (HsuPhoInput):
115 DvorakHsu tone mark should be same with Hsu's mark after conversion.
116
117 * src/choice.c (ChoiceInfoAppendChi): New helper function.
118 (SetChoiceInfo): Issue 10. Fix the handling of phonetic symbols in
119 Hsu and Dvorak Hsu keyboard. Refactoring.
120 (ChoiceFirstAvail) (ChoicePrevAvail) (ChoiceNextAvail): Refactoring.
121 Patched by Ding-Yi Chen <[email protected]>
122
123 * include/internal/choice-private.h: Ditto.
124
125 2010-11-08 Jim Huang <[email protected]>
126
127 * src/tools/sort_word.c (Output): Fix file descriptor leak
128
129 2010-11-08 Jim Huang <[email protected]>
130
131 * configure.ac: Properly add LIBTOOL_EXPORT_OPTIONS
132 patched by openSUSE.
133
134 2010-11-08 Jim Huang <[email protected]>
135
136 * scripts/gendiff-from-libchewingdata.sh: Don't gendiff if given
137 svnrev <= original svnrev.
138
139 2010-11-08 Jim Huang <[email protected]>
140
141 * data/phone.cin,
142 data/tsi.src: Merged with libchewing-data.
143 Changes:
144 - Remove incomplete lines to avoid tool from crashing
145 - Eliminate incorrect single character mapping
146
147 * data/svnrev: Bump merged rev to r454
148 * NEWS: Ditto
149
150 2010-11-08 Jim Huang <[email protected]>
151
152 * scripts/gendiff-from-libchewingdata.sh: Use LABEL instead of file
153 name during patch generation.
154
155 2010-11-08 Jim Huang <[email protected]>
156
157 * data/svnrev: New file. Store the SVN revision number of last merge.
158
159 * data/NOTE: After merging changing from libchewing-data project,
160 please do update Subversion revision number in file "data/svnrev".
161
162 * scripts/gendiff-from-libchewingdata.sh: New file. Used for
163 generting the diff files from libchewingdata between certain svnver
164 and last merge one.
165
166 2010-11-07 Jim Huang <[email protected]>
167
168 * src/porting_layer/include/sys/plat_win32.h: Renamed
169 to src/porting_layer/include/sys/plat_windows.h
170 Platform transition from 'win32' to 'windows' for generic
171 win32, win64, and (possibly) wince support.
172
173 * src/porting_layer/src/plat_mmap_win32.c: Ditto.
174 Rename to src/porting_layer/src/plat_mmap_windows.c
175
176 * src/porting_layer/include/plat_types.h,
177 src/porting_layer/src/Makefile.am,
178 configure.ac: Changed accordingly.
179
180 2010-11-07 Jim Huang <[email protected]>
181
182 * darwin/: Removed since ports maintainer would take care.
183
184 2010-11-07 Jim Huang <[email protected]>
185
186 * src/tree.c (InitTree): Validate tree_size in binary data.
187
188 2010-08-26 Jim Huang <[email protected]>
189
190 * src/hanyupinyin.c (InitHanyuPinYin): Ensure the explicit return
191 value when initialization process is done.
192
193 2010-08-26 Jim Huang <[email protected]>
194
195 * src/choice.c: Fix implicit declaration of function 'ChoiceEndChoice'
196
197 2009-10-01 Kuang-che Wu <[email protected]>
198
199 * src/mod_aux.c (chewing_zuin_String): issue 352, zuin_count should
200 return the number of zhuyin symbols. Thank dingyichen's report and fix.
201
202 2009-02-01 Kuang-che Wu <[email protected]>
203
204 * scripts/gen-tabe-diff.sh, scripts/tsi-chewing.diff,
205 scripts/cvsup-tsi-src.sh: Removed.
206
207 2009-01-29 Jim Huang <[email protected]>
208
209 * python/chewing.py: Added cand_String, zuin_String and aux_String for
210 convenience.
211 Revised the removal of handle_Default.argtypes because handle_Default
212 accepts (void *, int) instead of (void *, char).
213 Patched by Ding-Yi Chen <[email protected]>.
214
215 2009-01-24 Kuang-che Wu <[email protected]>
216
217 * src/tree.c (TreeFindPhrase): Fix memory access violation, the case
218 of leaf node (index value -1) was not handled.
219
220 2008-12-08 Kuang-che Wu <[email protected]>
221
222 * test/randkeystroke.c: Fix random key range, avoid genetate chr(0)
223 incorrectly. Provide random seed argument. Fix vim mode line.
224
225 2008-12-04 Kuang-che Wu <[email protected]>
226
227 * src/private.h: Fix compile error if --enable-debug
228
229 2008-12-01 Kanru Chen <[email protected]>
230
231 * configure.ac: Bump version to 0.3.2 .
232
233 * TODO: Add new entry.
234
235 * NEWS: Update.
236
237 2008-12-01 Jim Huang <[email protected]>
238
239 * src/tree.c: Fix build due to previous changes.
240
241 2008-12-01 Kanru Chen <[email protected]>
242
243 * include/global.h,
244 include/internal/tree-private.h (IS_USER_PHRASE) (IS_DICT_PHRASE): Hide
245 internal macro.
246
247 2008-12-01 Jim Huang <[email protected]>
248
249 * src/hash.c (TerminateHash): Release internal memory allocations.
250 `make -C test vcheck` dumps reasonable results:
251 ==30989== LEAK SUMMARY:
252 ==30989== definitely lost: 0 bytes in 0 blocks.
253 ==30989== possibly lost: 0 bytes in 0 blocks.
254 ==30989== still reachable: 8,570 bytes in 582 blocks.
255
256 2008-12-01 Jim Huang <[email protected]>
257
258 * test/gen_keystroke.c (main),
259 test/testchewing.c (main): Use refined chewing_delete() with IM
260 context instead of chewing_free.
261
262 2008-12-01 Jim Huang <[email protected]>
263
264 * Doxyfile.in: To improve API documentation, enable the following
265 options:
266 - INLINE_SOURCES
267 - HAVE_DOT
268 - CALL_GRAPH
269
270 2008-12-01 Jim Huang <[email protected]>
271
272 * include/chewingio.h,
273 include/mod_aux.h,
274 include/global.h,
275 include/chewing.h,
276 include/internal/chewing-utf8-util.h,
277 src/mod_aux.c: Improve Doxygen-friendly text.
278 Take care about @param[in] and @param[out] and name group.
279
280 2008-12-01 Jim Huang <[email protected]>
281
282 * include/global.h,
283 include/internal/chewing-private.h,
284 include/internal/chewing-utf8-util.h,
285 src/hanyupinyin.c,
286 src/chewingio.c,
287 src/chewingutil.c,
288 src/hash.c: Remove the inclusion of header <stdlib.h> and <stdio.h> in
289 Chewing API headers. Place them in implementation C source files
290 instead.
291
292 2008-11-30 Jim Huang <[email protected]>
293
294 * include/chewingio.h,
295 include/global.h,
296 include/chewing.h: Improve Doxygen-friendly text.
297
298 2008-11-30 Jim Huang <[email protected]>
299
300 * Doxyfile.in: Update with doxygen 1.5.7.1 -u. Switch lang to
301 English.
302
303 * include/chewing.h: Initially documented for high level descriptions.
304
305 2008-11-30 Jim Huang <[email protected]>
306
307 * test/Makefile.am: Launch valgrind via libtool. Avoid linkage
308 problems.
309
310 2008-11-30 Jim Huang <[email protected]>
311
312 * include/zuin.h: Removed. We only need high level definitions so
313 far.
314
315 * include/internal/zuin-private.h: Merged the defintions orginally in
316 file include/zuin.h.
317
318 * include/chewing.h,
319 src/chewingio.c,
320 src/tools/sort_word.c,
321 src/chewingutil.c,
322 src/zuin.c,
323 Makefile.am: Ditto.
324
325 2008-11-30 Jim Huang <[email protected]>
326
327 * Doxyfile.in: Ignore src/ directory since we refine APIs in headers.
328
329 2008-11-30 Jim Huang <[email protected]>
330
331 * include/chewingio.h,
332 include/mod_aux.h,
333 include/global.h,
334 include/chewing.h,
335 include/zuin.h: Make Doxygen-friendly.
336
337 2008-11-27 Kanru Chen <[email protected]>
338
339 * include/chewingio.h,
340 src/chewingio.c (chewing_get_KBString): New API for retrieving kbtype in
341 string format.
342
343 2008-11-27 Kanru Chen <[email protected]>
344
345 * src/chewingio.c (chewing_get_KBType): Check kbtype's validity.
346
347 2008-11-23 Jim Huang <[email protected]>
348
349 * include/chewingio.h,
350 src/chewingio.c (chewing_get_phoneSeq) (chewing_get_phoneSeqLen):
351 Globally defined. No more Win32 specific. Considering the usage of
352 chewing-utils, the two APIs are useful.
353
354 2008-11-23 Jim Huang <[email protected]>
355
356 * src/hash.c (TerminateHash): New terminating service function
357 to free allocated hash entries.
358 (PhoneSeqTheSame): Avoid invalid memory access.
359 (InitHash): Hook TerminateHash and prepare hash list entry.
360 NOTE: there are still several memleaks. Use "make -C test vcheck" to
361 digg.
362
363 2008-11-22 Kanru Chen <[email protected]>
364
365 * configure.ac: Bump version to 0.3.1.901 .
366
367 2008-11-22 Kanru Chen <[email protected]>
368
369 * include/chewingio.h,
370 src/chewingio.c (chewing_free) (chewing_delete): Renamed.
371 (chewing_free): Used to free memory allocated by chewing.
372 (chewing_get_phoneSeq) (chewing_get_phoneSeqLen):
373 Win32 needs this two function.
374
375 * src/hash.c (HashItem2Binary) (_load_hash_file): Exported for
376 internal use.
377
378 2008-11-19 Kanru Chen <[email protected]>
379
380 * src/char.c,
381 src/dict.c: mmap use original file size.
382
383 2008-11-19 Kanru Chen <[email protected]>
384
385 * src/mod_aux.c: Only return by argument if the pointer is not NULL.
386
387 2008-11-16 Jim Huang <[email protected]>
388
389 * include/global.h (struct ChewingConfigData)
390 include/chewingio.h: Added bPhraseChoiceRearward.
391
392 * src/chewingio.c (chewing_Configure)
393 (chewing_set_phraseChoiceRearward) (chewing_get_phraseChoiceRearward):
394 Ditto
395
396 * src/choice.c (ChoiceFirstAvail): bPhraseChoiceRearward indicates the
397 behavior for phrase choice to be rearward or not.
398
399 * test/gen_keystroke.c (main): Initialize configurations with
400 chewing_set_autoShiftCur and chewing_set_phraseChoiceRearward.
401
402 2008-11-14 Kanru Chen <[email protected]>
403
404 * src/private.h: Add STATIC_ASSERT macro.
405
406 * include/internal/zuin-private.h,
407 include/zuin.h,
408 src/tools/sort_word.c: Convert KB_* macros to enum.
409
410 * include/internal/chewing-private.h,
411 include/mod_aux.h,
412 src/chewingio.c,
413 src/mod_aux.c: New APIs to enumerate supported keyboard types.
414
415 2008-11-14 Kanru Chen <[email protected]>
416
417 * include/global.h,
418 include/internal/chewing-private.h: Move bAutoShiftCur and
419 bEasySymbolInput from ChewingData to ChewingConfigData.
420
421 * include/chewingio.h,
422 src/chewingio.c,
423 src/chewingutil.c: Add set/get function of bAutoShiftCur and
424 bEasySymbolInput attribute.
425
426 2008-11-14 Kanru Chen <[email protected]>
427
428 * NEWS: Update.
429
430 2008-11-08 Kanru Chen <[email protected]>
431
432 * src/char.c,
433 src/dict.c: Don't do void pointer arithmetic.
434
435 2008-11-03 Kanru Chen <[email protected]>
436
437 * src/choice.c (ChoiceFirstAvail): Catch the zero phrase case.
438
439 2008-10-28 Kanru Chen <[email protected]>
440
441 * src/chewingutil.c (AutoLearnPhrase): Fix the last phrase is new phrase
442 case.
443
444 2008-10-28 Kanru Chen <[email protected]>
445
446 * src/chewingutil.c (ChewingIsBreakPoint) (AutoLearnPhrase): Add
447 experimental auto new phrase learning based on heuristic rules mentioned
448 in "port bimsphone algorithm to libchewing".
449
450 2008-10-26 Kanru Chen <[email protected]>
451
452 * include/internal/chewing-utf8-util.h,
453 src/common/chewing-utf8-util.c (ueStrNBytes): New helper function.
454
455 * src/chewingio.c,
456 src/tree.c: Don't ignore length parameter when comparing two strings.
457
458 2008-10-26 Kanru Chen <[email protected]>
459
460 * src/chewingio.c,
461 src/chewingutil.c,
462 src/choice.c,
463 src/tree.c,
464 src/userphrase.c: Fix improper use of MAX_UTF8_SIZE. This is a serious
465 bug that can lead to wrong phrasing result.
466
467 2008-10-25 Kanru Chen <[email protected]>
468
469 * src/tree.c (FindInterval): Cleanup duplicated codes.
470
471 2008-10-25 Kanru Chen <[email protected]>
472
473 * src/chewingio.c: Check memory allocation before using it.
474
475 2008-10-25 Kanru Chen <[email protected]>
476
477 * include/internal/chewingutil.h (CountSymbols) (PhoneSeqCursor): New
478 function for calculating phone cursor position.
479
480 * include/internal/char-private.h,
481 src/chewingio.c,
482 src/chewingutil.c,
483 src/choice.c: Remove cursor field, replaced by PhoneSeqCursor function.
484
485 * src/choice.c (ChoiceFirstAvail): Use preferInterval instead of
486 phrOut.dispInterval to calculate phrase position.
487
488 * test/gen_keystroke.c: Show all interval.
489
490 2008-10-24 Jim Huang <[email protected]>
491
492 * README: Update integration status and descriptions.
493 Put the logo generated by figlet.
494
495 2008-10-23 Jim Huang <[email protected]>
496
497 * src/common/key2pho.c (zhuin_tab) (zhuin_tab_num),
498 src/chewingutil.c (SetUpdatePhraseMsg) (SpecialSymbolInput)
499 (symbol_buf): Added human readable comments around the HEX values.
500 The reason why we convert string literal to hex representation is for
501 the sake of portability, that avoids some buggy or faulty environment
502 like Microsoft VC9 to misinterpret the string.
503
504 2008-10-23 Kanru Chen <[email protected]>
505
506 * Makefile.am: We no longer ship hanyupinyin.h, so remove it.
507
508 2008-10-22 Kanru Chen <[email protected]>
509
510 * src/common/key2pho.c,
511 src/chewingutil.c: Convert string literal to hex representation for
512 maximum portability.
513
514 2008-10-22 Kanru Chen <[email protected]>
515
516 * src/chewingio.c (chewing_handle_Esc): Remove the hack of
517 SemiSymbolInput since SemiSymbolInput no longer exists.
518
519 2008-10-22 Kanru Chen <[email protected]>
520
521 * src/char.c,
522 src/chewingutil.c,
523 src/dict.c,
524 src/tree.c: Use PATH_MAX.
525
526 2008-10-22 Kanru Chen <[email protected]>
527
528 * include/internal/hanyupinyin-private.h,
529 src/chewingio.c,
530 src/hanyupinyin.c: Use consistent API to load hanyupinyin table.
531
532 * include/hanyupinyin.h: Removed.
533
534 * include/chewing.h,
535 src/zuin.c: Fix including.
536
537 * src/porting_layer/include/sys/plat_posix.h,
538 src/porting_layer/include/sys/plat_win32.h: Add PATH_MAX definition.
539
540 2008-10-22 Jim Huang <[email protected]>
541
542 * src/chewingio.c (chewing_Init): Touch bTerminateCompleted after
543 initialization.
544
545 * src/private.h (TerminateServicesNUM): Fix limit of terminating
546 service number since new services are added.
547
548 * test/simulate.c (FILE *fp): Properly init to NULL.
549
550 2008-10-21 Jim Huang <[email protected]>
551
552 * test/simulate.c: New file. Rewrite bacth simulating script in C to
553 gain more features such as high-lighting difference and statistics.
554 The reference output:
555 [ Report ]
556 Checks: 385 words, Failures: 34 words
557 Ratio: 91.17%
558
559 * test/simulate.sh: Wrapper to executable "simulate".
560
561 * test/testchewing.c
562 (commit_string) (main): Used in simulate.c file.
563 (compare_per_run): New function. Simply compare two UTF-8 character
564 between expected and committed string.
565
566 * test/Makefile.am: Added "simulate" program.
567
568 2008-10-20 Jim Huang <[email protected]>
569
570 * src/tree.c (internal_release_Phrase) (FindInterval): Use distinct
571 enumeration for used phrase type instead of numbers.
572
573 2008-10-20 Kanru Chen <[email protected]>
574
575 * python/chewing.py,
576 python/test.py: Add initial python binding code.
577
578 2008-10-20 Jim Huang <[email protected]>
579
580 * test/materials.txt: Added test cases from academic papers and
581 discussions.
582
583 2008-10-19 Kanru Chen <[email protected]>
584
585 * src/hanyupinyin.c,
586 src/mod_aux.c,
587 src/tools/maketree.c,
588 src/tools/sort_word.c,
589 src/tree.c,
590 test/gen_keystroke.c,
591 test/testchewing.c: Misc. cleanup.
592
593 2008-10-19 Kanru Chen <[email protected]>
594
595 * src/tree.c: Combine mmseg and chewing algorithm into score based
596 algorithm.
597
598 2008-10-19 Jim Huang <[email protected]>
599
600 * test/materials.txt: Imported some test cases from rt.openfoundry.org
601
602 2008-10-19 Jim Huang <[email protected]>
603
604 * test/debug-chewing-shell.sh: New script to automake the actions to
605 debug genkeystroke via gdb.
606
607 * test/README: Mentioned debug-chewing-shell.sh
608
609 2008-10-19 Jim Huang <[email protected]>
610
611 * test/simulate.sh,
612 test/materials.txt: New batch simulating script. It makes use of
613 program "testchewing" from test suite and compare with the expected
614 string correspondingly defined in file materials.txt. The reference
615 output:
616 [Committed] 就平常交鋼琴
617 [Expected] 就平常教鋼琴
618
619 * test/README: Mentioned simulate.sh
620
621 * test/Makefile.am: Default test data should point to
622 $(top_srcdir)/test instead of $(top_builddir)/test.
623
624 2008-10-19 Jim Huang <[email protected]>
625
626 * src/tree.c (InitTree),
627 src/char.c (InitChar),
628 src/dict.c (InitDict): Properly initialize plat_mmap instances and
629 verify them by plat_mmap_is_valid().
630
631 * src/porting_layer/src/plat_mmap_posix.c (plat_mmap_is_valid): Fix
632 faulty implementation on verifying file descriptor.
633
634 2008-10-18 Jim Huang <[email protected]>
635
636 * test/README: Mentioned randkeystroke as the stress test for
637 libchewing robustness.
638
639 2008-10-18 Jim Huang <[email protected]>
640
641 * src/tree.c (struct smart_com) (rule_largest_sum)
642 (rule_largest_avgwordlen) (rule_smallest_lenvariance)
643 (rule_largest_freqsum) (filter_by_rule) (add_comb)
644 (DetermineFirstTsi): New functions. Implemented the algorithm used
645 in bimsphone, which is based on mmseg:
646 http://technology.chtsai.org/mmseg/
647 This work was done by Kuang-che Wu <[email protected]>.
648
649 * src/tree.c (Phrasing): Switching to mmseg based algorithm when all
650 phrases in interval exist and number of phonetic sequence > 3.
651 NOTE: we will need to improve test suite to check the performance and
652 accuracy.
653
654 2008-10-18 Jim Huang <[email protected]>
655
656 * test/README: Added the information about debugging genkeystroke.
657 The way to debug genkeystroke via gdb is a bit tricky since it uses
658 ncurses library. We use two X terminals to do this.
659
660 2008-10-18 Jim Huang <[email protected]>
661
662 * data/tsi.src: Merged with libchewing-data project.
663 Last change: r342 | sky008888 | 2008-07-04 23:09:07 +0800
664
665 * data/phone.cin: Cherry pick from libchewing-data.
666
667 * data/phone.cin-CNS11643-complete.patch: Split the phone-word pair
668 that CJKUnifont doesn't display from data/phone.cin .
669
670 2008-10-16 Jim Huang <[email protected]>
671
672 * include/global.h,
673 configure.ac: Disable GCC visibility support on gcc 3.x .
674 Although there are several gcc patches included in some gcc 3
675 distributions, they are somehow buggy until gcc4 finally releases.
676 Also, visibility is enabled on gcc4 by default.
677
678 2008-10-15 Kanru Chen <[email protected]>
679
680 * src/char.c,
681 src/tools/sort_word.c: Enable us_freq.dat binary format.
682
683 2008-10-15 Kanru Chen <[email protected]>
684
685 * data/Makefile.am,
686 include/internal/global-private.h,
687 src/char.c,
688 src/tools/Makefile.am,
689 src/tools/dat2bin.c,
690 src/tools/maketree.c,
691 src/tools/sort_dic.c,
692 src/tools/sort_word.c,
693 test/Makefile.am: Generate binary data in place.
694
695 2008-10-15 Kanru Chen <[email protected]>
696
697 * src/dict.c (TerminateDict) (InitDict) (Str2Phrase): Rewrite dict
698 binary data manipulation by using mmap.
699
700 2008-10-15 Jim Huang <[email protected]>
701
702 * src/tree.c (OutputRecordStr): clean up dead code.
703
704 * src/chewingio.c,
705 src/zuin.c,
706 src/choice.c: Proper inclusion.
707
708 * src/dict.c (fgettab): Conditional build.
709
710 2008-10-15 Jim Huang <[email protected]>
711
712 * include/internal/hash-private.h,
713 include/internal/tree-private.h,
714 src/tree.c,
715 src/hash.c,
716 src/chewingio.c (chewing_Init): Consistent naming for internal APIs.
717 Rename from ReadHash to InitHash. Rename from ReadTree to InitTree.
718
719 2008-10-15 Jim Huang <[email protected]>
720
721 * src/tree.c (TerminateTree) (ReadTree),
722 src/char.c (TerminateChar) (InitChar),
723 src/dict.c (TerminateDict) (InitDict): Rewrite binary data
724 manipulation by using mmap (memory mapped, provided by porting_layer).
725 Expected to dramatically reduce loading time.
726
727 2008-10-14 Kanru Chen <[email protected]>
728
729 * src/dict.c,
730 src/tools/sort_dic.c: Make sort_dic produce binary data.
731
732 2008-10-14 Jim Huang <[email protected]>
733
734 * test/Makefile.am: Quiet copy default test data.
735
736 * src/tree.c (ShowList),
737 src/chewingutil.c (ShowChewingData): Debug output tweaking.
738
739 * src/chewingutil.c (CallPhrasing): Dump chewing data internals when
740 debug mode.
741
742 2008-10-14 Jim Huang <[email protected]>
743
744 * src/choice.c,
745 src/tree.c: Move the declaration of [TreeType] tree from ... to ...
746
747 2008-10-14 Jim Huang <[email protected]>
748
749 * src/hash.c (formatstring): Removed since it does nothing readable.
750 (HashModify): Simplified hash output text.
751
752 2008-10-14 Jim Huang <[email protected]>
753
754 * configure.ac: Refactor enabling rules.
755
756 2008-10-14 Kanru Chen <[email protected]>
757
758 * test/Makefile.am,
759 test/randkeystroke.c: Add randkeystroke test program.
760
761 2008-10-14 Kanru Chen <[email protected]>
762
763 * include/mod_aux.h (chewing_cursor_Current): Correct return type.
764
765 * test/gen_keystroke.c: Add back cursor position.
766
767 2008-10-14 Kanru Chen <[email protected]>
768
769 * include/global.h,
770 include/internal/chewing-private.h: Expose InternalType.
771
772 * include/mod_aux.h,
773 src/mod_aux.c (chewing_interval_Enumerate) (chewing_interval_hasNext)
774 (chewing_interval_Get): New API to enumerate intervals.
775
776 * test/gen_keystroke.c: Use new API to display intervals.
777
778 2008-10-14 Kanru Chen <[email protected]>
779
780 * src/mod_aux.c (cand_no_max): Remove unnecessary static variable.
781
782 * include/internal/chewing-private.h,
783 src/tree.c (PhraseIntervalType): Move from ... to ...
784
785 * include/global.h,
786 include/internal/tree-private.h (ReadTree): Ditto.
787
788 * include/hanyupinyin.h,
789 include/internal/hanyupinyin-private.h,
790 src/hanyupinyin.c: Hide private structure.
791
792 2008-10-13 Kanru Chen <[email protected]>
793
794 * test/gen_keystroke.c (set_cursor): Removed.
795
796 2008-10-12 Jim Huang <[email protected]>
797
798 * include/global.h: Added macro UNUSED = __attribute__((unused)).
799
800 * include/internal/chewingutil.h: Removed static functions.
801
802 * src/tree.c (ReadTree): Added terminating service: TerminateTree.
803
804 * src/hanyupinyin.c (chewing_set_PinYinMethod): Confirming vaild
805 PinYin method type.
806 (HanyuPinYinToZuin): Eliminate compiler warning.
807
808 * src/chewingio.c (chewing_Configure)
809 (chewing_set_selKey) (chewing_handle_Up) (chewing_handle_ShiftSpac):
810 Mark UNUSED parameters.
811
812 * src/tools/dat2bin.c (main): Properly initialize TreeType.
813
814 * src/chewingutil.c (HaninSymbolInput) (_Inner_InternalSpecialSymbol)
815 (EasySymbolInput): Mark UNUSED parameters.
816 (FindSymbolKey) (TerminateSymbolTable) (TerminateEasySymbolTable):
817 Eliminate compiler warning.
818
819 * src/hash.c (HashItem2String): Conditional build with ENABLE_DEBUG.
820 (HashItem2Binary) (ReadHashItem_bin) (migrate_hash_to_bin): Eliminate
821 compiler warning.
822
823 * src/tools/sort_word.c,
824 src/tools/sort_dic.c,
825 src/userphrase.c,
826 src/chewingutil.c,
827 src/zuin.c: Proper inclusion for internal headers.
828
829 * configure.ac: Refactor --enable-debug detection.
830
831 2008-10-11 Jim Huang <[email protected]>
832
833 * include/global.h,
834 include/internal/global-private.h: Move filename definitions to the
835 later. Not necessary to expose chewing data filename information.
836
837 * src/tree.c,
838 src/char.c,
839 src/tools/sort_word.c,
840 src/tools/sort_dic.c,
841 src/tools/maketree.c,
842 src/chewingutil.c,
843 src/dict.c: Ditto. Proper inclusion.
844
845 * Makefile.am: Remove internal headers.
846
847 2008-10-11 Jim Huang <[email protected]>
848
849 * src/tree.c (ReadTree),
850 src/char.c (InitChar),
851 src/dict.c (InitDict),
852 src/tools/Makefile.am,
853 data/Makefile.am,
854 configure.ac: Enable binary data representation. Default: enabled.
855
856 2008-10-10 Kanru Chen <[email protected]>
857
858 * include/chewingio.h,
859 include/global.h,
860 src/chewingio.c: Add public interfaces to set/get configs.
861
862 2008-10-09 Kanru Chen <[email protected]>
863
864 * configure.ac: Add gcc visibility support.
865
866 * include/char.h,
867 include/chewing-utf8-util.h,
868 include/chewing.h,
869 include/dict.h,
870 include/global.h,
871 include/hash.h,
872 include/mod_aux.h,
873 include/userphrase.h,
874 include/zuin.h: Remove internal interfaces.
875
876 * include/internal/char-private.h,
877 include/internal/chewing-private.h,
878 include/internal/chewing-utf8-util.h,
879 include/internal/chewingutil.h,
880 include/internal/choice-private.h,
881 include/internal/dict-private.h,
882 include/internal/hash-private.h,
883 include/internal/key2pho-private.h,
884 include/internal/tree-private.h,
885 include/internal/userphrase-private.h,
886 include/internal/zuin-private.h: Put internal interfaces here.
887
888 * src/Makefile.am,
889 src/char.c,
890 src/chewingio.c,
891 src/chewingutil.c,
892 src/chewingutil.h,
893 src/choice.c,
894 src/common/Makefile.am,
895 src/common/key2pho.c,
896 src/dict.c,
897 src/hash.c,
898 src/mod_aux.c,
899 src/porting_layer/src/Makefile.am,
900 src/tools/Makefile.am,
901 src/tools/sort_word.c,
902 src/tree.c,
903 src/userphrase.c,
904 src/zuin.c,
905 test/Makefile.am,
906 test/gen_keystroke.c: Adjust including path.
907
908 2008-10-01 Kanru Chen <[email protected]>
909
910 * configure.ac:
911 Migrate check module to use pkg-config.
912 Bump version to 0.3.1
913
914 * chewing.pc.in: Add --datarootdir.
915
916 2008-09-23 Kanru Chen <[email protected]>
917
918 * configure.ac: Change ABI version to 3.1.0
919 libchewing 0.3 stands for development branch. We intend to break
920 API/ABI at the stage. As the result, there would not be major version
921 change in library.
922
923 * NEWS: Updated.
924
925 2008-09-20 Kanru Chen <[email protected]>
926
927 * configure.ac: Bump version to 0.3.0.902
928
929 2008-09-20 Kanru Chen <[email protected]>
930
931 * configure.ac: Bump ABI version to 4.0.0
932
933 2008-07-07 Kanru Chen <[email protected]>
934
935 * test/gen_keystroke.c: Fix choice buffer output.
936
937 * src/mod_aux.c (chewing_cand_String): Kill memory leak.
938
939 2008-07-04 Kanru Chen <[email protected]>
940
941 * include/global.h,
942 include/zuin.h,
943 src/chewingio.c,
944 src/common/key2pho.c,
945 src/zuin.c: Apply DACHEN_CP26 patch, thanks Paul Liu.
946
947 2008-04-28 Caius Chance <[email protected]>
948
949 * src/chewingio.c:
950 Refactorized chewing_get_ChiEngMode( ChewingContext *ctx ).
951
952 2008-04-02 Jeff Chen <[email protected]>
953
954 * src/chewingio.c,
955 src/chewingutil.c,
956 src/chewingutil.h: SemiSymbolInput() is useless.
957
958 2008-03-30 Jeff Chen <[email protected]>
959
960 * src/zuin.c:
961 Type symbols easily for PinYin input.
962
963 2008-02-11 Jeff Chen <[email protected]>
964
965 * src/choice.c:
966 Behaivor changed: Doing select at the end of edit buffer works on the
967 last phrase (interval).
968
969 2008-02-08 Jim Huang <[email protected]>
970
971 * configure.ac: Make use of AC_CONFIG_AUX_DIR.
972
973 * autotools: New directory containing files generated by autotools.
974
975 * scripts/remove-autotool.sh: Likewise.
976
977 2008-02-07 Jim Huang <[email protected]>
978
979 * include/chewingio.h,
980 include/global.h,
981 src/chewingio.c,
982 src/hash.c,
983 src/choice.c,
984 src/porting_layer/include/plat_mmap.h,
985 src/porting_layer/src/plat_mmap_win32.c,
986 src/porting_layer/src/plat_mmap_posix.c: Update copyright date.
987
988 2008-02-07 Jim Huang <[email protected]>
989
990 * data/tsi.src: Sync with libchewingdata project.
991
992 * test/Makefile.am: Added uhash.dat in CLEANFILES.
993
994 2008-02-05 Jeff Chen <[email protected]>
995
996 * src/chewingio.c
997 (chewing_handle_Default) (chewing_handle_CtrlNum):
998 When users cancel symbol table by "ESC" key, it causes system to step
999 into wrong state.
1000 Openning symbol table needs to invoke semi-symbol input.
1001
1002 2008-01-16 Kanru Chen <[email protected]>
1003
1004 * include/chewingio.h:
1005 Correct the API documentation of chewing_get_ChiEngMode and
1006 chewing_get_KBType.
1007
1008 * include/global.h:
1009 Fix the missing plusses, thanks Bell Kin <[email protected]>.
1010 * include/global.h:
1011 Remove redundant definition of keyboard types.
1012
1013 2008-01-08 Caius Chance <[email protected]>
1014
1015 * src/chewingio.c,
1016 src/porting_layer/src/plat_mmap_posix.c,
1017 include/global.h,
1018 include/chewingio.h: Keyboard layout toggle button on toolbar.
1019 ( Added a button for keyboard type change. It won't save to config
1020 but just for input a character occasionally if such combination keys
1021 are suddenly forgotten. )
1022
1023 2007-10-22 Kuang-che Wu <[email protected]>
1024
1025 * src/hash.c (ReadHash): Fix user's hash.dat not functional.
1026
1027 2007-04-20 Caius Chance <[email protected]>
1028
1029 * src/chewingio.c: Closes candidate window when user pressed Up key.
1030 (Compared to Down key for opening candidate window implemented
1031 currently.)
1032
1033 2007-01-03 Caius Chance <[email protected]>
1034
1035 * src/choice.c: Clear previous cnadidates before population of new
1036 candidates. (Re-fixed as changes made on 2006-12-18 was not
1037 effective.)
1038
1039 2006-12-29 Jim Huang <[email protected]>
1040
1041 Merge from the latest libchewingdata
1042
1043 * data/tsi.src: Sync with libchewingdata project.
1044 There are some missing glyph shown in rxvt-unicode, so omitted at the
1045 moment.
1046
1047 2006-12-18 Jim Huang <[email protected]>
1048
1049 Erase candidate and reset its length when Esc key is handled.
1050
1051 * src/chewingio.c (chewing_handle_Esc): Adjust the number of output
1052 commit string according to chiSymbolBufLen.
1053 Suggested by Caius Chance <[email protected]>.
1054
1055 2006-12-05 Jim Huang <[email protected]>
1056
1057 * configure.ac: Search $prefix/{include,lib} path first while checking
1058 ncurses/ncursesw libraries. This is useful to cross-build.
1059
1060 * test/gen_keystroke.c: Add conditional include of ncurses.
1061
1062 2006-12-05 Kuang-che Wu <[email protected]>
1063
1064 * src/chewingutil.c (CleanAllBuf): nPrefer should also be cleaned when
1065 clean all bufffer. Otherwise the status of candidate is incorrect
1066 (after press "Enter" commit).
1067
1068 2006-12-04 Kuang-che Wu <[email protected]>
1069
1070 Fix portability issues on FreeBSD.
1071 * autogen.sh: FreeBSD sh only support = for test, not ==. Variable
1072 setting should be properly quoted.
1073
1074 * configure.ac test/gen_keystroke.c: widec version of ncurses.h is in
1075 /usr/local/include/ncurses on FreeBSD. And library in /usr/local/lib.
1076
1077 * test/Makefile.am: Remove libncurses dependency for testchewing.c.
1078 It's no longer needed.
1079
1080 * test/testchewing.c: support ShiftLeft and ShiftRight key.
1081
1082 2006-11-30 Jim Huang <[email protected]>
1083
1084 Fix errors in EasySymbolInput while previous merge.
1085
1086 * src/chewingutil.c (InitSymbolTable) (InitEasySymbolInput): Replace
1087 malloc with ALC macro.
1088 (InitEasySymbolInput): Fix wrong string calls.
1089
1090 2006-11-30 Jim Huang <[email protected]>
1091
1092 Most window systems bind ctrl- combination keys to specific system
1093 functions, which makes chewing_handle_CtrlOption API being less
1094 useful. So, just removed.
1095
1096 * include/chewingio.h,
1097 src/chewingio.c (chewing_handle_CtrlOption): Remove unused API
1098 function.
1099
1100 2006-11-28 Jim Huang <[email protected]>
1101
1102 * src/chewingio.c (chewing_handle_CtrlNum): Return while selecting.
1103 Invoke symbol input with Ctrl-[01].
1104
1105 * src/chewingutil.c,
1106 src/chewingutil.h (SpecialEtenSymbolInput): Remove unused function.
1107
1108 * data/Makefile.am: Fixlet to install-data-local list.
1109
1110 2006-11-28 Jim Huang <[email protected]>
1111
1112 * test/Makefile.am: Link to internal libraries to avoid unresolved
1113 symbols.
1114
1115 2006-11-28 Jim Huang <[email protected]>
1116
1117 * src/tools/sort_dic.c (main): Fix typo in fclose.
1118
1119 * src/hash.c (migrate_hash_to_bin): Avoid memory leak.
1120 (ReadHash): recalculate chewing_lifetime.
1121
1122 * src/Makefile.am: Replace $(LIBTOOL_EXPORT_OPTIONS) with
1123 `-export-symbols-regex "^(chewing)_"' to make sure exporting the right
1124 Chewing API.
1125
1126 * data/Makefile.am: Move swkb.dat and symbols.dat to
1127 install-data-local instead of datas section.
1128
1129 2006-11-26 Kuang-che Wu <[email protected]>
1130
1131 * src/chewingutil.c (SetUpdatePhraseMsg): Ticket #15025. Improve
1132 message text.
1133
1134 2006-11-25 Kuang-che Wu <[email protected]>
1135
1136 Fix bug: When insert symbol via '`' and trigger auto commit, Chewing
1137 may crash.
1138
1139 * src/chewingio.c (chewing_handle_Default): The saved cursor position
1140 is incorrect due to auto commit. Defer auto-commit until selection.
1141
1142 2006-11-25 Kuang-che Wu <[email protected]>
1143
1144 Fix bug: When insert character in front of buffer and trigger auto
1145 commit, Chewing may crash.
1146
1147 * src/chewingutil.c (ChewingKillChar): Don't allow cursor move left
1148 beyond 0.
1149
1150 2006-11-25 Kuang-che Wu <[email protected]>
1151
1152 Fix bug: Chewing won't auto commit the string in buffer even string is
1153 too long. This may lead buffer overflow and crash.
1154
1155 * src/chewingutil.c (CountReleaseNum): When 1st character in buffer is
1156 not Zi and 2nd is, the number ready to commit is 1, not 0. Fix the
1157 number off by 1.
1158
1159 2006-11-22 Caius Chance <[email protected]>
1160
1161 Release Page Up / Page Down key event to running applications.
1162 (Fixed Page Up / Page Down key doesn't work when Chewing is activated.)
1163
1164 * src/chewingio.c
1165 (chewing_handle_PageUp): Codes cloned from chewing_handle_Home().
1166 (chewing_handle_PageDown): Same as above.
1167 * include/chewingio.h
1168 (chewing_handle_PageUp): Same as above.
1169 (chewing_handle_PageDown): Same as above.
1170
1171 2006-11-16 Jim Huang <[email protected]>
1172
1173 * src/chewingutil.c (InitEasySymbolInput): Fixlet to invalid
1174 pointer.
1175
1176 2006-11-16 Jim Huang <[email protected]>
1177
1178 Merge win32-utf8 branch and fix incorrect initialization.
1179
1180 * include/global.h
1181 (struct SymbolEntry): New structure as entry of symbol table.
1182 (struct ChewingData): Rename selectAreaLen to candPerPage. Added
1183 bEasySymbolInput.
1184
1185 * src/chewingio.c
1186 (chewing_Init): initialize Symbol Table.
1187 (chewing_Reset): Backup old config and restore it after clearing
1188 pgdata structure. This is important to avoid crash when switching
1189 different IM engines.
1190 (chewing_Configure): Rename selectAreaLen to candPerPage.
1191 (chewing_handle_Esc): Modify symbol checking rule.
1192 (chewing_handle_Default): Added bEasySymbolInput checks, and see if
1193 EasySymbolInput should be invoked.
1194 Added key '`' to open symbol table.
1195 (chewing_handle_CtrlNum): Since we are using key '`' for open symbol
1196 table, ctrl-[01] action is turned off. However, it could still be
1197 implemented for customized tables later.
1198
1199 * src/tools/sort_dic.c (SetNewline2Zero) (main): Ignore '#' comment
1200 in tsi.src .
1201 Here are enumerations:
1202 1. # comment with first character '#'
1203 2. # comment after some spaces
1204 3. data ... # comment after data
1205 4. allow blank line in tsi.src
1206
1207 * src/chewingutil.c (symbol_table) (n_symbol_entry)
1208 (g_easy_symbol_key) (g_easy_symbol_value) (g_easy_symbol_num)
1209 (symbol_buf): New variables for new symbol table handling.
1210 (FindEasySymbolIndex): New helper function. Find out Easy symbol index
1211 using binary search.
1212 (SetUpdatePhraseMsg): Separate internal table and look up
1213 symbol_table.
1214 (_Inner_InternalSpecialSymbol): New helper function.
1215 (InternalSpecialSymbol): Reimplemented using
1216 _Inner_InternalSpecialSymbol.
1217 (EasySymbolInput): New function for help user to input symbols easily.
1218 (InitSymbolTable): Ditto.
1219 (InitEasySymbolInput): Ditto.
1220 (SymbolChoice): Reimplemented. Support multi-level symbol choosing.
1221 (OpenSymbolChoice): Ditto.
1222 (CountReleaseNum): Count symbol as well.
1223 (FindSymbolKey): New helper function.
1224 (TerminateSymbolTable) (TerminateEasySymbolTable): New helper function
1225 registered in terminating serivces.
1226
1227 * src/chewingutil.h: Likewise.
1228
1229 * src/hash.c (ComputeChewingLifeTime): Removed.
1230 (ReadHash): Fix bug of re-base recentTime.
1231
1232 * src/choice.c (SetChoiceInfo) (ChoicePrevAvail) (ChoiceNextAvail):
1233 Rename selectAreaLen to candPerPage.
1234 (ChoiceEndChoice): Added symbol check.
1235
1236 * data/symbols.dat,
1237 data/swkb.dat: New files. Used for symbol input.
1238
1239 * data/Makefile.am,
1240 test/Makefile.am: Ditto.
1241
1242 * test/testchewing.c (main),
1243 test/gen_keystroke.c (main): Fix for naming.
1244
1245 * configure.ac: Bump version to 0.3.091 .
1246
1247 * AUTHORS: Updated.
1248
1249 2006-11-08 Kuang-che Wu <[email protected]>
1250
1251 * src/choice.c (SetAvailInfo):
1252 Fix bug, when list available phrases to choice, user's own phrases are
1253 not included. This was fixed by Andy Horng <[email protected]>
1254 in r537 win32 branch.
1255
1256 2006-11-04 Kuang-che Wu <[email protected]>
1257
1258 * src/tree.c (NextCut): Fix memory leak. (ticket #20818)
1259
1260 2006-10-30 Caius Chance <[email protected]>
1261
1262 * src/chewingio.c (chewing_handle_ShiftSpace):
1263 Fixed chewing switch between Full/Half mode and cursor moves one
1264 space in gedit.
1265 (Shift + Space should just only trigger between Full-width and Half-
1266 width.)
1267
1268 2006-06-19 Jeff Chen <[email protected]>
1269
1270 * data/pinyin.tab:
1271 A new HanYu-PinYin mapping table contributed by Alexander Beels.
1272
1273 * src/hanyupinyin.h (chewing_set_PinYinMethod),
1274 src/hanyupinyin.c:
1275 Adding a new API --- "chewing_set_PinYinMethod" to support multiple
1276 PinYin methods.
1277 Using the implementation of 0.2.x instead of current one.
1278
1279 * src/zuin.c (IsSymbolKey):
1280 Adding "IsSymbolKey" function to make PinYin method support symbol
1281 input.
1282
1283 2006-05-20 Jim Huang <[email protected]>
1284
1285 * src/char.c (Str2Word),
1286 src/dict.c (Str2Phrase): Clarify the retrieval from char/dict data.
1287 In the previous revision, sscanf with %s was used, and isspace(0xa0)
1288 returns 1 on some BSD libc implementations due to the sematics of non
1289 breaking space, that is platform-dependent.
1290 Patched by Rong-En Fan <[email protected]>.
1291
1292 2006-05-20 Jeff Chen <[email protected]>
1293
1294 * src/hanyupinyin.c (HanyuPinYinToZuin):
1295 The return value of HanyuPinYinToZuin should not be zero when
1296 looking up table failed.
1297
1298 * src/zuin.c (PinYinInput):
1299 It should clean the buffer of PinYin data and return "ZUIN_ABSORB"
1300 to ignore the current key when converting failed.
1301
1302 2006-05-19 Jeff Chen <[email protected]>
1303
1304 * data/pinyin.tab (fix key order): put "shun" before "shuo".
1305
1306 * src/hanyupinyin.c (InitMap): The upper limit of for-loop should
1307 be N_TOTAL not (N_TOTAL - 1).
1308
1309 2006-05-15 Jim Huang <[email protected]>
1310
1311 * configure.ac: Bump version to 0.3.0 (final).
1312
1313 2006-05-15 Jim Huang <[email protected]>
1314
1315 * configure.ac: Bump ABI major version.
1316
1317 * data/Makefile.am,
1318 src/tools/Makefile.am,
1319 configure.ac: Disable --enable-binary-data option.
1320
1321 2006-05-15 Jim Huang <[email protected]>
1322
1323 * configure.ac: Fill [email protected] as contact
1324 address.
1325
1326 2006-05-15 Jim Huang <[email protected]>
1327
1328 * src/chewingio.c (chewing_handle_Default): Update lifetime.
1329
1330 2006-05-15 Jim Huang <[email protected]>
1331
1332 * data/phone.cin-CNS11643-complete.patch: New file. Extract all entries
1333 that CJKUnifont doesn't contain from data/phone.cin .
1334 Used for reference only.
1335
1336 * data/phone.cin: Hugely reduced.
1337 Chewing could output most of Unihan (Extension A and B).
1338
1339 2006-05-11 Jim Huang <[email protected]>
1340
1341 * src/hash.c (HashModify) (ReadHash):
1342 Initiate variable at correct location and fix incorrect record locate
1343 expression to avoid crashes if users don't have their own hash.dat .
1344 Patched by James Huang <[email protected]>.
1345
1346 2006-05-10 Jim Huang <[email protected]>
1347
1348 * src/hanyupinyin.c (FreeMap) (InitMap): Fix incorrect file operation.
1349
1350 2006-05-10 Jim Huang <[email protected]>
1351
1352 * configure.ac: Bump version to 0.2.94 .
1353
1354 2006-05-10 Jim Huang <[email protected]>
1355
1356 * debian/*: Removed. Debian@Taiwan maintains the packaging.
1357
1358 2006-05-09 Kanru Chen <[email protected]>
1359
1360 * data/Makefile.am,
1361 src/tools/dat2bin.c,
1362 src/tools/maketree.c,
1363 src/sort_word.c: Fix binary data build process.
1364
1365 2006-05-08 Jim Huang <[email protected]>
1366
1367 * src/chewingio.c (chewing_handle_Default): Ignore non-printable
1368 input to avoid unexpected behavior.
1369
1370 2006-05-08 Jim Huang <[email protected]>
1371
1372 * include/userphrase.h (UserGetPhraseFirst),
1373 src/userphrase.c (UserGetPhraseFirst): Removed since unused.
1374
1375 * include/hash.h (HASH_FILE): Redefine from "hash.dat" to "uhash.dat".
1376
1377 * src/hanyupinyin.c (HanyuPinYinToZuin): Fixlet and insert
1378 DEBUG_CHECKPOINT for future handling.
1379
1380 * src/private.h (DEBUG_CHECKPOINT): Added filename information.
1381
1382 * data/Makefile.am: Install pinyin.dat .
1383
1384 2006-05-06 Jim Huang <[email protected]>
1385
1386 * src/Makefile.am,
1387 src/common/Makefile.am: Fixlet to distclean.
1388
1389 * Makefile.am: Fixlet to installed headers.
1390
1391 * configure.ac: Bump version to 0.2.93 .
1392
1393 2006-05-06 Jim Huang <[email protected]>
1394
1395 * include/chewingutil.h,
1396 src/chewingutil.h: Move from ... to ...
1397
1398 * include/global.h,
1399 src/tree.c (IsContain),
1400 src/chewingutil.c (FindIntervalFrom) (CountReleaseNum) (KillFromLeft)
1401 (ShowChewingData) (ChewingKillSelectIntervalAcross)
1402 (KillCharInSelectIntervalAndBrkpt): Marked as static.
1403
1404 * data/Makefile.am: Improved time stamp handling for data generation.
1405
1406 * data/NOTE: Added constant-calculating information.
1407
1408 2006-05-04 Kanru Chen <[email protected]>
1409
1410 * Makefile.am,
1411 data/Makefile.am,
1412 include/char.h,
1413 include/global.h,
1414 src/Makefile.am,
1415 src/char.c,
1416 src/choice.c,
1417 src/tools/maketree.c,
1418 src/tools/sort_word.c,
1419 src/tree.c:
1420 Automatically generate "src/chewing-definition.h" which contains
1421 definition of TREE_SIZE and PHONE_NUM.
1422
1423 2006-05-02 Kanru Chen <[email protected]>
1424
1425 * include/char.h,
1426 include/global.h: Adjust MAGIC constant size.
1427
1428 2006-05-02 Jim Huang <[email protected]>
1429
1430 * src/private.h,
1431 src/porting_layer/include/sys/plat_posix.h,
1432 src/porting_layer/include/sys/plat_win32.h: Clean up private.h .
1433
1434 2006-05-02 Jim Huang <[email protected]>
1435
1436 * include/hash.h
1437 (BIN_HASH_SIG): New macro. Used for new binary-based hash data
1438 signature.
1439 (AlcUserPhraseSeq): Change prototype to assign phonelen and wordlen.
1440
1441 * src/userphrase.c (UserUpdatePhrase): Fix buggy memory allocation.
1442
1443 * src/hash.c
1444 (AlcUserPhraseSeq) (HashInsert) (HashItem2String): Ditto.
1445 (HashItem2Binary): New helper function. Convert Hash items to binary
1446 form.
1447 (HashModify): Handle hash storage via HashItem2Binary.
1448 (isValidChineseString): New helper function. Check if input is a valid
1449 Chinese string.
1450 (ReadHashItem_bin) (ReadHashItem_txt): New helper function. Separate
1451 ReadHashItem to two functions for binary and text-based form.
1452 (open_file_get_length) (_load_hash_file) (migrate_hash_to_bin): New
1453 helper functions. Used for binary hash file format and workaround for
1454 hash corruption.
1455 (ReadHash): Make use of the above new changes.
1456 Taken from win32-utf8 branch, and modified with porting_layer.
1457 Patched by James Huang (seamxr) <[email protected]>.
1458
1459 * src/porting_layer/include/sys/plat_posix.h,
1460 src/porting_layer/include/sys/plat_win32.h (PLAT_RENAME)
1461 (PLAT_UNLINK): New macros. Wrapper for rename / unlink.
1462
1463 2006-04-30 Jim Huang <[email protected]>
1464
1465 * data/tsi.src: Remove all suffix <CR>.
1466
1467 2006-04-30 Jim Huang <[email protected]>
1468
1469 * test/gen_keystroke.c (main): Call curses::clear() to turn off the
1470 annoying messages when debug enabled.
1471
1472 2006-04-30 Jim Huang <[email protected]>
1473
1474 * src/chewingio.c: Remove redundant WIN32 definitions since we have
1475 porting_layer.
1476
1477 * src/hash.c (ReadHash): Clean up platform-dependent implementation.
1478
1479 * src/porting_layer/include/sys/plat_posix.h,
1480 src/porting_layer/include/sys/plat_win32.h: Define platform-dependent
1481 tmp_dir / mkdir.
1482
1483 2006-04-30 Jim Huang <[email protected]>
1484
1485 * src/common/key2pho.c (zhuin_tab): Add prefix space to distinguish
1486 zhuin type to fix MakeOutput errors.
1487
1488 2006-04-30 Jim Huang <[email protected]>
1489
1490 * test/gen_keystroke.c (show_edit_buffer): Fixlet to wrong casting.
1491
1492 * include/hash.h (ReadHash),
1493 src/hash.c (ReadHash): Change prototype from char * to const char *.
1494
1495 * include/chewing-utf8-util.h (ueStrNCpy),
1496 src/common/chewing-utf8-util.c (ueStrNCpy): Change prototype from char
1497 dest* to char dest[].
1498
1499 * src/tree.c (GetIntersection) (CompLen) (CompLenDescend) (CompFrom):
1500 Removed since unused.
1501
1502 * src/hanyupinyin.c (HanyuPinYinToZuin): Use strdup instead of
1503 sprintf.
1504
1505 * src/char.c (Str2Word): Fixlet to assert.
1506
1507 * src/userphrase.c (DeltaFreq): Removed since unused.
1508
1509 * src/mod_aux.c (chewing_cand_String): Add return value.
1510
1511 * README,
1512 NEWS: Update OXIM bridge information.
1513
1514 2006-04-30 Jim Huang <[email protected]>
1515
1516 * src/chewingutil.c (MakeOutput):
1517 Fixes in KB_HANYU_PINYIN to avoid wrong Unicode transformation.
1518 Patched by hialan <[email protected]>
1519 http://hialan.twbbs.org/ .
1520
1521 2006-04-30 Jim Huang <[email protected]>
1522
1523 * include/global.h (struct ChewingConfigData::bEscCleanAllBuf):
1524 New member. Add bEscCleanAllBuf option.
1525
1526 * src/chewingio.c
1527 (chewing_Configure): Initialize bEscCleanAllBuf.
1528 (chewing_handle_Esc): CleanAllBuf when bEscCleanAllBuf is true.
1529
1530 * src/tree.c
1531 (LoadChar): Modify prototype to accept specific buffer length.
1532 (OutputRecordStr): Likewise.
1533 (Phrasing): Passing the length of chiBuf to OutputRecordStr.
1534 The changes should be able to fix previous wrong behavior.
1535 Taken from win32-utf8 branch.
1536
1537 * src/common/key2pho.c (PhoneFromUint): Removed since unused.
1538
1539 2006-04-29 Jim Huang <[email protected]>
1540
1541 * include/global.h
1542 (struct PhrasingOutput::nNumCut): New member. Indicate the number to
1543 be cut-off while phrasing.
1544 (struct ChewingData::symbolKeyBuf): New member. Used as symbol key
1545 buffer.
1546
1547 * include/chewingutil.h (OpenSymbolChoice): New function.
1548
1549 * src/tree.c
1550 (struct TreeDataType::nPhListLen): New member. Indicate the length of
1551 phrase list.
1552 (SortListByFreq): Update nPhListLen.
1553 (NextCut): New helper function. Calculate the next cut-off node.
1554 (Phrasing): Invoke NextCut after frequency-evaluation is done.
1555
1556 * src/chewingio.c
1557 (chewing_Reset): Initialize nNumCut.
1558 (DoSelect): change the checking rule for isSymbol since the semantics
1559 of isSymbol is extended for the following values: (TODO: it should be
1560 renamed for better readability)
1561 1: traditional Hanin symbols.
1562 2: pair symbols for OpenSymbolChoice.
1563 (chewing_handle_Space) (chewing_handle_Down): Simplify the handling
1564 of Chinese symbol cursor. Add new feature to invoke OpenSymbolChoice
1565 for pair symbols.
1566 (chewing_handle_Enter): Disable the call of CallPhrasing.
1567 (chewing_handle_Tab): Adjust nNumCut while Tab triggered.
1568 (chewing_handle_Default): Reset nNumCut = 0 and update user phrase
1569 interval while everything got done.
1570
1571 * src/chewingutil.c
1572 (InternalSpecialSymbol) (SymbolInput): Perform the storage of symbol
1573 keys, that is required by OpenSymbolChoice.
1574 (SymbolChoice): Handle different type of isSymbol.
1575 (CleanAllBuf): Clean symbolKeyBuf.
1576 (ChewingKillChar): ditto.
1577 (OpenSymbolChoice): New function. Implement the choice mechanism for
1578 pair symbols.
1579
1580 * src/hash.c
1581 (ComputeChewingLifeTime): New helper function. Attempt to re-compute
1582 chewing lifetime.
1583 (ReadHash): Invoke ComputeChewingLifeTime.
1584
1585 * src/choice.c (ChoiceEndChoice): Handle different type of isSymbol.
1586 The above changes are based on the hard work from
1587 Andy Horng <[email protected]>.
1588
1589 * configure.ac: Bump version to 0.2.92 .
1590
1591 * AUTHORS: Updated.
1592
1593 2006-04-29 Kanru Chen <[email protected]>
1594
1595 * configure.ac:
1596 Correctly output include/config.h.in
1597 Export LIBTOOL_EXPORT_OPTIONS to Makefile.
1598
1599 * include/config.h.in:
1600 Removed.
1601
1602 2006-04-29 Kanru Chen <[email protected]>
1603
1604 * data/pinyin.tab,
1605 include/chewing.h,
1606 include/global.h,
1607 include/hanyupinyin.h,
1608 include/zuin.h,
1609 src/Makefile.am,
1610 src/chewingio.c,
1611 src/chewingutil.c,
1612 src/hanyupinyin.c,
1613 src/zuin.c:
1614 Change KB_HANYUPINYIN (renamed to KB_HANYU_PINYIN) to table-lookup
1615 implementation.
1616 Rename all `pinying' to `pinyin'.
1617
1618 2006-03-23 Jim Huang <[email protected]>
1619
1620 * src/Makefile.am: Trivial change for libtool symbols.
1621
1622 2006-03-15 Kanru Chen <[email protected]>
1623
1624 * src/chewingutil.c (HaninSymbolInput),
1625 src/choice.c (ChoicePrevAvail) (ChoiceNextAvail):
1626 Correct symbol choice handling.
1627
1628 2006-03-13 Kanru Chen <[email protected]>
1629
1630 * data/tsi.src: Add 噹 ㄉㄧㄤ to avoid crash.
1631
1632 2006-03-05 Kanru Chen <[email protected]>
1633
1634 * src/choice.c (SetChoiceInfo): Fix wrong word length check.
1635
1636 2005-12-17 James Huang (seamxr) <[email protected]>
1637
1638 * src/aux.c,
1639 src/Makefile.am,
1640 include/aux.h,
1641 include/chewing.h:
1642 Rename "aux.?" to "mod_aux.?". "aux" is a reserved keyword of win32 system.
1643
1644 2005-12-18 Kanru Chen <[email protected]>
1645
1646 * test/testchewing.c (commit_string),
1647 test/gen_keystroke.c (show_edit_buffer) (showZuin)
1648 (show_userphrase) (show_choose_buffer):
1649 Correctly free allocated memory.
1650
1651 2005-12-17 Jim Huang <[email protected]>
1652
1653 * src/aux.c,
1654 include/aux.h: New files. Introduced Auxiliary APIs.
1655
1656 * test/testchewing.c (get_keystroke) (main),
1657 test/gen_keystroke.c (show_edit_buffer) (show_interval_buffer)
1658 (showZuin) (show_zuin_buffer) (show_userphrase) (show_choose_buffer)
1659 (show_commit_string) (set_cursor) (main): Use new APIs.
1660 NOTE: show_commit_string needs better output handling.
1661
1662 * test/Makefile.am,
1663 src/Makefile.am,
1664 include/global.h (struct ChewingContext),
1665 include/chewing.h,
1666 src/chewingio.c (chewing_new): Likewise.
1667
1668 2005-12-07 Kanru Chen <[email protected]>
1669
1670 * include/global.h,
1671 src/chewingio.c,
1672 src/chewingutil.c,
1673 src/hash.c,
1674 src/tools/sort_word.c,
1675 src/tree.c,
1676 src/userphrase.c:
1677 Enlarge all buffer size so that can contain at most 6 byte utf8 word.
1678
1679 2005-12-06 Kanru Chen <[email protected]>
1680
1681 * include/chewingio.h,
1682 include/global.h,
1683 src/chewingio.c:
1684 ConfigData rename to ChewingConfigData.
1685
1686 * src/chewingutil.c,
1687 src/choice.c:
1688 Change measure of selectAreaLen to number of word
1689 that can be displayed.
1690
1691 2005-12-06 Kanru Chen <[email protected]>
1692
1693 * include/chewingio.h,
1694 src/chewingio.c
1695 (chewing_Init) (chewing_Terminate):
1696 Only initialize/terminate global data.
1697 (chewing_new): Allocate and initialize internal data.
1698 (chewing_free): New API.
1699 Deallocate internal data.
1700
1701 * test/testchewing.c (main),
1702 test/gen_keystroke.c (main): Use the new API.
1703
1704 2005-12-04 Jim Huang <[email protected]>
1705
1706 * test/test-mmap.c: New file. Unit test for mmap implementation in
1707 porting_layer.
1708
1709 * test/do-test.c,
1710 test/Makefile.am: Likewise.
1711
1712 * src/hash.c: Remove redundant macro.
1713
1714 * data/Makefile.am: Fixlet to binary-data generation when enabled.
1715
1716 2005-12-04 Jim Huang <[email protected]>
1717
1718 * test/Makefile.am,
1719 configure.ac: Conditional compilation for genkeystroke
1720 if ncursesw is found.
1721
1722 2005-12-04 Jim Huang <[email protected]>
1723
1724 * test/Makefile.am,
1725 configure.ac: Check for check unit test framework.
1726 http://check.sourceforge.net/
1727 Conditional compilation if enable built-in unit tests.
1728
1729 * test/test-key2pho.c,
1730 test/test-utf8.c,
1731 test/do-test.c: Touched. Add copyright note.
1732
1733 * include/chewingutil.h,
1734 src/chewingutil.c (MakeOutput): marked as static.
1735
1736 * README: Update win32-chewing information.
1737
1738 2005-12-03 Jim Huang <[email protected]>
1739
1740 * test/gen_keystroke.c (show_full_shape) (main):
1741 Tweaking for new API.
1742
1743 2005-12-03 Jim Huang <[email protected]>
1744
1745 * include/chewingio.h,
1746 src/chewingio.c (OnKeySpace) (OnKeyEsc) (OnKeyEnter) (OnKeyDel)
1747 (OnKeyBackspace) (OnKeyTab) (OnKeyShiftLeft) (OnKeyLeft)
1748 (OnKeyShiftRight) (OnKeyRight) (OnKeyUp) (OnKeyHome) (OnKeyEnd)
1749 (OnKeyDown) (OnKeyCapslock) (OnKeyDefault) (OnKeyCtrlNum)
1750 (OnKeyCtrlOption) (OnKeyShiftSpace) (OnKeyDblTab) (OnKeyNumlock):
1751 API renamed with chewing_ prefix.
1752 (SetConfig): Renamed to chewing_Configure.
1753 (chewing_new): New function. Create handle to ChewingContext.
1754 (InitChewing): Renamed to chewing_Init.
1755 In addition, wrap InitChar, InitDict, and ReadTree.
1756 (ChewingReset): Renamed to chewing_Reset.
1757 (ChewingSetKBType): Renamed to chewing_set_KBType.
1758 (TerminateChewing): Renamed to chewing_Terminate.
1759 In addition, release internal data structure.
1760 (SetChiEngMode): Renamed to chewing_set_ChiEngMode.
1761 (GetChiEngMode): Renamed to chewing_get_ChiEngMode.
1762 (SetShapeMode): Renamed to chewing_set_ShapeMode.
1763 (GetShapeMode): Renamed to chewing_get_ShapeMode.
1764 (KBStr2Num): Renamed to chewing_KBStr2Num.
1765 (SetKBType): Removed (in chewing_KBStr2Num).
1766
1767 * include/global.h
1768 (#define CHEWING_API): New macro. Indicate the exact API.
1769 (struct ChewingContext): New structure to wrap ChewingData and
1770 ChewingOutput.
1771
1772 * test/testchewing.c (main),
1773 test/gen_keystroke.c (main): Use the new API.
1774
1775 2005-12-01 Kanru Chen <[email protected]>
1776
1777 * configure.ac:
1778 Bump version to 0.2.91 .
1779 0.2.9x series are experimental versions.
1780
1781 * include/chewingio.h,
1782 include/global.h,
1783 src/chewingio.c:
1784 API change: InitChewing, new API ChewingReset, ChewingSetKBType.
1785 Drop obsolete struct ChewingConf.
1786
1787 2005-11-29 Kanru Chen <[email protected]>
1788
1789 * src/common/key2pho.c
1790 (UintFromPhone) (PhoneFromUint) (PhoneInxFromKey):
1791 Adjust buffer size.
1792
1793 2005-11-26 Hong Jen Yee (PCMan) <[email protected]>
1794
1795 * data/tsi.src:
1796 Merged with new data from libchewing-data project.
1797 Fix a lot of prolems caused by encoding conversion.
1798
1799 * src/chewingio.c (OnKeySpace) (OnKeyDefault) (OnKeyNumlock):
1800 Copy UTF-8 encoded string in chiSymbolBuf to commitStr correctly.
1801
1802 * src/chewingutil.c (WriteChiSymbolToBuf) (MakeOutput):
1803 Copy UTF-8 encoded string in chiSymbolBuf correctly.
1804
1805 * src/hash.c,
1806 src/common/key2pho.c,
1807 src/private.h,
1808 include/hash.h:
1809 Add some conditional compilation and missing header includes for Win32
1810 to enhance portability.
1811
1812 2005-11-11 Kanru Chen <[email protected]>
1813
1814 * data/phone.cin,
1815 data/tsi.src:
1816 Merge phone and phrase from CNS11643.
1817 Source:
1818 http://rt.openfoundry.org/Foundry/Project/Tracker/Display.html?Queue=436&id=15263
1819
1820 * src/char.c (Str2Word):
1821 Only read 6 bytes to wrd_ptr->word avoid buffer overflow.
1822
1823 * src/tools/sort_word.c:
1824 Adjust MAX_WORD from 20000 to 60000.
1825
1826 * include/char.h:
1827 Adjust Word.word size from 10 bytes to 7 bytes.
1828
1829 * include/dict.h:
1830 Adjust PHONE_PHRASE_NUM from 149233 to 162244.
1831
1832 * include/global.h:
1833 Adjust TREE_SIZE from 153251 to 153341.
1834 Adjust MAX_CHOICE from 250 to 567.
1835
1836 2005-11-10 Kanru Chen <[email protected]>
1837
1838 * src/hash.c,
1839 src/tree.c:
1840 Use ueStrLen to count wordSeq.
1841
1842 2005-11-13 Jim Huang <[email protected]>
1843
1844 * src/private.h: Added POSIX's <unistd.h> and Win32's <io.h> include.
1845
1846 * src/hanyupinying.c,
1847 src/hash.c: Move <unistd.h> include to private.h for
1848 platform-indepedency.
1849
1850 2005-11-12 Jim Huang <[email protected]>
1851
1852 * src/hash.c (ReadHash): Add an workaround if illegal data exist in
1853 hash.dat. Merged from win32 branch.
1854
1855 * data/tsi.src: Fix typo in wrong phone of "明基".
1856
1857 2005-11-06 Jim Huang <[email protected]>
1858
1859 * src/tree.c (PhraseIntervalContain) (GetIntersection)
1860 (CheckBreakpoint) (CheckUserChoose) (CheckChoose) (AddInterval)
1861 (FindInterval) (SetInfo) (CompLen) (CompLenDescend) (CompFrom)
1862 (CompRecord) (Discard1) (Discard2) (LoadChar) (OutputRecordStr)
1863 (LoadPhraseAndCountFreq) (IsRecContain) (SortListByFreq) (SaveRecord)
1864 (RecursiveSave) (SaveList) (InitPhrasing) (SaveDispInterval)
1865 (CleanUpMem) (CountMatchCnnct) (ShowList): Marked as static.
1866 (internal_release_Phrase): Internal phrase memory management
1867 routines. Free the one not used to avoid memory leak.
1868 (FindInterval): Make use of internal_release_Phrase.
1869 Patched by Sea Monster <[email protected]>.
1870
1871 * src/char.c (CompUint16) (Str2Word): Marked as static.
1872 (InitChar): Fix the wrong operation when USE_BINARY_DATA enabled.
1873
1874 * src/userphrase.c (DeltaFreq) (LoadOriginalFreq) (LoadMaxFreq)
1875 (UpdateFreq): Marked as static.
1876 (LoadOriginalFreq): Fix memory leak.
1877 (UpdateLifetime): Dummy implementation.
1878 TODO: we should introduce smarter approaches to update lifetime.
1879
1880 * src/dict.c (fgettab) (Str2Phrase),
1881 src/zuin.c (IsDvorakHsuPhoEndKey) (IsHsuPhoEndKey) (IsET26PhoEndKey)
1882 (IsDefPhoEndKey) (EndKeyProcess) (DefPhoInput) (HsuPhoInput)
1883 (ET26PhoInput) (IsPinYingEndKey) (PinYingInput),
1884 src/choice.c (ChangeSelectIntervalAndBreakpoint) (SetAvailInfo)
1885 (ChoiceTheSame) (SetChoiceInfo) (ChangeUserData): Marked as static.
1886
1887 * src/tools/sort_word.c (main),
1888 src/tools/sort_dic.c (main),
1889 src/tools/maketree.c (main): Added conditional compilation to allow to
1890 be used in dat2bin.c
1891
1892 * src/tools/dat2bin.c: New file. Convert text-based dat to binary
1893 form.
1894
1895 * src/tools/Makefile.am: Likewise
1896
1897 * configure.ac: Define AM_CONDITIONAL ENABLE_BINARY_DATA.
1898
1899 2005-11-01 Kanru Chen <[email protected]>
1900
1901 * src/porting_layer/include/sys/plat_win32.h:
1902 Adjustment of API naming.
1903
1904 2005-10-31 Jim Huang <[email protected]>
1905
1906 * src/tree.c (ReadTree),
1907 src/char.c (InitChar),
1908 src/dict.c (InitDict): Fixlet to consistent porting layer API.
1909
1910 * src/Makefile.am: Introduce porting layer library.
1911
1912 * src/porting_layer/src/plat_mmap_win32.c,
1913 src/porting_layer/src/plat_mmap_posix.c: Fixlet to missing include
1914 of config.h, and minor adjustment of API naming.
1915
1916 2005-10-31 Jim Huang <[email protected]>
1917
1918 * src/tree.c: Fixlet to missing include of plat_mmap.h .
1919
1920 * src/dict.c (InitDict): Minor fixes to mmap handle.
1921
1922 * src/porting_layer/include/plat_mmap.h: Use macros to present
1923 FLAG_ATTRIBUTE_READ / FLAG_ATTRIBUTE_WRITE for portability.
1924
1925 * configure.ac: New option --enable-binary-data to indicate the use
1926 experimental binary data support.
1927 Auto-detect $host_os via autoconf.
1928
1929 2005-10-31 Jim Huang <[email protected]>
1930
1931 * src/chewingio.c (DoSelect):
1932 Fix a overrun bug that could crush the lib when we advance the cursor
1933 automatically.
1934 Patched by Sea Monster <[email protected]>.
1935
1936 2005-10-31 Jim Huang <[email protected]>
1937
1938 * src/porting_layer/src/Makefile.am,
1939 src/porting_layer/src/plat_mmap_win32.c,
1940 src/porting_layer/src/plat_mmap_posix.c,
1941 src/porting_layer/Makefile.am,
1942 src/porting_layer/include/sys/plat_posix.h,
1943 src/porting_layer/include/sys/plat_win32.h,
1944 src/porting_layer/include/plat_mmap.h,
1945 src/porting_layer/include/plat_types.h:
1946 New files. Porting layer for libchewing.
1947 Initial implementation of MMap for POSIX and Win32.
1948
1949 * include/global.h (ChewingData::bAutoShiftCur):
1950 New member. Automatically shift the cursor to next phrase.
1951
1952 * src/tree.c
1953 (TerminateTree): New function dedicated to USE_BINARY_DATA.
1954 (ReadTree) (CheckBreakpoint),
1955 src/chewingutil.c (HaninSymbolInput) (HaninSymbolInput),
1956 src/dict.c (TerminateDict) (InitDict),
1957 src/hash.c (ReadHash),
1958 src/zuin.c (EndKeyProcess),
1959 src/choice.c,
1960 src/chewingio.c (DoSelect) (OnKeySpace) (OnKeyDefault) (OnKeyNumlock),
1961 src/char.c (TerminateChar) (InitChar) (TerminateChar):
1962 Merged USE_BINARY_DATA support and Zuin fixes from win32 branch by
1963 PCMan and Sea Monster. Reimplement the original win32 routines with
1964 the porting_layer.
1965
1966 * src/private.h: Introduced the porting layer definitions.
1967 Fixlet to Win32 DEBUG_OUT.
1968
1969 * src/Makefile.am,
1970 configure.ac: Add platform-dependent declarations.
1971 NOTE: UNDER_POSIX is hard-coded at the moment.
1972
1973 2005-10-29 Kanru Chen <[email protected]>
1974
1975 * data/phone.cin,
1976 data/tsi.src:
1977 Convert to using UTF-8 encoding.
1978
1979 * src/common/chewing-utf8-util.c,
1980 include/chewing-utf8-util.h:
1981 New routine to handle utf8 strings.
1982
1983 * src/common/key2pho.c:
1984 PhoneBg2Uint() rename to UintFromPhone, modify Key2Pho() to handle utf8
1985 string.
1986
1987 * src/common/Makefile.am:
1988 Add chewing-utf8-util.c to source list.
1989
1990 * src/hash.c,
1991 src/tree.c,
1992 src/zuin.c,
1993 src/userphrase.c,
1994 src/choice.c,
1995 src/chewingio.c,
1996 src/chewingutil.c:
1997 Modify to using new utf8 routine.
1998
1999 * include/char.h,
2000 include/chewing.h,
2001 include/global.h:
2002 Enlarge buffer size to satisfy utf8 string.
2003
2004 * test/gen_keystroke.c,
2005 test/Makefile.am:
2006 Using ncursesw to show proper utf8 output.
2007
2008 * configure.ac,
2009 test/do-test.c,
2010 test/test-key2pho.c,
2011 test/test-utf8.c,
2012 test/xhtml.xsl,
2013 test/test.css,
2014 test/showhide.js:
2015 Add unit test using 'check' framework.
2016
2017 2005-10-18 Hong Jen Yee (PCMan) <[email protected]>
2018
2019 * libchewing/trunk/src/chewingio.c (OnKeyNumlock):
2020 Fix an error causing buffer overflow.
2021
2022 2005-10-15 Jim Huang <[email protected]>
2023
2024 * src/chewingutil.c (SymbolInput),
2025 src/chewingio.c (OnKeySpace):
2026 Workaround to tricky crash issue.
2027 That is the internal buffer in core library would be overwritten if
2028 the input reaches more then 50 space characters in Chinese input mode,
2029 Patched by: Sea Monster <[email protected]>.
2030
2031 2005-10-15 Jim Huang <[email protected]>
2032
2033 * include/chewingio.h (SetShapeMode) (GetShapeMode): New functions.
2034 Set / get full-shape mode.
2035
2036 * include/global.h (ChewingData): New member data. bFullShape.
2037
2038 * include/chewingutil.h (FullShapeSymbolInput),
2039 src/chewingutil.c (FullShapeSymbolInput): New function.
2040 Provide full-shape symbol input mechanism.
2041
2042 * src/chewingio.c (InitChewing): Initialize bFullShape to
2043 HALFSHAPE_MODE.
2044 (SetShapeMode) (GetShapeMode): Implemented.
2045 (OnKeySpace): Handle space input behavior in full/half-shape mode.
2046 (OnKeyDefault): Likewise.
2047 Patched by: Hong Jen Yee (PCMan) <[email protected]>.
2048
2049 * test/gen_keystroke.c (show_full_shape): New function to update
2050 full/half-shape status.
2051 (main): Add Ctrl-k to emulate Shift (toggle full/half-shape mode) in
2052 test case.
2053
2054 2005-10-13 Jim Huang <[email protected]>
2055
2056 * src/chewingio.c
2057 (addTerminateService): Fix previous compilation error.
2058 (OnKeyDefault):
2059 Support key 'j' / 'k' for paging in selection mode.
2060 Patched by: Tiberius Teng <[email protected]>.
2061
2062 2005-10-10 Jim Huang <[email protected]>
2063
2064 * src/chewingio.c (addTerminateService):
2065 Avoid redundant function pointer.
2066 Reported by: Hong Jen Yee (PCMan) <[email protected]>.
2067
2068 2005-10-10 Jim Huang <[email protected]>
2069
2070 * src/chewingio.c (InitChewing): Remove unsafe atexit.
2071 Note: TerminateChewing is now required.
2072
2073 * test/testchewing.c: likewise.
2074
2075 2005-09-30 Hong Jen Yee (PCMan) <[email protected]>
2076
2077 * src/hanyupinying.c (InitialsMap), (FinalsMap):
2078 Declaration of variables should be put at the beginning of function
2079 definition.
2080
2081 2005-08-08 Jim Huang <[email protected]>
2082
2083 * configure.ac: Bump version to 0.2.7 .
2084
2085 * NEWS,
2086 README: Updated.
2087
2088 2005-08-08 Kanru Chen <[email protected]>
2089
2090 * data/tsi.src:
2091 Add one missing phrase "的". Delete one non-big5 phrase "游錫堃".
2092
2093 2005-08-04 Jim Huang <[email protected]>
2094
2095 * src/hanyupinying.c (InitMap):
2096 Add failback routines.
2097
2098 * src/Makefile.am:
2099 Add CHEWING_DATADIR macro.
2100
2101 * data/Makefile.am:
2102 Remove pinyin.tab from CLEANFILES.
2103
2104 2005-04-07 Jim Huang <[email protected]>
2105
2106 * src/private.h,
2107 src/zuin.c (PinYinInput),
2108 src/chewingio.c (TerminateChewing) (OnKeyDefault):
2109 More improved debug macros.
2110
2111 2005-04-03 Jim Huang <[email protected]>
2112
2113 * src/private.h,
2114 src/tree.c,
2115 src/chewingutil.c,
2116 src/hash.c,
2117 src/zuin.c,
2118 src/chewingio.c:
2119 Improved debug macro definitions.
2120
2121 2005-04-03 Jim Huang <[email protected]>
2122
2123 * include/chewingio.h
2124 src/chewingio.c (TerminateChewing):
2125 New function dedicated to terminate Chewing's internal
2126 routines.
2127
2128 * src/private.h
2129 src/chewingio.c (addTerminateService):
2130 New private function to register the terminate services.
2131
2132 * src/hanyupinying.c (InitMap):
2133 Use addTerminateService instead of atexit.
2134
2135 * src/dict.c (TerminateDict) (InitDict),
2136 src/char.c (TerminateChar) (InitChar),
2137 src/chewingio.c (TerminateDebug) (InitChewing):
2138 Register corresponding terminate routines. (close the
2139 data file I/O stream)
2140 NOTE: atexit(3) is used.
2141
2142 2005-04-03 Jim Huang <[email protected]>
2143
2144 * src/chewingio.c (InitChewing):
2145 Remove improper exit function call, which causes
2146 unexpected closing.
2147
2148 2005-04-03 Jeff Chen <[email protected]>
2149
2150 * src/hanyupinying.c (FinalsMap),
2151 data/pinyin.tab:
2152 Add "uei" and "uen" to PinYing-Zuin Map.
2153
2154 2005-04-02 Jim Huang <[email protected]>
2155
2156 * include/global.h,
2157 src/private.h:
2158 Clean up. Move CompFuncType and ALC to private.
2159
2160 * src/hanyupinying.c (HanyuPinYingToZuin):
2161 Avoid potential compiler-undefined behavior.
2162
2163 2005-04-01 Jeff Chen <[email protected]>
2164
2165 * src/hanyupinying.c
2166 (InitialsMap) (FinalsMap) (FreeMap) (InitMap): New helper function
2167 to construct the PinYin mapping.
2168 (HanyuPinYingToZuin): Add support for customized PinYin table.
2169
2170 * src/zuin.c (IsPinYingEndKey):
2171 Fix "space key to select" of PinYin.
2172
2173 * data/pinyin.tab,
2174 data/Makefile.am:
2175 New PinYin table. Put it in $HOME/.chewing.
2176
2177 2005-03-29 Jim Huang <[email protected]>
2178
2179 * src/hanyupinying.c
2180 (hanyuInitialsMap) (hanyuFinalsMap): Adapt reference table from
2181 Lin Yu-Tang.
2182 (HanyuPinYingToZuin): Add "jo" detection.
2183 Provided by Jeff Chen <[email protected]>.
2184
2185 2005-03-22 Jim Huang <[email protected]>
2186
2187 * include/global.h,
2188 test/testchewing.c,
2189 test/gen_keystroke.c,
2190 src/tree.c,
2191 src/private.h,
2192 src/chewingutil.c,
2193 src/hash.c:
2194 Move redundant debug macro into private.h .
2195
2196 2005-03-21 Jim Huang <[email protected]>
2197
2198 * configure.ac,
2199 autogen.sh:
2200 Use autoheader.
2201
2202 * src/private.h:
2203 New file. Define private internal macros.
2204
2205 * src/tree.c,
2206 src/chewingutil.c,
2207 src/hanyupinying.c,
2208 src/hash.c,
2209 src/zuin.c,
2210 src/chewingio.c:
2211 Adjust DEBUG macro name and include private.h .
2212
2213 2005-03-20 Jim Huang <[email protected]>
2214
2215 * include/global.h (ConfigData):
2216 Add bSpaceAsSelection option.
2217
2218 * src/chewingio.c
2219 (SetConfig): Set bSpaceAsSelection.
2220 Failback to default values if out-of-range.
2221 (OnKeySpace): Perform old space key behavior when
2222 bSpaceAsSelection disabled.
2223
2224 2005-03-20 Jim Huang <[email protected]>
2225
2226 * test/Makefile.am:
2227 Add vcheck to perform valgrind memory checking on the built-in
2228 test suite.
2229
2230 * test/testchewing.c,
2231 src/tree.c:
2232 Minor free routines.
2233
2234 2005-03-18 Kanru Chen <[email protected]>
2235
2236 * src/chewingutil.c (InternalSpecialSymbol) (SymbolChoice):
2237 Don't forget to keep the kbtype value.
2238
2239 2005-02-28 Jim Huang <[email protected]>
2240
2241 * configure.ac:
2242 Bump version to 0.2.6.
2243 Bump ABI major version.
2244
2245 2005-02-27 Kanru Chen <[email protected]>
2246
2247 * include/char.h:
2248 Adjust PHONE_NUM from 1319 to 1320.
2249
2250 2005-02-25 Kang-min Liu <[email protected]>
2251
2252 * src/chewingutil.c,
2253 src/zuin.c:
2254 More HanYu PinYing support routines.
2255
2256 2005-02-24 Kanru Chen <[email protected]>
2257
2258 * src/chewingio.c
2259 (OnKeyESC): Remove unused string made by SemiSymbolInput when
2260 press ESC.
2261 (OnKeyCtrlNum): Should not call MakeOutputAddMsgAndCleanInterval.
2262
2263 2005-02-23 Jim Huang <[email protected]>
2264
2265 * include/chewingio.h,
2266 include/global.h,
2267 include/chewingutil.h,
2268 include/hanyupinying.h,
2269 include/dict.h,
2270 include/zuin.h,
2271 src/chewingutil.c,
2272 src/hash.c,
2273 src/chewingio.c:
2274 Bump copyright date.
2275
2276 2005-02-20 Kang-min Liu <[email protected]>
2277
2278 * include/global.h (ConfigData):
2279 Add an extra field 'hsuSelKeyType' to indicate
2280 the two different kind of hsu-keyboard selection key.
2281
2282 2005-02-19 Jim Huang <[email protected]>
2283
2284 * src/hash.c (ReadHash):
2285 Apply the patch from Mike FABIAN <[email protected]> to
2286 prevent $HOME environment variable from getting changed.
2287
2288 2005-02-19 Kang-min Liu <[email protected]>
2289
2290 * include/hanyupinying.h,
2291 src/hanyupinying.c,
2292 include/global.h,
2293 include/zuin.h:
2294 Experimental feature -- HanYu PinYing Keyboard layout.
2295
2296 2005-02-08 Kanru Chen <[email protected]>
2297
2298 * data/tsi.src:
2299 Add missing phrase(編輯器).
2300
2301 * include/dict.h,
2302 include/global.h:
2303 Adjust PHONE_PHRASE_NUM from 130000 to 149233.
2304 TREE_SIZE from 149339 to 153251.
2305 Avoid SegFault.
2306
2307 2005-01-29 Kanru Chen <[email protected]>
2308
2309 * src/chewingio.c (OnKeyShiftSpace):
2310 Rename SpaceSymbolInput to SemiSymbolInput since SpaceSymbolInput
2311 did not exist anymore.
2312
2313 2005-01-01 Kang-min Liu <[email protected]>
2314
2315 * include/chewingio.h
2316 include/chewingutil.h,
2317 src/chewingio.c,
2318 src/chewingutil.c:
2319 Add the facility to input symbols.(Ctrl-0 and Ctrl-1)
2320 Make the NumLock keypad work just right
2321
2322 2004-12-28 Jim Huang <[email protected]>
2323
2324 * include/dict.h:
2325 Adjust PHONE_PHRASE_NUM from 120000 to 130000.
2326 Avoid SegFault.
2327 Reported by: Wei-zhong Yang <[email protected]>
2328
2329 2004-12-28 Jim Huang <[email protected]>
2330
2331 * configure.ac,
2332 README:
2333 Bump version to 0.2.5.
2334 Update the status of integration.
2335
2336 2004-12-26 Jim Huang <[email protected]>
2337
2338 * deabin/README.Debian,
2339 README,
2340 libchewing.spec.in:
2341 Update web information.
2342
2343 2004-12-19 Kang-min Liu <[email protected]>
2344
2345 * libchewing/data/tsi.src:
2346 Merge SpaceChewing's frequency tweaking from zonble.
2347
2348 2004-12-12 Kang-min Liu <[email protected]>
2349
2350 * libchewing/trunk/src/zuin.c:
2351 Special handle for space key (Indeed very special one).
2352 Un-break the situation that OnKeySpace() is not called,
2353 hence the Candidate window doesn't show up, because
2354 ZUIN_NO_WORD is returned.
2355
2356 2004-10-13 Jim Huang <[email protected]>
2357
2358 * src/tools/sort_word.c,
2359 src/tools/sort_dic.c,
2360 src/tools/maketree.c,
2361 src/tools/Makefile.am:
2362 Remove redundant macro, definition, and typedef.
2363 Make use of src/common.
2364
2365 2004-10-13 Jim Huang <[email protected]>
2366
2367 * remove-autotool.sh,
2368 src/tools/Makefile.am,
2369 src/Makefile.am,
2370 trunk/configure.ac,
2371 trunk/autogen.sh:
2372 Adjust autotool for newly-added src/common.
2373
2374 * src/key2pho.c,
2375 src/common,
2376 src/common/key2pho.c,
2377 src/common/Makefile.am:
2378 Move key2pho.c from src to src/common.
2379
2380 2004-10-07 Jim Huang <[email protected]>
2381
2382 Tag 0.2.4 stable release as libchewing_production.
2383
2384 2004-10-05 Jim Huang <[email protected]>
2385
2386 * configure.ac:
2387 Bump version to 0.2.4.
2388 Bump ABI major version.
2389
2390 2004-10-04 Jim Huang <[email protected]>
2391
2392 * test/gen_keystroke.c (show_userphrase),
2393 src/hash.c (ReadHash):
2394 bzero is deprecated, use memset in new programs.
2395
2396 2004-10-03 Kanru Chen <[email protected]>
2397
2398 * src/chewingutil.c
2399 (WriteChiSymbolToBuf):
2400 Workaround to avoid different initialization behavior among
2401 Win32 and Unix-like OSs.
2402
2403 2004-09-29 Jim Huang <[email protected]>
2404
2405 * configure.ac:
2406 Revert. Don't bother CFLAGS even if debugging is disabled.
2407
2408 2004-09-06 Kuang-che Wu <[email protected]>
2409
2410 * test/Makefile.am:
2411 Fix automake error message about += before any = operation.
2412
2413 * autogen.sh:
2414 Respect to autotools environment variable for using different
2415 versions of autotools.
2416 Avoid the use of pushd and popd because tranditional /bin/sh
2417 doesn't have them.
2418
2419 2004-08-31 Kanru Chen <[email protected]>
2420
2421 * include/global.h (ConfigData):
2422 Add bAddPhraseForward option.
2423
2424 * src/chewingio.c
2425 (SetConfig): Set bAddPhraseForward.
2426 (OnKeyCtrlNum) (OnKeyEnter): Make them work correctly when
2427 bAddPhraseForward disabled.
2428
2429 2004-08-31 Kanru Chen <[email protected]>
2430
2431 * test/gen_keystroke.c,
2432 testchewing.c:
2433 Make use of OnKeyShiftLeft, OnKeyShiftRight.
2434
2435 2004-08-30 Jim Huang <[email protected]>
2436
2437 * scripts/cvsup-tsi-src.sh:
2438 Automatically cvs checkout libtabe, and generate tabe-tsi.src.
2439 Use it as ./scripts/cvsup-tsi-src.sh in top directory.
2440
2441 * scripts/gen-tabe-diff.sh:
2442 Generate the diff between existing tsi.src and tabe-tsi.src.
2443 Use it as ./scripts/gen-tabe-diff.sh in top directory.
2444
2445 2004-08-30 Kanru Chen <[email protected]>
2446
2447 * include/global.h:
2448 Enlarge TREE_SIZE from (112500) to (149339).
2449 * include/dict.h:
2450 Enlarge PHONE_PHRASE_NUM from (94000) to (120000).
2451
2452 * src/tree.c (TreeType tree): Marked as extern.
2453
2454 * src/hash.c (ReadHash): Initialize hash table.
2455
2456 * src/choice.c (TreeType tree): Declare its size as TREE_SIZE.
2457
2458 * data/tsi.src:
2459 Update tsi.src to latest version.
2460
2461 2004-08-30 Jim Huang <[email protected]>
2462
2463 * src/chewingio.c (CheckAndResetRange): marked as static.
2464 (DoSelect): New helper function for valid word selection.
2465 (OnKeySpace): Adapt DoSelect.
2466
2467 2004-08-23 Jim Huang <[email protected]>
2468
2469 * include/zuin.h,
2470 src/key2pho.c,
2471 src/chewingutil.c:
2472 Add Dvorak Hsu keyboard layout from SpaceChewing.
2473
2474 * src/zuin.c
2475 (IsDvorakHsuPhoEndKey): New helper function to check Dvorak Hsu
2476 key sequence.
2477 (IsHsuPhoEndKey): Introduce Dvorak Hsu keyboard layout.
2478
2479 * src/chewingio.c
2480 (dvorak_convert): New helper function to handle Dvorak <--> Qwerty
2481 keyboard layout.
2482 (OnKeyDefault): Introduce Dvorak Hsu keyboard layout.
2483
2484 2004-08-20 Jim Huang <[email protected]>
2485
2486 * include/chewingio.h,
2487 src/chewingio.c
2488 (OnKeyShiftLeft) (OnKeyShiftRight) (OnKeyShiftSpace): New functions.
2489 Introduce Hanin style support from SpaceChewing.
2490 (CheckAndResetRange): Check the boundary of ChewingData instance.
2491
2492 * include/chewingutil.h (SymbolChoice):
2493 New function. Provide generic symbol choice routine.
2494
2495 * src/chewingutil.c (SymbolChoice) (SpaceSymbolInput):
2496 New functions.
2497
2498 * include/global.h (struct ChewingData) (struct ChewingOutput):
2499 New members, PointStart and PointEnd. Necessary information for
2500 Hanin style.
2501
2502 * src/zuin.c (HsuPhoInput):
2503 Fix phonetic index in Hsu keyboard, and do fuzzy "g e" to "j e"
2504 convertion.
2505
2506 * src/choice.c
2507 (SetChoiceInfo): Make sure users' phone sequence was allocated
2508 and set already.
2509 (ChoiceEndChoice): Check if it's a symbol before return to the
2510 old cursor and Chinese symbol cursor position.
2511
2512 * autogen.sh:
2513 Remove automake cache.
2514
2515 2004-08-17 Jim Huang <[email protected]>
2516
2517 * test/testchewing.c,
2518 test/gen_keystroke.c:
2519 Use Ctrl-B to switch English/Chinese mode to avoid screen
2520 usage.
2521
2522 2004-08-09 Kanru Chen <[email protected]>
2523
2524 * configure.ac:
2525 Updated to avoid removing wrong CFLAGS.
2526
2527 Reported by: Palatis <[email protected]>.
2528
2529 2004-08-09 Kanru Chen <[email protected]>
2530
2531 * Doxyfile.in,
2532 configure.ac,
2533 Makefile.am:
2534 Added file Doxyfile.in, use 'make docs' to generate docs.
2535
2536 2004-08-07 Jim Huang <[email protected]>
2537
2538 * libchewing.spec.in,
2539 configure.ac,
2540 Makefile.am:
2541 RPM spec contributed by Shiva Huang <[email protected]>.
2542
2543 2004-08-06 Jim Huang <[email protected]>
2544
2545 * include/chewing.h:
2546 New file. Include all Chewing headers here.
2547 Add extern chewing_lifetime symbol.
2548
2549 * src/hash.c,
2550 src/userphrase.c:
2551 Rename lifetime to chewing_lifetime.
2552
2553 * test/testchewing.c,
2554 test/gen_keystroke.c:
2555 Use brief include and write instructions for user-
2556 defined phrase addition.
2557
2558 2004-08-05 Jim Huang <[email protected]>
2559
2560 * chewing.pc.in,
2561 configure.ac,
2562 Makefile.am:
2563 Support pkg-config.
2564
2565 2004-08-04 Jim Huang <[email protected]>
2566
2567 * src/chewingio.c:
2568 Introduce new enviornment variable CHEWING_DEBUG to
2569 point out the file to put debug information.
2570
2571 2004-08-04 Kanru Chen <[email protected]>
2572
2573 * Makefile.am:
2574 Add entry 'install-manpages'.
2575
2576 2004-08-04 Jim Huang <[email protected]>
2577
2578 * configure.ac:
2579 Bump version to 0.2.3.
2580
2581 2004-08-04 Jim Huang <[email protected]>
2582
2583 * test/gen_keystroke.c,
2584 test/testchewing.c:
2585 Implement user phrase addition and some fancy rendering.
2586
2587 2004-08-04 Kanru Chen <[email protected]>
2588
2589 * src/choice.c (SetAvailInfo):
2590 Fix wrong nAvail increase.
2591
2592 2004-08-04 Jim Huang <[email protected]>
2593
2594 * test/gen_keystroke.c,
2595 test/testchewing.c:
2596 Support input behavior of SpaceChewing.
2597 Add space key for selecting candidate phrases.
2598
2599 2004-08-03 Kanru Chen <[email protected]>
2600
2601 * data/tsi.src:
2602 Add mising zuin symbols to avoid unexpected problems.
2603
2604 2004-08-03 Jim Huang <[email protected]>
2605
2606 * src/choice.c (ChangeSelectIntervalAndBreakpoint):
2607 Perform boundary check.
2608
2609 2004-08-03 Jim Huang <[email protected]>
2610
2611 * src/chewingio.c:
2612 Fix debug routines.
2613
2614 * src/choice.c:
2615 Do available candidate phrases initialization.
2616
2617 Reported by: Kanru Chen <[email protected]>
2618
2619 2004-08-03 Jim Huang <[email protected]>
2620
2621 * test/.cvsignore,
2622 test/Makefile.am,
2623 test/gen_keystroke.c,
2624 test/testchewing.c:
2625 Limit the prefix path test suite only ought to use,
2626 the hash data included.
2627
2628 2004-08-03 Kanru Chen <[email protected]>
2629
2630 * test/gen_keystroke.c,
2631 test/testchewing.c:
2632 Remove unused variables.
2633 Use .dat files in data.
2634
2635 * data/Makefile.am:
2636 Generate .dat files when make all.
2637
2638 2004-08-03 Jim Huang <[email protected]>
2639
2640 * src/chewingio.c (OnKeyDefault):
2641 Fix the wrong ignoring key handler behavior.
2642
2643 2004-08-03 Kanru Chen <[email protected]>
2644
2645 * test/gen_keystroke.c,
2646 test/testchewing.c:
2647 Fix some bugs.
2648
2649 2004-08-02 Jim Huang <[email protected]>
2650
2651 * test/Makefile.am:
2652 Better test generation routines.
2653
2654 * test/testchewing.c,
2655 test/gen_keystroke.c:
2656 Add missing lifetime.
2657
2658 * test/README:
2659 Brief usage.
2660
2661 2004-08-02 Kanru Chen <[email protected]>
2662
2663 * test/gen_keystroke.c,
2664 testchewing.c,
2665 test.txt,
2666 README:
2667 Initial built-in test suite.
2668
2669 2004-07-31 Jim Huang <[email protected]>
2670
2671 * include/chewingio.h,
2672 src/chewingio.c (OnKeySpace) (OnKeyCtrlOption):
2673 New function. Make use of space key for most
2674 operations, Eten special symbol input included.
2675
2676 * include/chewingutil.h,
2677 src/chewingutil.c
2678 (SpecialEtenSymbolInput): New function.
2679 Introduce Eten special symbols.
2680 (SpecialSymbolInput): Move its routines to InternalSpecialSymbol.
2681
2682 * src/hash.c:
2683 Make lifetime with extern modifier.
2684
2685 2004-07-31 Jim Huang <[email protected]>
2686
2687 * include/hash.h,
2688 src/hash.c:
2689 Initial support for MacOSX.
2690
2691 2004-07-29 Kanru Chen <[email protected]>
2692
2693 * src/tools/sort_dic.c:
2694 Fix the broken encoding.
2695
2696 2004-07-23 Kanru Chen <[email protected]>
2697
2698 * include/chewingio.h:
2699 Add some comment.
2700
2701 2004-07-21 Kanru Chen <[email protected]>
2702
2703 * configure.ac:
2704 Fix --disable-debug option, remove '-g' flag.
2705
2706 2004-07-20 Jim Huang <[email protected]>
2707
2708 * configure.ac:
2709 Add --enable-debug support and detection for doxygen.
2710
2711 2004-07-20 Jim Huang <[email protected]>
2712
2713 * include/char.h,
2714 include/chewingutil.h,
2715 include/global.h,
2716 include/userphrase.h,
2717 include/chewingio.h,
2718 include/dict.h,
2719 include/hash.h,
2720 include/zuin.h:
2721 Indent and remove the "GOING" naming not to be misunderstood.
2722
2723 2004-07-19 Kanru Chen <[email protected]>
2724
2725 * include/chewingio.h,
2726 include/global.h,
2727 include/hash.h,
2728 include/userphrase.h,
2729 include/zuin.h,
2730 src/char.c,
2731 src/chewingio.c,
2732 src/chewingutil.c,
2733 src/choice.c,
2734 src/hash.c,
2735 src/tree.c,
2736 src/userphrase.c,
2737 src/zuin.c,
2738 src/tools/maketree.c,
2739 src/tools/sort_dic.c:
2740 Add some doxygen format comments and modify
2741 all C++ style comments(//) to C style comments(/**/).
2742
2743 2004-07-17 Jim Huang <[email protected]>
2744
2745 * README:
2746 Add keyboard support information entries.
2747
2748 * TODO:
2749 For developers only. Please write down plans
2750 and on-going note here.
2751
2752 2004-07-17 Kanru Chen <[email protected]>
2753
2754 * debian/shlibs.local:
2755 Updated Debian package information.
2756
2757 * include/zuin.h,
2758 src/chewingio.c,
2759 src/key2pho.c:
2760 Add Dvorak keyboard support.
2761
2762 2004-07-17 Jim Huang <[email protected]>
2763
2764 * src/tools/maketree.c,
2765 src/tools/sort_dic.c,
2766 src/tools/sort_word.c:
2767 Indent coding style.
2768
2769 2004-07-06 Jim Huang <[email protected]>
2770
2771 * src/char.c,
2772 src/chewingutil.c,
2773 src/dict.c,
2774 src/key2pho.c,
2775 src/userphrase.c,
2776 src/chewingio.c,
2777 src/choice.c,
2778 src/hash.c,
2779 src/tree.c,
2780 src/zuin.c:
2781 Indent and do more comments against the core.
2782
2783 2004-07-06 Kanru Chen <[email protected]>
2784
2785 * debian/changelog,
2786 debian/libchewing0-dev.dirs,
2787 debian/libchewing0-dev.install,
2788 debian/libchewing-dev.dirs,
2789 debian/libchewing-dev.install:
2790 Updated Debian package information.
2791
2792 2004-07-05 Jim Huang <[email protected]>
2793
2794 * autogen.sh,
2795 configure.ac,
2796 Makefile.am,
2797 src/tools/Makefile.am,
2798 src/Makefile.am,
2799 data/Makefile.am:
2800 Adapt autotoolized patch from
2801 Kanru Chen <[email protected]>
2802
2803 * COPYING: Specify LGPL.
2804 * debian: Debianized information.
2805
2806 2004-05-27 Jim Huang <[email protected]>
2807
2808 * src/hash.c: refactor its data structure.
2809 * src/chewingio.c: fix memory leak and fix syntax compatibility.
2810 * src/char.c: wide scope support.
2811 * key2pho.c: fix syntax compatibility.
2812 * data/tsi.src: fix some typo and errors.
2813
2814 2004-03-25 Jim Huang <[email protected]>
2815
2816 * Initial release of libchewing.