Monday, April 08, 2013

「守護中環」有樣學樣?

今天讀《明報》見到「守護中環」人士的論點,真的嚇了一跳!

話說昨天「真普選聯盟」舉行政制研討會,但因「『守護中環』插言叫囂」(《明報標題》),令研討會腰斬。「愛港之聲」成員陳文廣解釋,「踩場」是因為建制派沒有代表發言。

也許他們認為之前有民主派人士衝擊政府舉辦的咨詢會合理,所以他們便有樣學樣。不過他們也許沒明白一點,就是政府應代表全港人民,但「真普選聯盟」只需要代表某些理念相同的人。

見到這些所謂愛港人士的言論,真的令人不寒而凜。

Sunday, April 07, 2013

Mac OS X 上的中文字體

一直認為,Mac 機上的預設中文字體不太靚。以前亦嘗試過去改善這問題,但總覺仍有所缺。直至最近見過iPhone上的中文字,發覺原來這非必然。

在這裏略略指出解決的方法:
  1. 在較新版本的Mac OS X, 附加了更多的中文字體。不過並非每一隻字體也適合做預設字體。尤其若果經常要處理正體和簡體的中文字,應該選一些字體能正常地同時顯示正簡字。我試過不同的字體,發現Heiti SC, Lantinghei SC和Hiragino Sans GB 效果較好。
  2. Heiti 和Lantinghei 有正體和簡體字的版本。兩者分別不大。但當顯示某些正簡字類似的字,例如「迎」字時,正簡字體便會顯示出相應的寫法。雖然我想用正體字版本,不過正體字體顯示簡體時會有較多間題,所以我選擇了簡體版。而我個人較喜歡Lantinghei SC,所以選了這個。而iPhone 上用的應該是Hiragino Sans GB.
  3. 選了想用的字體,便可用TCFall 去設定。不過該程式較耐冇更新,所以不能選用像Lantinghei SC等較新的字體。解決方法是下載source code, 自行加入新的字體。或直接更改:
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Resources/DefaultFontFallbacks.plist
  4. 在Lantinghei 字體中,我較喜歡Extralight.  所以設定字體時,可以選這個style.  不過縱使選了,有時系統仍會改用Demibold 版本。我相信原因是系統會自動選取較接近medium weight 的字體。
  5. 為了解決上一項間題,我用fontforge(可用brew去安裝)強將extralight 定為medium, 再將demibold定為bold。這樣,系統便會預定用本來Extralight 的版本去顯示中文,而需要顯示粗體時,便會使用Demibold版本。
經一輪修訂,終於轉了一隻自己接受到的中文字體(見下圖)!或者正如TCFall原作者所講,應該寫信到Apple 叫他們重視一下正體字用者的感受。


Adobe Reader Scrolling Slowly on Mac

I found that Adobe Reader scrolls slowly when reading a PDF file, compared to Preview.  After reading some search result, I found that this was caused by some unknown built-in plugins.

To see what plugins have been installed, from the menu click "Adobe Reader"->"About Adobe Plugins".

If you want to check whether the slow scrolling problem is caused by the plugins, you can disable all plugins temporarily by press the shift key when you start the Adobe Reader.

To fix the problem by disabling plugins:

  1. Look for the plugin folder.  It was /Applications/Adobe Reader.app/Contents/Built-in on my computer (Adobe Reader 11.0.02).
  2. Move those culprit plugins out of the folder.  In case, I removed "Checkers.acroplugin" and "PDDom.acroplugin" from the folder.  This may need more experiments to see which plugin really caused the problem.
  3. Restart Adobe Reader.  You should see that the scrolling becomes fast.  
Even disabling the plugins, I still felt that Preview performed faster than Adobe Reader in my case.  However, the latest version of Adobe Reader seems to support more features for commenting.  That's why I still needed to use Adobe Reader sometimes.