State transition of a Japanese text input system