summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lambda/antomega/omega-german.ldf
blob: 7b8d21875aebbb0a209700e27c8f5c1f45126c31 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
%% This file is part of the ANTOMEGA project version 0.7
%% -----------------------------------------------------
%% 
%% It may be distributed under the terms of the LaTeX Project Public
%% License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.0 or, at your option, any later version.
%% Copyright (C) 2003 by Alexej Kryukov <basileia@yandex.ru>
%% Information provided by Olaf Dietrich <olaf.dietrich@ikra.med.uni-muenchen.de>
%%
%% Please report errors to: A.M. Kryukov <basileia@yandex.ru>

\makeatletter

\LoadOCPByName{\GermanBabelUni}{babel2de}

\ocplist\GermanBabelOCP=
   \addbeforeocplist 2000 \GermanBabelUni
\nullocplist

\ifx\l@german\@undefined
   \ant@nopatterns{german}
   \adddialect\l@german0
\fi

\ifx\westernrm\undefined\let\westernrm=\rmdefault\fi
\ifx\westernsf\undefined\let\westernsf=\sfdefault\fi
\ifx\westerntt\undefined\let\westerntt=\ttdefault\fi

\ifx\westernencoding\undefined\let\westernencoding=\uniencoding\fi

\def\german@font{\fontfamily{\westernrm}%
   \fontencoding{\westernencoding}\selectfont%
   \let\rmdefault=\westernrm%
   \let\sfdefault=\westernsf%
   \let\ttdefault=\westerntt%
   \let\encodingdefault=\westernencoding}

\def\tmp@uni{unicode}
\def\tmp@omega{omega}
\def\tmp@tex{tex}

\def\tmp@ucs{ucs-2}
\def\tmp@utf{utf-8}
\def\tmp@iso{iso-8859-1}
\def\tmp@win{cp1252}

\def\eventualDePunct{\protect\pushocplist\BasicTexOCP}
\def\eventualDeShorthands{\protect\pushocplist\GermanBabelOCP}
\def\eventualDeInput{\protect\pushocplist\BasicInputOCP}
\def\eventualDeAccents{\protect\pushocplist\BasicAccentsOCP}

\ifx\eventualEuOutput\undefined
   \def\eventualEuOutput{\protect\pushocplist\LatinUniOutOCP%
   }
\fi

\def\german@OCP{\protect\clearocplists%
   \eventualDeInput%
   \eventualDePunct%
   \eventualDeShorthands%
   \eventualDeAccents%
   \eventualEuOutput}

\define@key{german}{input}[ucs-2]{%
   \def\@tmpa{#1}
   \ifx\@tmpa\tmp@iso\def\eventualDeInput{%
      \protect\pushocplist\BasicInputIsoOCP}
      \typeout{Option: German input encoding=iso-8859-1}
   \else\ifx\@tmpa\tmp@win\def\eventualDeInput{%
      \protect\pushocplist\BasicInputWinOCP}
      \typeout{Option: German input encoding=windows-1252}
   \else\ifx\@tmpa\tmp@utf\def\eventualDeInput{%
      \protect\pushocplist\BasicInputUtfOCP}
      \typeout{Option: German input encoding=utf-8}
   \else\def\eventualDeInput{%
      \protect\pushocplist\BasicInputUcsOCP}
      \typeout{Option: German input encoding=ucs-2}
   \fi\fi\fi}

\define@key{german}{shorthands}[on]{%
   \def\@tmpa{#1}%
   \ifx\@tmpa\opt@enabled\def\eventualDeShorthands{%
      \protect\pushocplist\GermanBabelOCP}%
      \typeout{Option: Shorthands for German text enabled}%
   \else\def\eventualDeShorthands{}%
      \typeout{Option: Shorthands for German text disabled}%
   \fi}

\define@key{german}{output}[unicode]{%
   \def\@tmpa{#1}%
   \ifx\@tmpa\tmp@tex\def\eventualEuOutput{%
      \protect\pushocplist\LatinTexOutOCP}%
      \def\westernencoding{T1}%
   \else\ifx\@tmpa\tmp@omega\def\eventualEuOutput{%
      \protect\pushocplist\LatinOmegaOutOCP}%
      \def\westernencoding{UT1}%
   \else\def\eventualEuOutput{%
      \protect\pushocplist\LatinUniOutOCP}%
      \def\westernencoding{UT1}%
   \fi\fi}

\def\german@punctuation{%
   \frenchspacing%
}

\def\nogerman@punctuation{%
   \nonfrenchspacing%
}

\def\german@captions{%
   \def\prefacename{\localgerman{Vorwort}}%
   \def\refname{\localgerman{Literatur}}%
   \def\abstractname{\localgerman{Zusammenfassung}}%
   \def\bibname{\localgerman{Literaturverzeichnis}}%
   \def\chaptername{\localgerman{Kapitel}}%
   \def\appendixname{\localgerman{Anhang}}%
   \def\contentsname{\localgerman{Inhaltsverzeichnis}}%
   \def\listfigurename{\localgerman{Abbildungsverzeichnis}}%
   \def\listtablename{\localgerman{Tabellenverzeichnis}}%
   \def\indexname{\localgerman{Index}}%
   \def\figurename{\localgerman{Abbildung}}%
   \def\tablename{\localgerman{Tabelle}}%
   \def\partname{\localgerman{Teil}}%
   \def\enclname{\localgerman{Anlage(n)}}%
   \def\ccname{\localgerman{Verteiler}}%
   \def\headtoname{An}%
   \def\pagename{\localgerman{Seite}}%
   \def\seename{\localgerman{siehe}}%
   \def\alsoname{\localgerman{siehe auch}}%
   \def\proofname{\localgerman{Beweis}}% for AMS-\LaTeX
   \def\glossaryname{\localgerman{Glossar}}%
   \def\today{\localgerman{\number\day.%
      \space \ifcase\month%
      \or Januar\or Februar\or M^^^^00e4rz\or April\or Mai\or Juni\or%
      Juli\or August\or September\or Oktober\or November\or%
      Dezember\fi%
      \space \number\year}}}

\def\german@language{\protect\language=\l@german}

\def\noextras@german{%
   \nogerman@punctuation%
}

\def\blockextras@german{%
   \german@language%
   \local@hyphenmins{german}{2}{2}%
   \german@punctuation%
   \german@captions%
   \local@marks{german}%
   \german@OCP%
   \german@font%
}

\def\inlineextras@german{%
   \german@language%
   \local@hyphenmins{german}{2}{2}%
   \german@punctuation%
   \german@OCP%
   \german@font%
}

\endinput