快捷搜索:   nginx

轻松设置Wine程序的中文显示

    一般情况下,ubuntu 软件仓库里 wine 的版本比较旧,例如在写这篇文章时,ubuntu 7.10 官方源里的 wine 版本是 0.9.46,而最新的已经是 0.9.49 了,所以有必要使用其他的源来安装最新的 wine。

  添加 wine 官方源

    wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -

  For Ubuntu Gutsy (7.10):

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list

  For Ubuntu Feisty (7.04):

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list -O /etc/apt/sources.list.d/winehq.list

  For Ubuntu Edgy (6.10): *不支持 64 位*

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/edgy.list -O /etc/apt/sources.list.d/winehq.list

  For Ubuntu Dapper (6.06): *不支持 64 位*

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/dapper.list -O /etc/apt/sources.list.d/winehq.list

  For Debian Etch (4.0):

  sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/etch.list -O /etc/apt/sources.list.d/winehq.list

  安装最新的 wine
  sudo apt-get update
  sudo apt-get install wine

  设置 wine

  在安装完成后,先不要运行 wine 来模拟程序,因为 wine 需要进行一些必要的设置,运行

  winecfg

  点 “Audio” 选项卡,按照下图设置,其中 “Sound Drivers” 处需要根据自己的情况来选择合适的驱动,可以按旁边的 “Test Sound” 按钮测试是否成功。

  Google 搜索或到 windows xp 的 Fonts 目录下,把 simsun.ttc (即宋体)复制到 ~/.wine/drive_c/windows/fonts

  把下列内容另存为 fonts.reg,保存到 ~/.wine/ 目录下


  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"

导入上一步保存的 fonts.reg
  
  regedit ~/.wine/fonts.reg

  好了,中文显示基本上没有问题了,并且可以用 scim 输入法输入中文。

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论