posts - 2, comments - 27, trackbacks - 0, articles - 60
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

          wine中文亂碼的解決方法

          Posted on 2008-10-29 16:38 ZhouFeng 閱讀(401) 評論(0)  編輯  收藏 所屬分類: 轉(zhuǎn)載Linux
          新裝的wine中文全是亂碼,需要修改一下幾個配置文件,找到一篇比較詳細(xì)的配置說明,分享一下:
          “ wine下中文的配置方案
          步驟:

          1. 初始設(shè)置

          運(yùn)行 winecfg,把模擬的 Windows 系統(tǒng)設(shè)置為 Windows XP 或者 Windows 2000。

          2. 準(zhǔn)備字體

          為了讓 Windows 應(yīng)用程序看上去更美觀,所以需要 Windows 下面的字體。

          由于我已經(jīng)將 simsun.ttc 復(fù)制到 /usr/share/fonts/windows/ 目錄中了。所以我只需要在 ~/.wine/drive_c/windows/fonts/ 目錄中為 simsun.ttc 創(chuàng)建一個符號連接:

          cd ~/.wine/drive_c/windows/fonts
          ln -s /usr/share/fonts/windows/simsun.ttc simsun.ttc
          ln -s /usr/share/fonts/windows/simsun.ttc simfang.ttc

          創(chuàng)建一個 simfang.ttc 是許多 Windows 應(yīng)用默認(rèn)使用 simfang.ttc 字體。
          3. 修改 ~/.wine/system.reg

          裝好字體后,還要修改一下 Wine 的注冊表設(shè)置,指定與字體相關(guān)的設(shè)置:

          gedit ~/.wine/system.reg

          (一定要使用 gedit 或其他支持 gb2312/utf8 編碼的編輯器修改這些文件,否則文件中的中文可能變亂碼)

          搜索: LogPixels
          找到的行應(yīng)該是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts]
          將其中的:
          "LogPixels"=dword:00000060

          改為:
          "LogPixels"=dword:00000070

          搜索: FontSubstitutes
          找到的行應(yīng)該是:[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. 最關(guān)鍵的一步,網(wǎng)上很多文章中沒有提到的一步──把下面的代碼保存為zh.reg,然后終端執(zhí)行regedit zh.reg。從Windows目錄下的Fonts里的simsun.ttc復(fù)制到/home/user/.wine/drive_c/windows/fonts里面。
                代碼:
                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"

          之后,中文正常顯示哈哈!


          此文出處:http://blog.chinaunix.net/u1/41660/showart_1146355.html
          主站蜘蛛池模板: 郎溪县| 无极县| 桑日县| 咸阳市| 武义县| 巩留县| 太仆寺旗| 石狮市| 泰宁县| 庄河市| 加查县| 黔西| 马关县| 东至县| 两当县| 类乌齐县| 思茅市| 奉新县| 综艺| 封丘县| 乌什县| 清水河县| 驻马店市| 丰宁| 南昌县| 永福县| 大化| 乌拉特前旗| 渭源县| 邯郸市| 新晃| 怀仁县| 乡宁县| 万安县| 成武县| 增城市| 富顺县| 保康县| 太康县| 利辛县| 林西县|