I'm using 'und/oder' (German for 'and/or') in one of my texts (I know it's not nice :)). Latex separates it 'und/o-der' which is not nice. Using \mbox fixes that problem.
Trying to find a general solution like
\hyphenation{und/oder}
does not work though: 'Improper \hyphenation will be flushed. \hyphenation{und/'.
What would be the correct way to archive this?
Related to this, but somewhat different.

\hyphenation{Clang} \hyphenation{Clang/}. – corvus_192 Apr 10 '20 at 11:48hyphenation{Clang}. I ran into the problem that before a slash, "Clang" was hyphenated as "Clan-g", even though I had specified the custom hyphenation pattern. The problem is that the pattern "Clang" is not applied to "Clang/", so I had to add the rulehyphenation{Clang/}, so that the word is correctly hyphenated before a slash. I was commenting here in case someone else has this issue. – corvus_192 Apr 11 '20 at 14:36\righthyphenmin=1by ahy chance? If not, TeX should never even contemplate hyphenating the word "clang" as "clan-g". (For reference: For English language hyphenation rules, one usually sets\righthyphenmin=3and\lefthyphenmin=2.) – Mico Apr 11 '20 at 15:10righthyphenminto 2 for german (see here). I think latex is counting the slash as a character, so "g/" can be on a new line. – corvus_192 Apr 12 '20 at 16:22