when ... is
彼女は公園を歩いているとき偶然昔の友達と出会った。
She ran into an old friend while walking through the park.
目が覚めているときばかりか眠っているときにもそれが必要だ。
You need it not only when you're awake, but also when you're asleep.
道を歩いているとき、その事故を見た。
I saw the accident while walking down the street.
テーブルについているときは、行儀よくしてもらいたい。
When you're at the table, I'd like you to behave yourself.
通りを歩いているとき、その女性に出くわした。
I ran into that woman while walking down the street.
昼食を食べているとき電話が鳴った。
The phone rang while I was eating lunch.
急いでいるときって、そういうことあるよな。
That kind of thing happens when you're in a hurry, you know.
私が昼食を食べているとき電話が鳴った。
お茶を飲んでいるとき、地震があった。
There was an earthquake while I was drinking tea.
通りを歩いているとき彼はジムに会った。
He ran into Jim while walking down the street.