[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

debian chinese issue / [PATCH] po 修正



大家好,


前几天灌了 debian 入电脑, 有点事项想反应一下. :-)


(1) zh_TW/ zh_CN 的英文字体大了一点, 如果可以将他变小一点就好了.
(由 size 16 改为 size 12). 这会另不少使用 gtk 的application (mozilla,
xmms 等等) 在世决上好看得多.

我修了的 gtkrc fontset 如下:

style "gtk-default-zh-tw" {
        fontset =
	"-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
	 -taipei-*-medium-r-normal--16-*-*-*-*-*-big5-0,\
         -*-*-medium-r-normal--16-*-*-*-*-*-big5-0,*-r-*"
}

style "gtk-default-zh-cn" {
       fontset =
       "-adobe-helvetica-medium-r-normal--12-*-*-*-*-*-iso8859-1,\
        -*-*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0,*-r-*"
}


(2) XftConfig 没有 arphic truetype 的 anti-alias entry, 不把 arphic 放大
也不可以看清楚. 可以参考一下我的 ~/.xftconfig (从 Mandrake 的Xftconfig
抄过来的) :

dir "/usr/share/fonts/truetype/arphic"

# chinese gb2312
match any family == "Kaiti"     edit family =+ "AR PL KaitiM GB";
match any family == "Sungti"    edit family =+ "AR PL SungtiL GB";
match any family == "sans"      edit family =+ "Sungti";
match any family == "serif"     edit family =+ "Sungti";
# chinese big5
match any family == "Kaiti"     edit family =+ "AR PL KaitiM Big5";
match any family == "Mingti"    edit family =+ "AR PL Mingti2L Big5";
match any family == "sans"      edit family =+ "Mingti";
match any family == "serif"     edit family =+ "Mingti";



弄了这 entry, licq 的 font dialog box 也可以认得出有 arphic font 了
(本来认不到的).

可以劳烦 XFree86 的 maintainer 加上这些 entry 吗? 如果有用者没有 install
arphic (我想大部份 debian 用家都不是中国人吧... :-) 这是不要紧的, 因为如
果 XFree86 找不到 dir "/path/to/font", 他会自动 skip 这个目录. 其实除了
arphic, 可以问问日本和韩国的 debian 用家, 弄个 XftConfig 的 entry
好不好. :-)

(3) 自从 (之前这部机跑 mandrake cooker) install 了 debian, /usr/local 的 
OpenOffice.org 就不懂认出有 arphic font 了 ... 记得用 mandrake 时在 
XF86Config 里面加了一句 dir "/usr/share/fonts/ttf/big5" (mandrake arphic
的 fontpath), 不过我就不太清楚是否因没有这个 entry 另到 OpenOffice.org 找不到
中文 arphic font.

(4) 我觉得 cpanel 有点地方可以改一改 / 修一修, 不过已经跟 maintainer 在
private email 说过了, 那我就不多题啦. :-)

(5) xcin 在视觉上可以改一改. 尤其是我觉得 XCIN_HIDE 十分好用, 不知可
否在 xcinrc enable by default 呢? :-) 还有 xcinrc 的 default font 大了
一点, 如果修为 size 16 就好看得多了! 除了这些我还改了一点东西, 我已把
xcinrc attached 了, 大家可以参考一下. :-)

(6) 也将修好的 WindowMaker / WPrefs po 档案 attached 了, 现时的 po 是
过不到 msgfmt, 麻烦看看我的 po patch 有没有错, 没的就麻烦将他 apply 
罗. :-)



	-- Geoff.
	
-- 
| This message was re-posted from debian-chinese-big5@lists.debian.org
| and converted from big5 to gb2312 by an automatic gateway.
--- zh_TW.Big5.po	2002-08-03 10:20:28.000000000 +1000
+++ WindowMaker.zh_TW.Big5.po	2002-08-02 22:21:03.000000000 +1000
@@ -519,8 +519,8 @@
 "is docked in the same positions on the other workspaces and the Clip is not "
 "full in some workspace."
 msgstr ""
-"某些图示无法设成无所不在。请确认在其他工作区同一个位置上没有其他图示停靠且在?"
-"Y些工作区的回纹针未满。"
+"某些图示无法设成无所不在。请确认在其他工作区同一个位置上没有其他图示停靠且在"
+"某些工作区的回纹针未满。"
 
 #: ../src/dock.c:529
 msgid ""
@@ -528,8 +528,8 @@
 "docked in the same position on the other workspaces and the Clip is not full "
 "in some workspace."
 msgstr ""
-"图示无法设成无所不在。请确认在其他工作区同一个位置上没有其他图示停靠且在某些?"
-"u作区的回纹针未满。"
+"图示无法设成无所不在。请确认在其他工作区同一个位置上没有其他图示停靠且在某些"
+"工作区的回纹针未满。"
 
 #: ../src/dock.c:556
 msgid "Workspace Clip"
@@ -1142,13 +1142,13 @@
 msgid ""
 "There are more than one WORKSPACE_MENU commands in the applications menu. "
 "Only one is allowed."
-msgstr "应用程式选单中有超过一个 WORKSPACE_MENU 命令。只允许\一个。"
+msgstr "应用程式选单中有超过一个 WORKSPACE_MENU 命令。只允许一个。"
 
 #: ../src/rootmenu.c:834
 msgid ""
 "There are more than one WINDOWS_MENU commands in the applications menu. Only "
 "one is allowed."
-msgstr "应用程式选单中有超过一个 WINDOWS_MENU 命令。只允许\一个。"
+msgstr "应用程式选单中有超过一个 WINDOWS_MENU 命令。只允许一个。"
 
 #: ../src/rootmenu.c:839
 msgid "Window List"
@@ -1502,11 +1502,11 @@
 #: ../src/winspector.c:1121
 #, c-format
 msgid "Inspecting  %s.%s"
-msgstr "检阅\  %s.%s"
+msgstr "检阅  %s.%s"
 
 #: ../src/winspector.c:1147
 msgid "Click in the window you wish to inspect."
-msgstr "在你想检阅\的视窗点一下"
+msgstr "在你想检阅的视窗点一下"
 
 #: ../src/winspector.c:1186
 msgid ""
@@ -1620,7 +1620,7 @@
 msgid ""
 "Keep the window over other windows, not allowing\n"
 "them to cover it."
-msgstr "让视窗保持在其他视窗之上,不许\它们覆盖\它。"
+msgstr "让视窗保持在其他视窗之上,不许它们覆盖它。"
 
 #: ../src/winspector.c:1370
 msgid "Keep at bottom (sunken)"
@@ -1682,7 +1682,7 @@
 "of your shortcut configuration."
 msgstr ""
 "当此视窗得到焦点时不要从 Window Maker 结合键盘捷径。\n"
-"这允许\视窗得到所有键盘组合不理会你的捷径设定。"
+"这允许视窗得到所有键盘组合不理会你的捷径设定。"
 
 #: ../src/winspector.c:1436
 msgid "Do not bind mouse clicks"
@@ -1720,7 +1720,7 @@
 msgid ""
 "Do not allow the window to move itself completely\n"
 "outside the screen. For bug compatibility.\n"
-msgstr "不允许\视窗完全移出萤幕。用于错误相容性。\n"
+msgstr "不允许视窗完全移出萤幕。用于错误相容性。\n"
 
 #: ../src/winspector.c:1460
 msgid "Ignore 'Hide Others'"
-- 
| This message was re-posted from debian-chinese-big5@lists.debian.org
| and converted from big5 to gb2312 by an automatic gateway.
--- zh_TW.Big5.po	2002-08-03 10:22:23.000000000 +1000
+++ WPrefs.zh_TW.Big5.po	2002-08-03 10:19:51.000000000 +1000
@@ -1887,11 +1887,11 @@
 
 #: ../../WPrefs.app/WindowHandling.c:366
 msgid "...do not cover icons"
-msgstr "...不要覆盖\图示"
+msgstr "...不要覆盖图示"
 
 #: ../../WPrefs.app/WindowHandling.c:372
 msgid "...do not cover dock"
-msgstr "...不要覆盖\停靠区"
+msgstr "...不要覆盖停靠区"
 
 #: ../../WPrefs.app/WindowHandling.c:381
 msgid "Edge Resistance"
-- 
| This message was re-posted from debian-chinese-big5@lists.debian.org
| and converted from big5 to gb2312 by an automatic gateway.
;
;  Xcin resource file for GNU/Linux
;
;  By T.H.Hsieh.
;

;
;  Directories.
;
(define XCIN_DEFAULT_DIR      "/usr/lib/xcin")
(define XCIN_USER_DIR         ".xcin")

;
;  This defines GUI attribute.
;
(define INDEX_FONT  		"-sony-*-16-*-iso8859-1")
(define FG_COLOR    		"white")
(define BG_COLOR    		"blue")
(define M_FG_COLOR  		"yellow")
(define M_BG_COLOR  		"darkred")
(define ULINE_COLOR		"cyan")
(define GRID_COLOR		"white")
(define X_GEOMETRY  		"45x2+200-1")
(define START_MAINWIN2		"YES")
(define MAINWIN2_GEOMETRY	"27x1+200-1")
(define XCIN_HIDE   		"YES")
(define XKILL_DISABLE		"NO")
(define DISABLE_WM_CTRL		"YES")
(define ICCHECK_DISABLE		"NO")
(define SINGLE_IM_CONTEXT	"NO")
(define IM_FOCUS_ON		"YES")
(define KEEP_POSITION_ON	"NO")
(define DIFF_BEEP		"YES")
(define KEYBOARD_TRANSLATE	"NO")

(define LOCALE	'(zh_TW.Big5 zh_HK.Big5HKSCS zh_CN.GB2312 zh_CN.GBK))

;
;  XIM Input Style Adjustments.
;
(define INPUT_STYLE		'(Root OverTheSpot))
(define OVERSPOT_USE_USRCOLOR	"YES")
(define OVERSPOT_USE_USRFONTSET "YES")
(define OVERSPOT_WINDOW_ONLY	"NO")

;
;  Special Trigger Keys.
;
;(define FKEY_ZHEN		"ctrl space")
;(define FKEY_2BSB		"shift space")
;(define FKEY_CIRIM		"ctrl shift")
;(define FKEY_CIRRIM		"shift ctrl")
;(define FKEY_CHREP		"ctrl alt r")
;(define FKEY_SIMD		"ctrl alt i")
;(define FKEY_IMFOCUS		"ctrl alt f")
;(define FKEY_IMN		"ctrl alt")
;(define FKEY_QPHRASE		"shift alt")

;
;  IM module default resources.
;
(define gen_inp_default
        '((AUTO_COMPOSE         YES)
          (AUTO_UPCHAR          YES)
          (AUTO_FULLUP          NO)
          (SPACE_AUTOUP         NO)
          (SELKEY_SHIFT         NO)
          (SPACE_IGNORE         NO)
          (SPACE_RESET          YES)
          (AUTO_RESET           NO)
          (WILD_ENABLE          YES)
          (SINMD_IN_LINE1       NO)
          (END_KEY              NO)
          (QPHRASE_MODE         0)      ; 1:shift, 2:ctrl, 4:alt, 8:fallback
          (DISABLE_SEL_LIST     "NONE")
	  (KEYSTROKE_REMAP	"NONE")
          (BEEP_WRONG           YES)
          (BEEP_DUPCHAR         NO)
          (TSI_FNAME            "/usr/lib/tabe/tsi.db")
	  (HINT_SELECT		NO)
	  (HINT_TSI		NO)))

(define bimsphone_default
        '((N_SELECTION_KEY      9)
          (SELECTION_KEYS       0)      ; 0: "1234567890", 1: "asdfgjkl;"
          (PAGE_KEYS            5)      ; 1:<> 2:,. 4:(Rt)(Lt)
          (QPHRASE_MODE         1)      ; 1:shift, 2:ctrl, 4:alt, 8:fallback
        ;
        ; This is only valid for "bimsphone*" IM name.
          (AUTO_SELECTION       YES)
          (KEYMAP               0)      ; 0:zozy, 1:et, 2:et26, 3:hsu
        ;
        ; This is only valid for "bimspinyin*" IM name.
          (PINPHO_MAP           "bims_pinyin")
        ;
        ; The following has effect only when AUTO_SELECTION is YES
          (TSI_FNAME            "/usr/lib/tabe/tsi.db")
          (YIN_FNAME            "/usr/lib/tabe/yin.db")
	  (TSI_USERDEF_FNAME	"utsi.db")
	  (YIN_USERDEF_FNAME	"uyin.db")
          (SPACE_SELECTION      NO)
          (PHRASE_SELECTION     YES)
          (N_SELECTION_PHR      4)
        ;
        ; The following has effect only when AUTO_SELECTION is NO
          (AUTO_UPCHAR          YES)))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;  This is the global configuration of the zh_TW.Big5 locale 
;
(define zh_TW.Big5 
  '((DEFAULT_IM		"cj")
    (DEFAULT_IM_MODULE	"gen_inp")
    (DEFAULT_IM_SINMD	"DEFAULT")
    (PHRASE		"default.phr")
    (CINPUT		(cj simplex phone bimspinyin bimsphone chewing
			 array30 jyutping jyutping0 zh_hex))
    (FONTSET		"-sony-*-16-*-iso8859-1,-eten-*-medium-r-*-16-*-big5-0")
    (OVERSPOT_FONTSET	"-sony-*-16-*-iso8859-1,-eten-*-medium-r-*-16-*-big5-0")))
;
;  Here are detailed configuration of each IM (for zh_TW.Big5 locale).
;
(define cj@big5
	'((SETKEY		1)))

(define simplex@big5
	'((SETKEY		2)))

(define phone@big5
	'((SETKEY		3)
	  (END_KEY		YES)
	  (BEEP_DUPCHAR		YES)))

(define jyutping@big5
	'((SETKEY		4)
	  (END_KEY		YES)
      	  (BEEP_DUPCHAR		YES)))

(define bimspinyin@big5
	'((SETKEY		5)
	  (MODULE		"bimsphone")))

(define bimsphone@big5
	'((SETKEY		6)
	  (MODULE		"bimsphone")))

(define chewing@big5
        '((SETKEY		7)
         (KB_TYPE		"KB_DEFAULT")
         (MODULE		"chewing")))

(define array30@big5
	'((SETKEY		8)
      	  (BEEP_DUPCHAR		YES)
	  (DISABLE_SEL_LIST	"w")
	  (KEYSTROKE_REMAP	"t:0xaaba;T:0xaaba;")))

(define jyutping0@big5
	'((SETKEY		9)
	  (BEEP_DUPCHAR		YES)))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;  This is the global configuration of the zh_CN.GB2312 locale 
;
(define zh_CN.GB2312
  '((DEFAULT_IM		"pinyin")
    (DEFAULT_IM_MODULE	"gen_inp")
    (DEFAULT_IM_SINMD	"DEFAULT")
    (PHRASE		"default.phr")
    (CINPUT		(pinyin shuangpin jtcj_gb wubizixing phonegb2
			 array30 zh_hex))
    (FONTSET		"-sony-*-16-*-iso8859-1,-*-medium-r-*-16-*-gb2312.1980-0")
    (OVERSPOT_FONTSET	"-sony-*-16-*-iso8859-1,-*-medium-r-*-16-*-gb2312.1980-0")))
;
;  Here are detailed configuration of each IM (for zh_CN.GB2312 locale).
;
(define pinyin@gb2312
	'((SETKEY		1)
	  (BEEP_DUPCHAR		YES)))

(define shuangpin@gb2312
	'((SETKEY		2)
	  (BEEP_DUPCHAR 	YES)))

(define jtcj_gb@gb2312
	'((SETKEY		3)))

(define phonegb2@gb2312
	'((SETKEY		4)
	  (END_KEY		YES)
	  (BEEP_DUPCHAR		YES)))

(define wubizixing@gb2312
	'((SETKEY		5)))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;  This is the global configuration of the zh_HK.Big5HKSCS locale 
;
(define zh_HK.Big5HKSCS
  '((DEFAULT_IM		"cj")
    (DEFAULT_IM_MODULE	"gen_inp")
    (DEFAULT_IM_SINMD	"DEFAULT")
    (PHRASE		"default.phr")
    (CINPUT             (cj simplex phone bimspinyin bimsphone chewing
			 array30 jyutping jyutping0 zh_hex))
    (FONTSET		"-sony-*-16-*-iso8859-1,-*-*-medium-r-*--16-*-*-*-c-*-big5hkscs-0")
    (OVERSPOT_FONTSET	"-sony-*-16-*-iso8859-1,-*-*-medium-r-*--16-*-*-*-c-*-big5hkscs-0")))
;
;  Here are detailed configuration of each IM (for zh_HK.Big5HKSCS locale).
;
(define cj@big5hkscs
	'((SETKEY		1)))

(define simplex@big5hkscs
	'((SETKEY		2)))

(define phone@big5hkscs
	'((SETKEY		3)
	  (END_KEY		YES)
	  (BEEP_DUPCHAR		YES)))

(define jyutping@big5hkscs
	'((SETKEY		4)
	  (END_KEY		YES)
	  (BEEP_DUPCHAR		YES)))

(define bimspinyin@big5hkscs
	'((SETKEY		5)
	  (MODULE		"bimsphone")))

(define bimsphone@big5hkscs
	'((SETKEY		6)
	  (MODULE		"bimsphone")))

(define chewing@big5hkscs
        '((SETKEY		7)
         (KB_TYPE		"KB_DEFAULT")
         (MODULE		"chewing")))

(define array30@big5hkscs
	'((SETKEY		8)
	  (BEEP_DUPCHAR		YES)
	  (DISABLE_SEL_LIST	"w")
	  (KEYSTROKE_REMAP	"t:0xaaba;T:0xaaba;")))

(define jyutping0@big5hkscs
	'((SETKEY		9)
	  (END_KEY		YES)
	  (BEEP_DUPCHAR		YES)))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
;  This is the global configuration of the zh_CN.GBK locale 
;
(define zh_CN.GBK
  '((DEFAULT_IM		"zh_hex")
    (DEFAULT_IM_MODULE	"gen_inp")
    (DEFAULT_IM_SINMD	"DEFAULT")
    (PHRASE		"default.phr")
    (CINPUT		(zh_hex))
    (FONTSET		"-sony-*-16-*-iso8859-1,-*-medium-r-*-16-*-gbk-0")
    (OVERSPOT_FONTSET	"NONE")))

(define pinyin@gbk
	'((SETKEY		1)
	  (BEEP_DUPCHAR		YES)))

(define shuangpin@gbk
	'((SETKEY		2)
	  (BEEP_DUPCHAR 	YES)))

(define jtcj_gb@gbk
	'((SETKEY		3)))

(define phonegb2@gbk
	'((SETKEY		4)
	  (END_KEY		YES)
	  (BEEP_DUPCHAR		YES)))

(define wubizixing@gbk
	'((SETKEY		5)))

(define array30@gbk
	'((SETKEY		8)
	  (BEEP_DUPCHAR		YES)
	  (DISABLE_SEL_LIST	"w")
	  (KEYSTROKE_REMAP	"t:0xb5c4;T:0xb5c4;")))

;
;  The zh_hex module (zh_hex input method) is a special IM, which can be
;  used in many different encodings.
;
(define zh_hex 
	'((SETKEY		0)
	  (MODULE		zh_hex)
	  (INP_CNAME_big5	"0xa4ba+0xbd58")
	  (INP_CNAME_big5hkscs	"0xa4ba+0xbd58")
	  (INP_CNAME_gb2312	"0xc4da+0xc2eb")
	  (INP_CNAME_gbk	"0xc4da+0xc2eb")
	  (BEEP_WRONG		YES)))
-- 
| This message was re-posted from debian-chinese-big5@lists.debian.org
| and converted from big5 to gb2312 by an automatic gateway.

Reply to: