Article View: comp.text.tex
Article #10710Advanced hyphenation problem for (esp. German) compound words
From: Peter G. Bouillon
Date: Sun, 24 Jan 1993 18:28
Date: Sun, 24 Jan 1993 18:28
28 lines
1935 bytes
1935 bytes
German compound words can be hyphenated in several ways; however, hyphenating their components is considered uglier than hyphenating in between their components. As, for example, the word `Gangschaltung' has the components, `Gang' and `Schaltung', the hyphenation `Gang-schaltung' is considered preferable to `Gangschal-tung'. Similarly, words ending on `ion' can be hyphenated `i-on', but any typesetter would avoid that wherever possible. As however the German language is full of very long words, it is unfortunately impossible to completely avoid ugly hyphenations in any context. Therefore, you can't really solve this problem by inserting `\-' in all the preferable places. For one thing, this would force you to re-read your whole text after any alteration to the document (style) to find out whether certain ugly hyphenations have to be re-allowed in the new situation. So I wonder how to convey to TeX that certain hyphenations have higher badness than others. Even if the border between components were marked somehow (as a macro or something), you would still logically need to use two hyphenation penalties. There is only one in TeX, and it can only be specified once per paragraph. Does anyone have a workable solution? (Please reply per email; I don't read this news group regularly.) -- Peter G. Bouillon bouillon@cs.uni-sb.de
Technical Details
Message-ID:
<24093@sbsvax.cs.uni-sb.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!ira.uka.de!Germany.EU.net!sbsvax!sol.cs.uni-sb.de!bouillonShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!ira.uka.de!Germany.EU.net!sbsvax!sol.cs.uni-sb.de!bouillon From: bouillon@sol.cs.uni-sb.de (Peter G. Bouillon) Newsgroups: comp.text.tex Subject: Advanced hyphenation problem for (esp. German) compound words Summary: How can I persuade TeX to consider certain hyphenations as possible but worse than other hyphenations? Keywords: \hyphenation, compound words, German Message-ID: <24093@sbsvax.cs.uni-sb.de> Date: 24 Jan 93 18:28:16 GMT Sender: news@sbsvax.cs.uni-sb.de Followup-To: poster Lines: 28