[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4779: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4781: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4782: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4783: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
Gentoo Taiwan 討論區 • 檢視主題 - 中文化心得與gcin的問題

中文化心得與gcin的問題

在顯示、輸入、處理中文上遇到什麼困難嗎?

版主: Forums Team

中文化心得與gcin的問題

文章alexwang » 週一 1月 17, 2005 8:12 pm

首先感謝 GOT 的各位,沒有 GOT 的 wiki 和文件的話,現在應該還是只能看中文不能輸入。 :lol:

因為我有一半是依照 GOT 維基百科,一半是依照 Gentoo.org 的 wiki,所以現在其實已經不知道問題出在哪裡了。(汗) 下面簡略說明我的做法,然後還有一兩個問題想請教。

參考文件:
http://gentoo-wiki.com/HOWTO_Make_your_ ... code/utf-8 (英文)
http://wiki.gentoo.org.tw/index.php/X-l10n-guide (GOT中文)

首先在核心加入 File Systems -> Native Language Support -> NLS UTF8 以及 utf8 Default NLS option。這個不在 GOT 文件裡,我猜是因為 GOT 的主題只是utf8『桌面』?

接著設定系統 locale:/etc/env.d/02locales 加入
LANG="en_US.utf8"
LANGUAGE="en_US.utf8"
LC_ALL="en_US.utf8"
我用 en_US 的原因是希望 console 下面照常用英文 (尤其是那些錯誤訊息等等)。

/etc/rc.conf 則是修改:
KEYMAP="-u us"
UNICODE="yes"

最後再改 ~/.bashrc:
if [ $TERM = "linux" ]
then
unicode_start
fi

英文文件就只做到這裡,沒有改用 bash3 (其實是有試過,但是又手癢玩了 depclean 之類的,最後重裝收場。 :oops: )

再來,我先用了原本的 xorg-x11,丟了 Windows XP 裡的 mingliu.ttc 進 /usr/share/fonts/chinese/ 發現 FireFox 可以正常顯示中文。但是為了要用 gcin,所以還是乖乖按照 GOT wiki 寫的去 emerge GOT 的 freetype, fontconfig, xorg-x11, fireflysung (然後刪了 mingliu.ttc)。接下來問題就出現了。

(1) GOT wiki 寫的這篇 裡面用的是 ~/.xprofile 與 UTF-8,但是我一定要用 ~/.xinitrc 然後寫成 utf8 才行,不然不但 gcin 沒反應,一進 gnome 還會跳出 gnome settings daemon 錯誤。

編輯:現在突然又變成要用 UTF-8 了...看來這個 gnome settings daemon 錯誤和 locale 無關的樣子...|||

(2) 為了測試 utf8 vs UTF-8 和 en_US vs zh_TW 各種組合 (雖然我的 locale -a 是沒有大寫的 UTF-8 啦...),結果現在雖然是 ~/.xinitrc export LC_ALL="zh_TW.utf8",卻不會變成中文介面。Gnome 右上角的小時鐘的確是中文顯示,但是本來會顯示中文的左上角,現在再怎樣都只會顯示英文『Applications』『Actions』了。(裡面的選單也只剩英文了。)

(3) gcin 的浮動組字視窗會蓋住現有視窗的左上角。例如現在用 FireFox 就是固定蓋住『檔案』『編輯』那裡。 :? 應該是 OverTheSpot 現在變成 OverTheTopLeft 了。(笑)

目前為止,在 X 裡的中文顯示和輸入已經都沒有問題了。只要修改 ~/.vimrc,就也能在 vim 裡面輸入中文了。(不過我還是習慣無蝦米,好久沒用注音了。 :roll: )
alexwang
 
文章: 15
註冊時間: 週二 1月 11, 2005 6:13 pm

文章scsi » 週二 1月 18, 2005 12:01 am

世界再大,不過是妳我之間的事
:111.gif: 欲使用GOT的ebuild請看
圖檔  
頭像
scsi
 
文章: 1326
註冊時間: 週二 10月 14, 2003 7:49 am

文章alexwang » 週二 1月 18, 2005 3:30 pm

alexwang
 
文章: 15
註冊時間: 週二 1月 11, 2005 6:13 pm

文章scsi » 週二 1月 18, 2005 3:52 pm

世界再大,不過是妳我之間的事
:111.gif: 欲使用GOT的ebuild請看
圖檔  
頭像
scsi
 
文章: 1326
註冊時間: 週二 10月 14, 2003 7:49 am

Re: 中文化心得與gcin的問題

文章paar » 週二 1月 18, 2005 4:38 pm

叫我老帕好了!
圖檔
頭像
paar
 
文章: 1154
註冊時間: 週四 1月 30, 2003 10:53 am
來自: 打狗市

文章alexwang » 週二 1月 18, 2005 5:17 pm

alexwang
 
文章: 15
註冊時間: 週二 1月 11, 2005 6:13 pm

文章scsi » 週三 1月 19, 2005 11:29 am

世界再大,不過是妳我之間的事
:111.gif: 欲使用GOT的ebuild請看
圖檔  
頭像
scsi
 
文章: 1326
註冊時間: 週二 10月 14, 2003 7:49 am

文章alexwang » 週三 1月 19, 2005 12:17 pm

alexwang
 
文章: 15
註冊時間: 週二 1月 11, 2005 6:13 pm

文章betaparticle » 週三 1月 19, 2005 1:24 pm

失去網路的電腦==折斷翅膀的天使。

太難的我不會,不要問我。
betaparticle
 
文章: 312
註冊時間: 週四 1月 01, 2004 12:46 pm

文章scsi » 週三 1月 19, 2005 1:30 pm

世界再大,不過是妳我之間的事
:111.gif: 欲使用GOT的ebuild請看
圖檔  
頭像
scsi
 
文章: 1326
註冊時間: 週二 10月 14, 2003 7:49 am

文章betaparticle » 週三 1月 19, 2005 1:45 pm

失去網路的電腦==折斷翅膀的天使。

太難的我不會,不要問我。
betaparticle
 
文章: 312
註冊時間: 週四 1月 01, 2004 12:46 pm

文章betaparticle » 週三 1月 19, 2005 3:27 pm

失去網路的電腦==折斷翅膀的天使。

太難的我不會,不要問我。
betaparticle
 
文章: 312
註冊時間: 週四 1月 01, 2004 12:46 pm

文章alexwang » 週一 1月 24, 2005 12:00 am

把那個 .so 照指示放進去之後果然就沒問題了。GEdit、Gnome-terminal 兩個都試過正常。不過上面說的這個 README 是在哪裡?我竟然一直找不到…… :shock:
alexwang
 
文章: 15
註冊時間: 週二 1月 11, 2005 6:13 pm

文章betaparticle » 週一 1月 24, 2005 10:20 am

失去網路的電腦==折斷翅膀的天使。

太難的我不會,不要問我。
betaparticle
 
文章: 312
註冊時間: 週四 1月 01, 2004 12:46 pm

文章kevinblue » 週一 4月 11, 2005 5:19 pm

kevinblue
 
文章: 60
註冊時間: 週五 4月 08, 2005 2:52 am


回到 Gentoo 中文化

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 29 位訪客

cron