(附: 建議安裝 playonlinux, 它是一個以wine為基礎的,使用 Python 寫成的圖形化前端,主要用來輔助 Wine 在 Linux 中安裝面向 Windows 平臺的程式和遊戲,如 MS Office 2003。另外,此程式也支援使用 Dosbox 來安裝基於 Dos 的程式和遊戲。)

建議使用playonlinux,並先安裝 playonlinux,因為 playonlinux 可以幫你管理不同的 wine 版本,並且安裝在自己目錄而不是散落在系統目錄內,因此建議不要自己安裝wine,應該使用 playonlinux 來安裝 wine。

如果在 playonlinux 裡安裝 wine 很慢,可以考慮先到網站:https://www.playonlinux.com/wine/ 去下載最新的wine,然後:

1、在主介面點選“安裝”,然後點選 'Install a non-listed program'。     (http://wiki.playonlinux.com/index.php/Manual_Installations

2、An important step

This window is very important : 'What would you like to do before installation ?' (screenshot) because it can allow :

  • 'Use another version of Wine' (a version different from the ones that your POL installation already has).
  • 'Configure Wine' (advanced setting, forcing Set_OS, ...).
  • 'Install some libraries' (by using WineTricks or POL functions).

(後來發現,在playonlinux 裡安裝 wine 慢的不可接受,因此還是通過系統安裝了wine,然後直接點選 'Install a non-listed program' 去安裝source insight,如果彈出讓你安裝 wine mono,可以不理會,繼續安裝source insight)

讓PlayOnLinux 支援中文顯示

1 從windows字型目錄中複製simsun.ttc到"XXXX/drive_c/windows/Fonts"和"/usr/share/fonts/truetype/msfonts"這兩個目錄下面(msfonts為自己建立的目錄)

2 修改Wine的登錄檔

2.1 定位到HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes, 將MS Shell Dlg 及 MS Shell Dlg 2的值資料修改為simsun
2.2 定位到HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts,新建字串項: simsun (TrueType),修改此值資料為 z:\usr\share\fonts\truetype\msfonts\simsun.ttc

Wine和WIneHQ沒什麼區別,舊版和新版的問題。建議安裝新版 winehq。安裝方法:https://vitux.com/how-to-install-wine-on-ubuntu/

1.安裝一些必要元件

winetricks msxml3 gdiplus riched20 riched30 vcrun6 vcrun2005sp1  wenquanyi

2.拷貝字型

下載網盤中(我自己的百度網盤,字型名字叫 source_insight_Fonts.7z )的字型,解壓,移至~/.wine/dosdevices/c:/windows/Fonts目錄

cp Fonts/* ~/.wine/dosdevices/c:/windows/Fonts

3.修改登錄檔

wine regedit

開啟wine登錄檔:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] :

修改如下幾項,沒有的要新建字串:

Microsoft YaHei=MSYH
MS Shell Dlg=SimSun
MS Shell Dlg2=SimSun
Tms Rmn=SimSun
SimHei=SimHei 對於source insight 綠色版,由於3.5 版si有bug,所以不能更改字型及大小,如果下載了有補丁的si,則可以按一下步驟讓有補丁的si執行起來
1, 對於source insight 綠色版,先用
$ wine regedit 綠色.reg
 將其登錄檔項匯入到登錄檔
2,
$ wine ~/.wine/drive_c/Program\ Files/sourceInsight-v3.5.0064/Insight3.exe &

先執行原始版本的si

3,

$ wine ~/.wine/drive_c/Program\ Files/sourceInsight-v3.5.0064/Insight3_en.exe &

再執行能夠修改字型的版本

4,修改字型在: options -> document type 裡修改

5,若要修改stype properties, 則需要將 options -> preferences 裡的 syntax formatting tab 裡的 use only color formatting  uncheck

6, 如果tab顯示為亂碼,可以:開啟工程-->Options -->Document Options對話方塊,把右下角Visible tabs選項前的勾去掉即可。