# Hyphenation for german words wanted

I am currently working on a german document. While proof-reading I noticed a lot of places where the hyphenation is not correct. My current solution to this problem is to separate the word in question manually, e.g.

Donaudampfschiffahrtsgesellschaftskapitän


becomes

Don\-au\-dampf\-schiff\-fahrts\-ge\-sell\-schafts\-ka\-pi\-tän.


But I have to do this for every occurence using search and replace. Is there another way, like a central dictionary mechanism I have not heard of yet? Maybe with an integration for an editor like Notepad++ or Atom that autosuggests hyphenized words?

I am using \usepackage[T1]{fontenc} as suggested here: How to get proper German hyphenation?

I am also using \usepackage[ngerman]{babel} but this does not solve the issue.

• Doesn't \hyphenation{Don-au-dampf-schiff-fahrts-ge-sell-schafts-ka-pi-tän} work? – Przemysław Scherwentke Sep 22 '16 at 15:01
• It does. But I was wondering if there is a possibility to generate a user-defined dictionary in one central place. Or even contribute to the dictionary that is used. I guess this would be in the babel package, right? – Michael S. Sep 22 '16 at 15:03
• If I use the Rechtschreibung Donaudampfschifffahrtsgesellschaftskapitän (with three f's), I get Do-nau-dampf-schiff-fahrts-ge-sell-schafts-ka-pi-tän – egreg Sep 22 '16 at 15:03
• I get the correct hyphenation Do-nau-dampf-schiff-fahrts-ge-sell-schafts-ka-pi-tän when using ngerman + babel. So you should show a concrete and complete example where hyphenation fails for you. – Ulrike Fischer Sep 22 '16 at 15:34
• Gentlesea: couldn't you just create a file with all the hyphenation commands and input it into your tex file? – riddleculous Sep 23 '16 at 8:44

With an current MiKTeX 2.9 (version 3.14159265-2.6-1.40.18 (MiKTeX 2.9.6400 64-bit)) I can compile the following MWE without problems with the hyphenation. Fernbedienung is hyphenated as it should be ...

MWE:

\documentclass{scrbook}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}

\begin{document}

\parbox{0pt}{\hspace{0pt}Donaudampfschifffahrtsgesellschaftskapitän. Fernbedienung}

\end{document}


and its result:

Won't \hyphenation{Don-au-dampf-schiff-fahrts-ge-sell-schafts-ka-pi-tän} once at the beginning of the document be sufficient?