Skip to content

Commit 6c71fe7

Browse files
committed
Import upstream release 1.4.6
1 parent 92a18dc commit 6c71fe7

File tree

485 files changed

+7413
-2482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

485 files changed

+7413
-2482
lines changed

Changelog.html

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,24 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2-
<html lang="zh-tw"><head><meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>Changlog</title><meta content="Edward Liu" name="author"></head>
3-
<body>** UTF-8 encoding **<br>1.4.5:<br>- <a href="http://hyperrate.com/thread.php?tid=8588#8588">symbol-table 改用</a> coolcd 提供的最新的<br>- <a href="http://hyperrate.com/thread.php?tid=8610#8610">新增關閉 ctrl-alt- 切換輸入法</a>,echo 0 &gt; ~/.gcin/config/gcin-enable-ctrl-alt-switch<br>- caleb 的許多 patch: &nbsp;包含 F11,F12 kasumi 新增詞的功能<br>- <a href="http://hyperrate.com/thread.php?tid=8956">倉頡五cj5</a>更新至 2008年馬來西亞倉頡之友的版本。<br>- <a href="http://hyperrate.com/thread.php?tid=9012#9012">anthy日文輸入</a>在連續輸入兩個子音(如tt, dd...etc.)時應出現促音"っ"。以 shift-Left/Right 調整 segment 長度,cursor 會跑到第一個的問題。<br>- keypad 現在可以用來選擇注音了。<br>-
2+
<html lang="zh-tw"><head>
3+
4+
5+
6+
7+
8+
9+
10+
11+
12+
<meta content="text/html; charset=UTF-8" http-equiv="content-type"><title>Changlog</title><meta content="Edward Liu" name="author"></head><body>** UTF-8 encoding **<br>1.4.6:<br>- <a href="http://hyperrate.com/thread.php?tid=10751">gtab 自動選字時</a>,手動選字的問題。<br>- gtab shift+字母 改成大寫輸出<br>- <a href="http://hyperrate.com/edit.php?parent=10789">.cin 現在支援</a> %flag_auto_select_by_phrase 選項,有了這個表示產生的 .gtab 會自動啟用由詞庫自動選字。gcin-setup 中可以強迫開啟or關閉。<br>- <a href="http://hyperrate.com/thread.php?tid=10871#10871">gtab 詞庫自動選字</a>現可以用空白鍵送出編輯區的內容。<br>- <a href="http://hyperrate.com/thread.php?tid=10848#10848">pcmanx 無法顯示編輯區</a>的問題。<br>- mozilla thunderbird&nbsp;選單不正常的問題。<br>- 詞音注音選字時也可以用 mouse 選擇了。<br>- 如果 gtab 有指定保留大小寫的選項,則 CapsLock 輸入英數的功能自動關閉。<br>- 左鍵 click tray icon 改成中英切換,因為現在比較少用簡體輸出。有時候沒辦法使用 ctrl-space 切換中英時就可以用。簡體輸出改到右鍵的選單裡。<br>- GTK 程式 focus out 時現在會自動送出編輯區的內容。QT的程式目前還不行。<br>- <a href="http://hyperrate.com/thread.php?tid=11210">Eclipse</a> double click 會導致空白的問題。<br>- 在tray icon 按 Shift + 左鍵可以列出所有輸入法的選單。<br>- 詞音按 [] 輸入「」【】現在不需要按空白鍵。最好把詞庫中的 [] 定義的「」… 刪除會比較好用。<br>- 詞音空白鍵設定成送出空白,現在會先送出編輯區的內容 <br>- Windows win32 port,由於 Visual Studio 的關係,不得不大部份的 file rename 成 .cpp,在 Linux 仍然是用 c language 去 compile。<br>- gtab 詞庫選字新增 Escape 手動斷詞。<br>- Linux gcb 改成用改變時 callback 的方式,不再使用每隔3秒鐘抓的方式。<br>- <a href="http://hyperrate.com/thread.php?tid=14567#14567">winlin 回報</a>的 gtab 詞庫選字的 bug<br>- 新增 <b>ziyawu</b> 的 30x30 metal icon,<a href="http://hyperrate.com/thread.php?tid=919">歡迎大家繼續貢獻 icons &amp; 投票</a><br>- 新增關閉鈴聲的選項<br>- <a href="http://hyperrate.com/thread.php?tid=14989#14989">gtab 使用編輯區時</a>,同音字查詢選擇的字不會加到最後的問題。<br>
13+
- qt3 現在內定是不 compile 了,有需要的自己去 compile 或找舊版的 .rpm<br>
14+
- 由英數切到中文輸入狀時會自動把詞音自己的英數關閉。<br>
15+
- 現在每個程式的各自的詞音英數/中文輸入狀態現在可以保留了。<br>
16+
- 按 backspace 清除 gtab 編輯區現在會自動關閉 window 了。<br>
17+
- gtab 編輯區自動選字現在會依使用的次數選擇使用最多次的字,也會把選單內的字依使用次數排序。<br>
18+
- 在<a href="http://hyperrate.com/thread.php?tid=15472"> firefox click URL,menu 會自動下拉的問題</a><br>
19+
- Keypad +-*/ 在 gtab 編輯區模式會進入 buffer 了。<br>
20+
- <a href="http://hyperrate.com/thread.php?tid=11534">按「`」查詢同音字時,有時會遮住拆碼區</a><br>
21+
<br>1.4.5:<br>- <a href="http://hyperrate.com/thread.php?tid=8588#8588">symbol-table 改用</a> coolcd 提供的最新的<br>- <a href="http://hyperrate.com/thread.php?tid=8610#8610">新增關閉 ctrl-alt- 切換輸入法</a>,echo 0 &gt; ~/.gcin/config/gcin-enable-ctrl-alt-switch<br>- caleb 的許多 patch: &nbsp;包含 F11,F12 kasumi 新增詞的功能<br>- <a href="http://hyperrate.com/thread.php?tid=8956">倉頡五cj5</a>更新至 2008年馬來西亞倉頡之友的版本。<br>- <a href="http://hyperrate.com/thread.php?tid=9012#9012">anthy日文輸入</a>在連續輸入兩個子音(如tt, dd...etc.)時應出現促音"っ"。以 shift-Left/Right 調整 segment 長度,cursor 會跑到第一個的問題。<br>- keypad 現在可以用來選擇注音了。<br>-
422
<a href="http://hyperrate.com/thread.php?tid=9284">根據 caleb 的實驗結果</a>,gcin link gtk_bug_fix.so 含有空的
523
gdk_window_freeze_toplevel_updates_libgtk_only
624
gdk_window_thaw_toplevel_updates_libgtk_only,這樣就可以避免 gcin 空白視窗(小灰)無法顯示的問題。<br>- 在 gcin-setup 更改設定後 gcb 會重新 create 的問題。<br>- configure 新增 --use_gcb=N 選項<br>-

IC.c renamed to IC.cpp

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3131
static IC *ic_list = (IC *)NULL;
3232
static IC *free_list = (IC *)NULL;
3333

34-
static IC *ic_lists[2];
35-
static IC *free_lists[2];
36-
static int current_IC_index;
37-
38-
// dirty solution
39-
void switch_IC_index(int index)
40-
{
41-
if (index != current_IC_index) {
42-
ic_lists[current_IC_index] = ic_list;
43-
free_lists[current_IC_index] = free_list;
44-
45-
ic_list = ic_lists[current_IC_index];
46-
free_list = free_lists[current_IC_index];
47-
48-
current_IC_index = index;
49-
}
50-
}
51-
34+
void move_IC_in_win(ClientState *cs);
5235

5336
static void free_IC_list(IC *list)
5437
{
@@ -245,15 +228,15 @@ StoreIC(IC *rec, IMChangeICStruct *call_data)
245228
rec->pre_attr.bg_pixmap = *(Pixmap*)pre_attr->value;
246229

247230
else if (Is (XNFontSet, pre_attr)) {
248-
int str_length = strlen(pre_attr->value);
231+
int str_length = strlen((char *)pre_attr->value);
249232

250233
if (rec->pre_attr.base_font != NULL) {
251234
if (Is (rec->pre_attr.base_font, pre_attr))
252235
continue;
253236
XFree(rec->pre_attr.base_font);
254237
}
255-
rec->pre_attr.base_font = malloc(str_length + 1);
256-
strcpy(rec->pre_attr.base_font, pre_attr->value);
238+
rec->pre_attr.base_font = (char *)malloc(str_length + 1);
239+
strcpy(rec->pre_attr.base_font, (char *)pre_attr->value);
257240

258241
} else if (Is (XNLineSpace, pre_attr))
259242
rec->pre_attr.line_space = *(CARD32*)pre_attr->value;
@@ -289,15 +272,15 @@ StoreIC(IC *rec, IMChangeICStruct *call_data)
289272
rec->sts_attr.bg_pixmap = *(Pixmap*)sts_attr->value;
290273

291274
else if (Is (XNFontSet, sts_attr)) {
292-
int str_length = strlen(sts_attr->value);
275+
int str_length = strlen((char *)sts_attr->value);
293276

294277
if (rec->sts_attr.base_font != NULL) {
295278
if (Is (rec->sts_attr.base_font, sts_attr))
296279
continue;
297280
XFree(rec->sts_attr.base_font);
298281
}
299-
rec->sts_attr.base_font = malloc(str_length + 1);
300-
strcpy(rec->sts_attr.base_font, sts_attr->value);
282+
rec->sts_attr.base_font = (char *)malloc(str_length + 1);
283+
strcpy(rec->sts_attr.base_font, (char *)sts_attr->value);
301284
} else if (Is (XNLineSpace, sts_attr)) {
302285
rec->sts_attr.line_space= *(CARD32*)sts_attr->value;
303286
}
@@ -331,13 +314,15 @@ void CreateIC(IMChangeICStruct *call_data)
331314
return;
332315
}
333316

317+
#if 0
334318
void
335319
DestroyIC(call_data)
336320
IMChangeICStruct *call_data;
337321
{
338322
DeleteIC(call_data->icid);
339323
return;
340324
}
325+
#endif
341326

342327
void SetIC(IMChangeICStruct * call_data)
343328
{

IC.h

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2626
Author: Hidetoshi Tajima([email protected]) Sun Microsystems, Inc.
2727
2828
******************************************************************/
29+
#if UNIX
2930
typedef struct {
3031
XRectangle area; /* area */
3132
XRectangle area_needed; /* area needed */
@@ -49,41 +50,50 @@ typedef struct {
4950
CARD32 line_space; /* line spacing */
5051
Cursor cursor; /* cursor */
5152
} StatusAttributes;
53+
#endif
5254

5355
typedef struct {
54-
Window client_win; /* client window */
56+
#if WIN32
57+
HWND client_win; /* client window */
58+
#else
59+
Window client_win; /* client window */
60+
#endif
5561
INT32 input_style; /* input style */
5662
GCIN_STATE_E im_state;
5763
gboolean b_half_full_char;
5864
gboolean fixed_pos;
5965
gboolean b_gcin_protocol; // TRUE : gcin FALSE: XIM
6066
gboolean b_raise_window;
61-
int fixed_x, fixed_y;
62-
int in_method;
67+
gboolean use_preedit;
68+
gboolean tsin_pho_mode;
69+
short fixed_x, fixed_y;
70+
short in_method;
6371
XPoint spot_location; /* spot location, relative to client window */
6472
} ClientState;
6573

6674

6775
typedef struct _IC {
76+
#if USE_XIM
6877
CARD16 id; /* ic id */
78+
#endif
6979
Window focus_win; /* focus window */
7080
char *resource_name; /* resource name */
7181
char *resource_class; /* resource class */
82+
#if USE_XIM
7283
PreeditAttributes pre_attr; /* preedit attributes */
7384
StatusAttributes sts_attr; /* status attributes */
74-
85+
#endif
7586
ClientState cs;
7687
struct _IC *next;
7788
} IC;
7889

79-
8090
typedef struct {
8191
char *server_locale;
8292
char xim_server_name[32];
8393
Window xim_xwin;
94+
#if USE_XIM
8495
XIMS xims;
96+
#endif
8597
} DUAL_XIM_ENTRY;
8698

87-
extern DUAL_XIM_ENTRY *pxim_arr;
88-
8999
Window get_ic_win(IC *rec);

IMdkit/doc/API.text

100755100644
File mode changed.

IMdkit/include/IMdkit.h

100755100644
File mode changed.

IMdkit/include/Xi18n.h

100755100644
File mode changed.

IMdkit/include/XimProto.h

100755100644
File mode changed.

IMdkit/lib/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ all: libXimd.a
1414
libXimd.a: $(OBJ)
1515
ar cr $@ $(OBJ)
1616
ranlib $@
17-
make -C ../..
1817

1918
.c.o:
2019
$(CC) $(CFLAGS) $(INC) $<

Makefile

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)