Use quail/PY.el to generate pinyin-hash-table