i have a problem with hyphenation and i could not find a solution.
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[german,ngerman]{babel}
\selectlanguage{ngerman}
\usepackage{cite}
\hyphenation{(Web"~)""Frame"-works}
The error message is:
Description Path Resource Location Type Improper \hyphenation will be flushed. \hyphenation{(Web"~ (followed by: )""Frame"-works}) line 84 Texlipse Build Error Description Path Resource Location Type Not a letter. \hyphenation{( (followed by: Web"~)""Frame"-works}) line 84 Texlipse Build Error I think the problem is the charackter ")"
Edit:
Thanks for all answers:
First i want to achieve the example here: http://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Silbentrennung "~ : Mit dieser Anweisung setzt man einen Bindestrich, an dem nicht getrennt werden soll, beispielsweise bei Wortergänzungen in Klammern: (Haupt"~)""Straße The \hyphenation (Web-)Framework should prevent hyphenation (Web-). Example (Web-
)Framwork is wrong. I know the parenthesis aren't letters for TEX, but see the example it works. So I wonder what is wrong.
So here is the example:
\documentclass[
11pt, % Schriftgroesse 12pt
a4paper, % Layout fuer Din A4
ngerman, % deutsche Sprache, global
oneside, % einseitig
headinclude, % Kopfzeile wird Seiten-Layouts mit beruecksichtigt
BCOR12mm, % Korrektur fuer die Bindung
DIV14, % DIV-Wert fuer die Erstellung des Satzspiegels, siehe scrguide
fleqn, % fleqn: Glgen links (statt mittig)
%draft, % Keine Bilder in der Anzeige, overfull hboxes werden angezeigt
appendixprefix, %berschriften des Anhangs +"Anhang"
%chapterprefix, %berschriften der Kapitel +"KAPITEL"
abstracton,
pdftex %Ueberschrift Zusammenfassung einschalten
]{scrreprt}
\usepackage[german,ngerman]{babel}
\selectlanguage{german}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\hyphenation{(Web"~)""Frame"-works}
\begin{document}
(Web-)Frameworks asdasd (Web-)Frameworks asd (Web-)Frameworks (Web-)Frameworks
(Web-)Frameworks asdsada (Web-)Frameworks asd (Web-)Frameworks (Web-)Frameworks
(Web-)Frameworks asdasdasd (Web-)Frameworks (Web-)Frameworks (Web-)Frameworks
(Web-)Frameworks asdasdas (Web-)Frameworks (Web-)Frameworks
\end{document}



germanand hence the next line. There is absolutely no use in it. – Johannes_B Feb 28 '15 at 13:33! Not a letter. l.8 \hyphenation{( Web"~)""Frame"-works} ? ! Not a letter. l.8 \hyphenation{(Web" ~)""Frame"-works}Hence the problem. But, as a fellow german, i don't know what you are trying to do. Do you want to prevent hyphenation there? – Johannes_B Feb 28 '15 at 13:35\hyphenationnot markup, what effect are you trying to specify? – David Carlisle Feb 28 '15 at 14:29\hyphenationallows only letters, embedded hyphens, and spaces to separate words. you could accomplish what it looks like you want with this definition:\newcommand{\WFw}{(Web)~Frame\-works}. (i don't think you really mean you want a space before the parenthesis.) there are other variations, but your description isn't really clear. – barbara beeton Feb 28 '15 at 14:58(Web"~)""Frame"-workslooks like usage ofbabelshorthands in the text – this is surely not meant for usage in\hyphenation– cgnieder Feb 28 '15 at 17:27