Windows GoldenDict Tibetan

2014-12-04~2018-10-18

問題

在 win7 環境使用 GoldenDict,藏文顯示都沒有問題,但是在 Win8 環境下,使用 GoldenDict 藏文詞典,如果使用 StarDict 格式的《翻譯名義大集》,右邊辭典內容的藏文不能正確顯示;如果使用 Babylon 格式的翻譯名義大集,右邊辭典內容的藏文可以正確顯示,但是若將藏文複製到左上方的搜尋文字框,則藏文不能正確顯示,左下方的詞條清單也不能正確顯示藏文。

註:以上《翻譯名義大集》來自 http://buddhistinformatics.ddbc.edu.tw/glossaries/download.php#mahavyutpatti

解決辦法

從以下網址下載最新版的 GoldenDict:

https://github.com/goldendict/goldendict/wiki/Early-Access-Builds-for-Windows

2017.8.9 看到的最新版是 1.0.1, 不必做下面的動作就可以正常顯示藏文。

截至 2014.12.4 為止的最新版是 2014.11.27 的 1.5.0-RC-442-g83397ce。(這不是正式版)

解決右方辭典內容的藏文顯示問題:在 %APPDATA%\GoldenDict 路徑下建立一個 article-style.css,檔案內容如下:

body {
  font-family: Microsoft Himalaya;
}

AppData 的路徑在哪裡?請參考:http://www.computerperformance.co.uk/win8/windows8-appdata_folder.htm

解決左方搜尋框及詞條清單的藏文顯示問題:在 %APPDATA%\GoldenDict 路徑下建立一個 qt-style.css,檔案內容如下:

MainWindow #searchPane #translateLine, MainWindow #searchPane #wordList
{
  font-family: "Microsoft Himalaya";
}

注意:windows 檔案總管可能隱藏副檔名,如果檔名變成 qt-sylte.css.txt 就不會有作用。

如果辭典有分群組,例如藏文相關的辭典群組設為 Tibetan,那麼 qt-style.css 就要設定如下:

MainWindow #searchPane #translateLine[currentGroup="Tibetan"], MainWindow #searchPane #wordList[currentGroup="Tibetan"] 
{
  font-family: "Microsoft Himalaya";
}

參考資料

GoldenDict Wiki FAQ: http://goldendict.org/wiki/index.php/FAQ