Debian Codegraph @

texmf-dist/tex/generic/babel/txtbabel.def

raw
1 %%
2 %% This is file `txtbabel.def',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% babel.dtx (with options: `texxet')
8 %%
9 %%
10 %% Copyright (C) 2012-2026 Javier Bezos and Johannes L. Braams.
11 %% Copyright (C) 1989-2012 Johannes L. Braams and
12 %% any individual authors listed elsewhere in this file.
13 %% All rights reserved.
14 %%
15 %%
16 %% This file is part of the Babel system.
17 %% --------------------------------------
18 %%
19 %% It may be distributed and/or modified under the
20 %% conditions of the LaTeX Project Public License, either version 1.3
21 %% of this license or (at your option) any later version.
22 %% The latest version of this license is in
23 %% http://www.latex-project.org/lppl.txt
24 %% and version 1.3 or later is part of all distributions of LaTeX
25 %% version 2003/12/01 or later.
26 %%
27 %% This work has the LPPL maintenance status "maintained".
28 %%
29 %% The Current Maintainer of this work is Javier Bezos.
30 %%
31 %% The list of derived (unpacked) files belonging to the distribution
32 %% and covered by LPPL is defined by the unpacking scripts (with
33 %% extension |.ins|) which are part of the distribution.
34 %%
35 \providecommand\bbl@provide@intraspace{}
36 \bbl@trace{Redefinitions for bidi layout}
37 \ifx\bbl@opt@layout\@nnil\else % if layout=..
38 \IfBabelLayout{nopars}
39 {}
40 {\edef\bbl@opt@layout{\bbl@[email protected].}}%
41 \def\bbl@startskip{\ifcase\bbl@thepardir\leftskip\else\rightskip\fi}
42 \def\bbl@endskip{\ifcase\bbl@thepardir\rightskip\else\leftskip\fi}
43 \ifnum\bbl@bidimode>\z@
44 \IfBabelLayout{pars}
45 {\def\@hangfrom#1{%
46 \setbox\@tempboxa\hbox{{#1}}%
47 \hangindent\ifcase\bbl@thepardir\wd\@tempboxa\else-\wd\@tempboxa\fi
48 \noindent\box\@tempboxa}
49 \def\raggedright{%
50 \let\\\@centercr
51 \bbl@startskip\z@skip
52 \@rightskip\@flushglue
53 \bbl@endskip\@rightskip
54 \parindent\z@
55 \parfillskip\bbl@startskip}
56 \def\raggedleft{%
57 \let\\\@centercr
58 \bbl@startskip\@flushglue
59 \bbl@endskip\z@skip
60 \parindent\z@
61 \parfillskip\bbl@endskip}}
62 {}
63 \fi
64 \IfBabelLayout{lists}
65 {\bbl@sreplace\list
66 {\@totalleftmargin\leftmargin}{\@totalleftmargin\bbl@listleftmargin}%
67 \def\bbl@listleftmargin{%
68 \ifcase\bbl@thepardir\leftmargin\else\rightmargin\fi}%
69 \ifcase\bbl@engine
70 \def\labelenumii{)\theenumii(}% pdftex doesn't reverse ()
71 \def\p@enumiii{\p@enumii)\theenumii(}%
72 \fi
73 \bbl@sreplace\@verbatim
74 {\leftskip\@totalleftmargin}%
75 {\bbl@startskip\textwidth
76 \advance\bbl@startskip-\linewidth}%
77 \bbl@sreplace\@verbatim
78 {\rightskip\z@skip}%
79 {\bbl@endskip\z@skip}}%
80 {}
81 \IfBabelLayout{contents}
82 {\bbl@sreplace\@dottedtocline{\leftskip}{\bbl@startskip}%
83 \bbl@sreplace\@dottedtocline{\rightskip}{\bbl@endskip}}
84 {}
85 \IfBabelLayout{columns}
86 {\bbl@sreplace\@outputdblcol{\hb@xt@\textwidth}{\bbl@outputhbox}%
87 \def\bbl@outputhbox#1{%
88 \hb@xt@\textwidth{%
89 \hskip\columnwidth
90 \hfil
91 {\normalcolor\vrule \@width\columnseprule}%
92 \hfil
93 \hb@xt@\columnwidth{\box\@leftcolumn \hss}%
94 \hskip-\textwidth
95 \hb@xt@\columnwidth{\box\@outputbox \hss}%
96 \hskip\columnsep
97 \hskip\columnwidth}}}%
98 {}
99 \IfBabelLayout{counters*}%
100 {\bbl@add\bbl@opt@layout{.counters.}%
101 \AddToHook{shipout/before}{%
102 \let\bbl@tempa\babelsublr
103 \let\babelsublr\@firstofone
104 \let\bbl@save@thepage\thepage
105 \protected@edef\thepage{\thepage}%
106 \let\babelsublr\bbl@tempa}%
107 \AddToHook{shipout/after}{%
108 \let\thepage\bbl@save@thepage}}{}
109 \IfBabelLayout{counters}%
110 {\let\bbl@latinarabic=\@arabic
111 \def\@arabic#1{\babelsublr{\bbl@latinarabic#1}}%
112 \let\bbl@asciiroman=\@roman
113 \def\@roman#1{\babelsublr{\ensureascii{\bbl@asciiroman#1}}}%
114 \let\bbl@asciiRoman=\@Roman
115 \def\@Roman#1{\babelsublr{\ensureascii{\bbl@asciiRoman#1}}}}{}
116 \fi % end if layout
117 \def\bbl@provide@extra#1{%
118 % == auto-select encoding ==
119 \ifx\bbl@encoding@select@off\@empty\else
120 \bbl@ifunset{bbl@encoding@#1}%
121 {\def\@elt##1{,##1,}%
122 \edef\bbl@tempe{\expandafter\@gobbletwo\@fontenc@load@list}%
123 \count@\z@
124 \bbl@foreach\bbl@tempe{%
125 \def\bbl@tempd{##1}% Save last declared
126 \advance\count@\@ne}%
127 \ifnum\count@>\@ne % (1)
128 \getlocaleproperty*\bbl@tempa{#1}{identification/encodings}%
129 \ifx\bbl@tempa\relax \let\bbl@tempa\@empty \fi
130 \bbl@replace\bbl@tempa{ }{,}%
131 \global\bbl@csarg\let{encoding@#1}\@empty
132 \bbl@xin@{,\bbl@tempd,}{,\bbl@tempa,}%
133 \ifin@\else % if main encoding included in ini, do nothing
134 \let\bbl@tempb\relax
135 \bbl@foreach\bbl@tempa{%
136 \ifx\bbl@tempb\relax
137 \bbl@xin@{,##1,}{,\bbl@tempe,}%
138 \ifin@\def\bbl@tempb{##1}\fi
139 \fi}%
140 \ifx\bbl@tempb\relax\else
141 \bbl@exp{%
142 \global\<bbl@add>\<bbl@preextras@#1>{\<bbl@encoding@#1>}%
143 \gdef\<bbl@encoding@#1>{%
144 \\\babel@save\\\f@encoding
145 \\\bbl@add\\\originalTeX{\\\selectfont}%
146 \\\fontencoding{\bbl@tempb}%
147 \\\selectfont}}%
148 \fi
149 \fi
150 \fi}%
151 {}%
152 \fi}
153 \endinput
154 %%
155 %% End of file `txtbabel.def'.