Debian Codegraph @

texmf-dist/tex/generic/tex4ht/babel.4ht

raw
1 % babel.4ht (2025-10-07-12:51), generated from tex4ht-4ht.tex
2 % Copyright 1999-2009 Eitan M. Gurari
3 % Copyright 2009-2025 TeX Users Group
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % https://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <https://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2025-10-07-12:51}
21
22
23 \def\:tempc#1{%
24 \edef\bbl@tempa{\expandafter\@gobble\string#1}%
25 \expandafter\let\csname org@\bbl@tempa\endcsname#1
26 \expandafter\def\csname\bbl@tempa\endcsname}
27 \let\@c:tex\@citex
28 \:tempc\@c:tex[#1]#2{%
29 \@safe@activestrue\org@@c:tex[#1]{#2}\@safe@activesfalse}
30 \let\@citex\@c:tex
31
32
33 \def\@newl@bel#1#2{{\:SUBOff\:SUPOff \@safe@activestrue
34 \xdef\:temp{\noexpand\n:wlbl{#1}{#2}}}\:temp }
35 \pend:defI\l:bel{\Protect\@safe@activestrue}
36 \append:defI\l:bel{\Protect\@safe@activesfalse}
37 \let\@b:bitem=\@bibitem
38 \def\@bibitem#1{\@safe@activestrue
39 \edef\:temp{\noexpand\@b:bitem{#1}}\@safe@activesfalse\:temp}
40
41 \def\:temp#1{{\leavevmode #1}}
42 \HLet\save@sf@q\:temp
43 \def\:tempc#1#2#3{\HCode{<sub>}{\let\/=\empty#1}\HCode{</sub>}}
44 \HLet\set@low@box\:tempc
45 \HLet\quotedblbase\empty
46 \HLet\quotesinglbase\empty
47 \NewConfigure{quotedblbase}[1]{\def\n:quotedblbase:{#1}}
48 \NewConfigure{quotesinglbase}[1]{\def\n:quotesinglbase:{#1}}
49 \Configure{quotedblbase}{\o:quotedblbase:}
50 \Configure{quotesinglbase}{\o:quotesinglbase:}
51
52 \def\arabic:loopoverdigits#1{\ifx\relax#1\else%
53 \ht:special{t4ht@+&{35}x066#1{59}}\a:HChar%
54 \expandafter\arabic:loopoverdigits\fi}
55 \def\arabicdigits#1{\arabic:loopoverdigits#1\relax}
56
57 \def\active:prefix#1{\protect#1}
58 \def\:temp#1{%
59 \ifx\protect\@typeset@protect
60 \else
61 \bbl@afterfi\active:prefix#1\@gobble
62 \fi}
63 \HLet\active@prefix\:temp
64 \def\:tempc#1{\leavevmode \a:ddj}
65 \HLet\ddj@=\:tempc
66 \def\:tempc#1{\leavevmode \a:DDJ}
67 \HLet\DDJ@=\:tempc
68 \NewConfigure{ddj}{1}
69 \NewConfigure{DDJ}{1}
70 \Configure{DDJ}{\leavevmode\ht:special{t4ht@+{38}{35}x0110;}\a:HChar}
71 \Configure{ddj}{\leavevmode\ht:special{t4ht@+{38}{35}x0111;}\a:HChar}
72 \AtBeginDocument{
73 \gdef\latinencoding{OT1}%
74 }
75 \ifdefined\cyrillicencoding%
76 \def\:defaultencoding{T2A}%
77 \ifx\cyrillicencoding\:defaultencoding\else%
78 \edef\cyrillicencoding{OT1}%
79 \fi
80 \fi%
81
82 \Hinput{babel}
83 \endinput
84