-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgermhyph.sty
68 lines (56 loc) · 2.63 KB
/
germhyph.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
% $Id: germhyph.sty,v 1.4 2004/05/21 20:50:02 bronger Exp $
%
% germhyph -- Part of the LaTeX Tutorium
% Copyright 2004 Torsten Bronger
%
%
% This program is free software; you can redistribute it and/or
% modify it under the terms of the Artistic License 2.0 as published
% by Larry Wall. You should have received a copy of the Artistic
% License 2.0 along with this program in the file COPYING; if not,
% you can get it at
% http://dev.perl.org/rfc/346.html
% or contact the current maintainer of tbook.
%
% This program is distributed in the hope that it will be useful, but
% WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% Artistic License 2.0 for more details.
%
% This file may only be distributed together with a copy of the LaTeX
% Turorium.
%
% The LaTeX Tutorium consists of all files listed in manifest.txt.
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{germhyph}[2001/07/21 v1.0 German Hyphenation Extensions (TBr)]
\ifx\def@dqmacro\undefined\else
\def\grmn@dqdisc#1#2{\penalty\@M
\ifnum\grmn@dqwarninglevel>\@ne \grmn@dq@warning{#1}\fi
\discretionary{#2\char\hyphenchar\font}{}{#1}\allowhyphens}
\def\ck{\penalty\@M\discretionary{k\char\hyphenchar\font}{}{c}k\allowhyphens}
\def@dqmacro{|}{\penalty\@M\discretionary{\char\hyphenchar\font}{}{\kern.03em}%
\allowhyphens}{}
\def\grmn@dqinsertff{%
\if f\grmn@dqnextff
\expandafter\grmn@dqfirst\else\expandafter\grmn@dqsecond\fi
{\relax\discretionary{ff\char\hyphenchar\font}{f}{ff}\allowhyphens}{f\grmn@dqnext}}
\fi
\let\oldhyphen=\-
\def\-{\discretionary {\char\hyphenchar\font}{}{}}
%Ja, das mit dem 'ck' war in der Tat so gedacht, danke! Mit folgendem
%sieht es jetzt ordentlich aus.
%\def\bh{\penalty\@M\discretionary{-\kern.005em}{}{}\allowhyphens}
\endinput
%Ohne es ausprobiert zu haben: Die Zeilen
%\def@dqmacro{=}{\penalty\@M-\hskip\z@skip}%
% {\penalty\@M-\hskip\z@skip}
%sehen mir ganz so aus, als wollten sie in
\def@dqmacro{=}{\penalty\@M\discretionary{\char\hyphenchar\font}{}{-}\allowhyphens}%
{\penalty\@M\discretionary{\char\hyphenchar\font}{}{-}\allowhyphens}
\def@dqmacro{-}{\penalty\@M\discretionary{\char\hyphenchar\font}{}{}\allowhyphens}%
{\penalty\@M\discretionary{\char\hyphenchar\font}{}{}\allowhyphens}
%umdefiniert werden.
%\def@dqmacro{=}{\penalty\@M\discretionary{}{}{-\kern.05em}\hskip\z@skip}%
% {\penalty\@M\discretionary{}{}{-\kern.05em}\hskip\z@skip}
\endinput