Adds is_pinyin_compatible and is_zhuyin_compatible functions.
Fixes typo in is_pinyin.