Implement preedit & bopomofo buffer functions