轉載-linux-wine下中文的配置方案

來源:互聯網
上載者:User

標籤:sys   man   utf8   mfa   shell   中文   desktop   ica   reg   

原文連結:http://forum.ubuntu.org.cn/viewtopic.php?t=290155

wine下中文的配置方案
步驟:
1. 初始設定
運行 winecfg,把類比的 Windows 系統設定為 Windows XP 或者 Windows 2000。
2. 準備字型
為了讓 Windows 應用程式看上去更美觀,所以需要 Windows 下面的字型。
由於我已經將 simsun.ttc 複製到 /usr/share/fonts/windows/ 目錄中了。所以我只需要在
~/.wine/drive_c/windows/Fonts/ 目錄中為 simsun.ttc 建立一個符號串連:
cd ~/.wine/drive_c/windows/Fonts(如果不是Fonts那可能是fonts)
ln -s /usr/share/fonts/windows/simsun.ttc simsun.ttc
ln -s /usr/share/fonts/windows/simsun.ttc simfang.ttc
建立一個 simfang.ttc 是許多 Windows 應用預設使用 simfang.ttc 字型。
3. 修改 ~/.wine/system.reg
裝好字型後,還要修改一下 Wine 的註冊表設定,指定與字型相關的設定:
gedit ~/.wine/system.reg
(一定要使用 gedit 或其他支援 gb2312/utf8 編碼的編輯器修改這些檔案,否則檔案中的中文
可能變亂碼)
搜尋: LogPixels
找到的行應該是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
將其中的:
"LogPixels"=dword:00000060
改為:
"LogPixels"=dword:00000070
搜尋: FontSubstitutes
找到的行應該是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
將其中的:
"MS Shell Dlg"="Tahoma"
"MS Shell Dlg 2″="Tahoma"
改為:
"MS Shell Dlg"="SimSun"
"MS Shell Dlg 2″="SimSun"
4. 修改 ~/.wine/drive_c/windows/win.ini
gedit ~/.wine/drive_c/windows/win.ini
在檔案末尾加入:
[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13
5. 最關鍵的一步,網上很多文章中沒有提到的一步──把下面的代碼儲存為zh.reg,然後終
端執行regedit zh.reg。
代碼:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"
好了好了,之後 你會發現中文是多麼的美麗。。。
這個連kugoo的亂碼也解決了

轉載-linux-wine下中文的配置方案

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.