Re: chinput 3.0.1-7 unicon-im 3.0.3-3上載
On Fri, Jul 06, 2001 at 12:33:11AM +0800, ygh@debian.org wrote:
> 參考了www.linuxforum.net的huyou和bbs.smth.org的althea的patch, 現在
> chinput的智能拼音支持用戶詞庫, 精確匹配拼音(如果沒有精確匹配在進行模糊
> 匹配). 歡迎測試, 現在智能拼音順手多了.
>
Thanks. Could you also add this patch to scratch my itch? Then I won't
need to patch it myself everytime. It adds a chinput.punct resource to
set default punctuation style b/w Chinese and Western.
--
hashao|疊嶂西馳,萬馬回旋,眾山欲東。正驚湍直下,跳珠倒濺,小橋橫截,缺月初弓。
hashao|老合投閒,天教多事,檢校長身十萬鬆。吾廬小,在龍蛇影外,風雨聲中。
hashao|爭先見面重重。看爽氣朝來三數峰。似謝家子弟,衣冠磊落,相如庭戶,車騎雍容。
hashao|我覺其間,雄深雅健,如對文章太史公。新堤路,問偃湖何日,煙雨蒙蒙。
--
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.
diff -ur -x *.o chinput-3.0.1.orig/resource/Chinput.ad chinput-3.0.1/resource/Chinput.ad
--- chinput-3.0.1.orig/resource/Chinput.ad Fri Jul 6 10:52:14 2001
+++ chinput-3.0.1/resource/Chinput.ad Fri Jul 6 13:00:00 2001
@@ -58,6 +58,10 @@
chinput.dictionary = /usr/lib/unicon/modules/
chinput.inputmethod.gb = ZNPY
chinput.inputmethod.big5 = PY
+
+! Default setting for CHINESE/WESTERN punctuation marks.
+chinput.punct = WESTERN
+
!
! 16 point font set
!
Only in chinput-3.0.1/src/IMdkit/lib: libXimd.a
Only in chinput-3.0.1/src: chinput
diff -ur -x *.o chinput-3.0.1.orig/src/init.c chinput-3.0.1/src/init.c
--- chinput-3.0.1.orig/src/init.c Fri Jul 6 10:52:15 2001
+++ chinput-3.0.1/src/init.c Fri Jul 6 13:00:21 2001
@@ -359,7 +359,7 @@
}
flag_corner = False; //half
- flag_punct = False; //chinese punctuation
+ flag_punct = False; //english punctuation
flag_lock = LOCK_NONE; //encoding not locked
flag_ec = True; //chinese output
flag_english = False; //no english
@@ -481,11 +481,11 @@
flag_client = HZSERVER_AREAMODE_SERVER;
} else if(!mystrcmp(line, "chinput.dictionary")){
strcpy(dict_path, get_value(line));
- } else if(!mystrcmp(line, "chinput.showime")){
- if(!strcmp(get_value(line), "YES"))
- flag_showime = 1;
- else
- flag_showime = 0;
+ } else if(!mystrcmp(line, "chinput.punct")){
+ if(!strcasecmp(get_value(line), "CHINESE"))
+ flag_punct = True;
+ else if(!strcasecmp(get_value(line), "WESTERN"))
+ flag_punct = False;
} else if(!mystrcmp(line, "chinput.font")){
strcpy(font_latin, get_value(line));
} else if(!mystrcmp(line, "chinput.gbfont")){
--
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.
Reply to: