Forum How do I...?

avoid hyphenation for reserved words?

oliof
Hi,

I have a text with a name that contains a hyphen; I'd like to do hyphenation normally except for that name. Is there a way to tell prince not to hyphenate certain words?

I have prince-hyphenate-after and prince-hyphenate-before set, but these properties are ignored for words that come with their own hyphens.
mikeday
You could replace the hyphen with a non-breaking hyphen, like this:
body {
    prince-text-replace: "Huntington-Smythe" "Huntington\2011 Smythe"
}

However I think in general we need to add an exceptions mechanism to handle this situation.
oliof
Thanks Mike, that works for now.

EDIT: A sopft hyphen would be \00AD