scim-pinyin is an SCIM IMEngine module for smart pinyin.