MozTW 討論區

各項 Mozilla 相關軟體與技術討論
現在的時間是 2024-04-16, 16:50

所有顯示的時間為 UTC + 8 小時





發表新文章 回覆主題  [ 12 篇文章 ] 
發表人 內容
文章發表於 : 2004-11-17, 07:16 
Execuse me for not writing in Chinese, but this is the problem I'm trying to sort out. I just installed mozilla-1.8a4 and firefox 1.0 on my toshiba satellite laptop, which is running RedHat 9 (kernel 2.4.20-8) with both traditional/simplified truetype fonts (文鼎,楷/宋) installed in /usr/share/fonts/zh_{TW|CN}/TrueType. The problems are:

for Mozilla-1.8a4:
- it doesn't see those chinese ttf fonts, the edit->preference->fonts only allows me choose from fix sized fonts, for traditional chinese (zh_TW) its defaut to "default-ming-big5-0"
- however, the good news is it handles chinese utf-8 page alright, I've no problem reading moztw.org's pages, and can bring up xcin for inputing big5 text.

for Firefox 1.0:
- the problem is exactly reversed. Firefox displays Chinese using "AR PL" (文鼎) fonts out of the box. Looks great, but...
- the bad news is it can not handle most utf-8 encoded pages, such as google search result wih chinese, mztw.org.
- can not invoke xcin input module with "ctrl+alt_shift"

I've browsed around www.mozilla.org and moztw.org, but failed to see any useful tip/faq/discussions so far. Can someone help? Thanks a lot!

--- Simon


回頂端
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040927
  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-17, 07:41 
離線
[MozTW 版主群]
頭像

註冊時間: 2003-09-15, 03:47
文章: 1016
來自: Taiwan
Mozilla and Firefox may be compiled differentl7. I'm guessing that one of your versions supports GTK2+XFT, and another doesn't, so they choose different fonts. Try getting a GTK2 build of Mozilla: ftp.mozilla.org/.../mozilla1.7.3/contrib/mozilla-i686-pc-linux-gnu-1.7.3-gtk2+xft.tar.gz

(note: I think there's some stability problem with GTK2 builds)


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-17, 09:04 
離線

註冊時間: 2004-07-03, 22:04
文章: 444
請問您用的 mozilla 是 moztw.org 下載的中文版嗎?看你的版本是 en_US ,或許是這個問題。
另外請問 firefox 的 unicode 字型如何設定?

題外話,中文字型的問題很建議您安裝 firefly 製做的 new sung ,包含繁簡中文的字集,以及五組點陣小字,並且是自由軟體。
http://cle.linux.org.tw/fonts/FireFly/


回頂端
Mozilla/5.0 (X11; U; Linux i686; zh-TW; rv:1.7) Gecko/20040616
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-18, 02:25 
Thanks. I've tried both Mozilla 1.7.3 (built with GTK2, as dwx suggested) and
mozilla-1.8a4.zh-TW.linux-i686-gtk1.tar.gz. And also installed Firefly's ttf fonts with xttmgr, did "xttmgr --rebuld" as well.

Now, this is what I've learned so far:
- All Mozilla (1.2.1, 1.7, 1.8a4, 1.8a4 zh-TW) and Firefox 1.0 can see all my chinese truetype fonts.
- Mozilla 1.8a4 which uses GTK1.2 (1.8a4, both us-en, zh-tw build) renders ttf more ragged (no anti-aliasing?), as opposed to browsers use GTK2 (Mozilla-1.7.3 and Firefox 1.0); see the snaps shot enclosed.
- However, its GTK2 built browsers (which also use glib2/fontconfig/truetype libs) don't handle some utf-8 encoded Chinese pages correctly, such as http://forum.moztw.org/ and chinese google search results.
- GTK2 browsers also don't work with xcin (ie. ctrl+alt+space doesn't work)

Is there any kind FAQ or HOWTO documents explain all this difference between GTK1 and GTK2? And how do you make xcin work with GTK2 built browsers?

Thanks a lot.

--- Simon


附加檔案:
檔案註釋: snapshot of mozilla-1.7
moz17.png [84.26 KiB]
被下載 932 次
檔案註釋: snapshot of mozilla-1.8a4
moz18.png [47.5 KiB]
被下載 898 次
回頂端
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040927
  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-18, 02:36 
離線
[MozTW 版主群]

註冊時間: 2004-08-28, 10:26
文章: 657
Did you try firefly's patches??

http://firefly.idv.tw/setfont-xft/patches/

_________________
http://dken.blogspot.com/
圖檔
圖檔


回頂端
Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-18, 08:48 
離線

註冊時間: 2004-07-03, 22:04
文章: 444
關於使用 gtk 的版本沒有 anti-alias (AA),我不知道為什麼,不過我的所有 gtk 程式都沒有 AA ,不知道是不是 gtk 1.2 原本就不支援,或者是需要特別設定。但是在瀏覽器上中文小字沒有 AA 反而比較清楚,個人感覺。

而 gtk2 對 unicode 應該不會比 gtk1.2 糟,也許是字型設定的問題。我的 Firefox 把 unicode 字型設為 AR PL New Sung ,也就是我提到的 firefly 字型,可以正常顯示,這個字型內有 utf-8 的編碼。

最後 xcin 的問題,不知道你其他的 gtk2 程式能不能用 xcin ?我想是 locale 的設定,可以在 x 環境的命令列執行 xcin ,看看有什麼錯誤訊息。不過我現在都用 gcin ,您也可以試試:
http://www.csie.nctu.edu.tw/~cp76/gcin/


回頂端
Mozilla/5.0 (X11; U; Linux i686; zh-TW; rv:1.7) Gecko/20040615 Firefox/0.9
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-19, 00:40 
Thanks for your input.

to dken:
about firefly's patches. Not knowing which patch should I apply, and in what sequence. I'm a bit weary to apply those patches and may have to back them out if they don't work? Can you point me to more docs explain them?

to axcid:
- my locale is LC_CTYPE=zh_TW.Big5 and rest are en_US.utf8
and from what I can tell, Firefox/Mozilla takes my traditional chinese font setting for utf8 encoding, not from setting for Unicode. and only GTK2 built broswers have problem with "some" chinese utf8 pages, such as forum.moztw.org, the other pages of moztw.org seems fine.
- I installed gcin. does it has pinyin input module?
- tested a few GTK2 built applications (Mozilla/Firefox/Gedit), none can invoke xcin/gcin. Looks ctrl+space is been eaten?

Thanks again, folks!

--- Simon


回頂端
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040927
  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-19, 01:37 
離線

註冊時間: 2003-12-10, 01:07
文章: 20
Firefly 新宋字型 deb 檔安裝
參考 http://b2d.tnc.edu.tw/ 2004/10/20的新聞


回頂端
Mozilla/5.0 (X11; U; Linux i686; zh-TW; rv:1.7) Gecko/20040615 Firefox/0.9
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-19, 15:50 
離線

註冊時間: 2004-07-03, 22:04
文章: 444
Anonymous 寫:
- my locale is LC_CTYPE=zh_TW.Big5 and rest are en_US.utf8
and from what I can tell, Firefox/Mozilla takes my traditional chinese font setting for utf8 encoding, not from setting for Unicode. and only GTK2 built broswers have problem with "some" chinese utf8 pages, such as forum.moztw.org, the other pages of moztw.org seems fine.
- I installed gcin. does it has pinyin input module?
- tested a few GTK2 built applications (Mozilla/Firefox/Gedit), none can invoke xcin/gcin. Looks ctrl+space is been eaten?


您提到的字形問題,既然只有部份 utf8 pages 有問題,或許跟個別字形的設定有關。也許是 forum.moztw.org 指定的某個字形,在您系統上沒有正確的中文字形對應。純粹猜測。

中文輸入如果除了 gtk2 其他環境都沒問題,我想可以試試這樣:
在輸入 Field 按滑鼠右鍵,選 Input Methods -> X Input Method
我之前用 gnome 2.4 就碰到這樣的問題。如果還是沒解決,還是要在 X Win 開 terminal 執行 xcin/gcin ,看錯誤訊息才容易調整。其實不同 distribution 的設定都有些差異,不知道您用哪套系統?

pinyin 是注音還是用羅馬拼音去拼?如果是後者應該沒有。


回頂端
Mozilla/5.0 (X11; U; Linux i686; zh-TW; rv:1.7) Gecko/20040616
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-20, 07:16 
I think I found out the culprit that causes GTK2 built Mozilla browser not recognizing chinese utf8 pages: if a page doesn't have "lang=zh-tw" attribute in <html> tag, my Firefix1.0 won't display it correctly, i.e.
<html lang="zh-tw">
is a must have.

Is this a tunable feature or what?

I'm runing on RedHat9 distribution, with KDE desktop.

>中文輸入如果除了 gtk2 其他環境都沒問題,我想可以試試這樣:
在輸入 Field 按滑鼠右鍵,選 Input Methods -> X Input Method

My right mouse selection are those usual "Undo/Redo/..." crap. How do I change this? GTK2 applications' not corporating with xcin seems to be an old problem, at least for RedHat9. Has anyone figured out a solution?

Thanks again.

--- Simon


回頂端
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040927
  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-20, 09:35 
離線

註冊時間: 2004-07-03, 22:04
文章: 444
* 然後把 Mozilla/Firefox 的語言設定改成 zh-tw 在最上面
* 把系統上的 locale ,包括 LANG, LC_XXX ,全部都寫成 zh_TW.Big5
試試有沒有改善, 當然這樣整個系統就變成全中文。
另外我說的右鍵選單,在 FF 裡一定找不到那個選項的,但是 gedit/gnome-terminal 我記得都有,先用這些測試看看能不能用。在 rh9 的 gtk2.2 我也碰過這種問題,我記得我只有 LC_MESSAGES 不是 zh_TW.Big5 ,輸入法就不會動。不過我現在用的 debian gtk2.4 沒有這樣的情形,也許系統升級就可以解決。不過還是先設定最上面那兩個,不必為這個升級系統。

ps. 好像離題愈來愈多了,咱們換個地方吧?


回頂端
Mozilla/5.0 (X11; U; Linux i686; zh-TW; rv:1.7) Gecko/20040616
 個人資料  
引用回覆  
 文章主題 :
文章發表於 : 2004-11-20, 13:53 
xacid 寫:
* 把系統上的 locale ,包括 LANG, LC_XXX ,全部都寫成 zh_TW.Big5


呵呵,成了!
設定 LANG=zh_TW.Big5
Firefox 便可正確顯示繁體中文,xcin也可以啟動啦。

謝謝諸位大德指教。

--- Simon


回頂端
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
  
引用回覆  
顯示文章 :  排序  
發表新文章 回覆主題  [ 12 篇文章 ] 

所有顯示的時間為 UTC + 8 小時


誰在線上

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


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
cron
Powered by phpBB® Forum Software © phpBB Group
正體中文語系由 竹貓星球 維護製作
© moztw.org, Mozilla Foundation
MozTW,Mozilla 台灣社群