emdash stops word separation/hyphenation in spanish prose



Hey!

I've been typesetting a novel for a spanish friend of mine and in
spanish typography it's standard, to mark talk/speech/dialogue with an
emdash.

Something like this:

—Hello my friend.
—Hello! So good to see you— he said.

Now the problem is that if a word is connected to an emdash, be it
through textemdash, the unicode sign, the unicode char definition,
xetex seems to be unable to hyphenate the word correctly. I end up
with millions of overfull hboxes because spanish has quite a lot long
words.

Is there a way to tell xetex to treat the emdash in spanish just like
a ?!. and still allow hyphenation of the connected word?

Thanks a lot for any help!
.



Relevant Pages