[Trennmuster] padrinoma, discretionaries und penalties
Stephan Hennig
mailing_list at arcor.de
Do Apr 3 21:45:07 CEST 2014
Am 03.04.2014 20:27, schrieb Stephan Hennig:
> Ich melde mich nochmal mit einem Beispiel, wo deine Lösung meiner
> Meinung nach nicht funktioniert.
Ein Problem ist, wie sich der Erfolg der Bevorzugung einer Trennung
messen lässt. Kannst du das angehängte Beispiel durch Manipulation der
Strafpunkte dazu bringen, dass vorzugsweise pre-condition getrennt wird?
Viele Grüße,
Stephan Hennig
% aufeinanderfolgende Trennungen
\doublehyphendemerits=0
% Trennung vorletzter Zeile
\finalhyphendemerits=0
% Strafpunkte für inkompatible Zeilen
\adjdemerits=0
% tolerierter Stretch innerhalb einer Zeile
\tolerance=8000
% Strafpunkte für Trennung
\hyphenpenalty=0
% Strafpunkte für Trennung nach pre-
\newcount\mypenalty
% \mypenalty=\hyphenpenalty
\mypenalty=-5000
% bevorzugtes discretionary hyphen
\def\discpre{\discretionary{-\hyphenpenalty\mypenalty}{}{}}
% normales discretionary hyphen
\def\discnormal{\discretionary{-}{}{}}
% ein Testwort
\def\word{pre\discpre con\discnormal di\discnormal tion\ }
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\word \word \word \word \word \word \word
\bye
Mehr Informationen über die Mailingliste Trennmuster