26039
I'm reading a children's book in Japanese.

In the story, Weasel runs a cake shop, and he's gotten a mysterious order for
a cake - he doesn't know who it's from.

Here's the sentence:

> いったい どんな おばけが ケーキを とりにくるのかしらと、どきどきして いたちさんが まっていると、「やあ、できてる？」

I'm reading that as something like,

> Weasel was waiting, his heart pounding, wondering just who the heck (what
> shape-shifter) was coming to pick up the cake, asking "Well, is it ready?"

Are the と at the end of とりにくるのかしらと and the と at the end of まっていると the quoting
と or the if/when と?

Is the 「やあ、できてる」 something a customer is saying to Weasel (asking if the cake
is ready), or something Weasel is saying to a customer ("are you ready to
order?")

How close is my understanding to the actual Japanese?

Thanks!
CC BY-SA 3.0
2015-07-30T05:43:55.677
26036
2015-07-30T06:52:17.430
2015-07-30T05:47:46.477
10771
question
meaning particle-と
How does this relative clause work?
Your understanding of the sentence looks OK, but as I said this in a comment
above, I have no idea what part you are referring to as a "relative clause". I
see no relative clause used anywhere.

My "answer" below is based on the assumption that the sentence actually ends
where you ended it. In children's stories, punctuations are often "ignored" so
it is sometimes difficult to tell where the sentence ends if a "sentence" is
taken out of the context.

> いったい どんな おばけが ケーキを とりにくるのかしらと、どきどきして いたちさんが まっていると、「やあ、できてる？」

≒

> 『いったい どんな おばけが ケーキを とりにくるのかしら？』 **と** (#1)、どきどきして いたちさんが まっている **と**
> (#2)、「やあ、できてる？」

「 **と** 」(#1) is **_quotative_**. Weasel was thinking (or saying) to himself
『いったい どんな おばけが ケーキを とりにくるのかしら？』. "What kinda monster would come pick up the
cake?"

「 **と** 」(#2) is " ** _when_** " as in "B happens when/while A is happening."
Weasel heard someone say 「やあ、できてる？」 = "Hi! Is it (the cake) ready?"
CC BY-SA 3.0
2015-07-30T06:52:17.430
26039
2015-07-30T06:52:17.430
26036
answer