Kitsuneippiki 狐一匹     Blog 日誌     Projects 項目     About 關於

Review material for Scientific Revolution survey course at JHU

|

I prepared this document for the Scientific Revolution survey exam at JHU. This page was converted to markdown from a docx file using pandoc. Something went wrong with the format. The original document can be downloaded here (docx or PDF).

Comment (0)  Read more

Sort tags and categories by post count or alphabetically in Jekyll without plugins

|

This post introduces a solution of sorting tags and categories by post count or alphabetically in Jekyll without plugins. Since no plugin is needed, this solution works on Github Pages. Preview it on my site. Because liquid template does not support direct sort of array by a value (here the post list in site.tags)’s property, I have to do some dirty work by passing tags’ name and post count, separated by delimiters, to a string and sort the string by post count or alphabetically. Anyway, liquid is good at dealing with strings.

Comment (0)  Read more

Font display problem of Chinese characters in CJK languages

|

Currently, there is no good solution for simultaneous proper display of Chinese characters in Simplified Chinese, Traditional Chinese, Japanese and Korean in web browsers. Google’s Noto CJK (or Adobe’s Source Han 思源字体) covers all CJK languages, but how to display Chinese characters correctly in browsers is another problem yet to solve. In most occasions, this site displays Simplified and Traditional Chinese correctly but not kanji or hanja unless a Japanese or Korean font or a lang HTML attribute is specifically set. The latter may not work.

Comment (0)  Read more