# Enable IME
SEND_KEY	ON
RESET_CONTEXT

SWITCH_INPUT_MODE	HIRAGANA

# Simple conversion.
SEND_KEYS	ippatsu
EXPECT_PREEDIT	いっぱつ
SEND_KEY	SPACE
EXPECT_IN_ALL_CANDIDATE_WORDS	一発
EXPECT_PREEDIT	一発
SEND_KEY	ENTER

# Conversion with history segment.
SEND_KEYS	kiki
EXPECT_PREEDIT	きき
SEND_KEY	SPACE
EXPECT_IN_ALL_CANDIDATE_WORDS	危機
SUBMIT_CANDIDATE_BY_VALUE	危機
SEND_KEYS	ippatsu
EXPECT_PREEDIT	いっぱつ
SEND_KEY	SPACE
EXPECT_IN_ALL_CANDIDATE_WORDS	一髪
EXPECT_PREEDIT	一髪
SEND_KEY	ENTER

# Insert space after "危機". History segment should be cleared.
SEND_KEYS	kiki
EXPECT_PREEDIT	きき
SEND_KEY	SPACE
EXPECT_IN_ALL_CANDIDATE_WORDS	危機
SUBMIT_CANDIDATE_BY_VALUE	危機
# Insert space.
SEND_KEY	SPACE
SEND_KEYS	ippatsu
EXPECT_PREEDIT	いっぱつ
SEND_KEY	SPACE
EXPECT_IN_ALL_CANDIDATE_WORDS	一発
EXPECT_PREEDIT	一発
SEND_KEY	ENTER
