This file is indexed.

/usr/share/perl5/LaTeXML/Package/babel.sty.ltxml is in latexml 0.8.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
# -*- CPERL -*-
# /=====================================================================\ #
# |  babel                                                              | #
# | Implementation for LaTeXML                                          | #
# |=====================================================================| #
# | Part of LaTeXML:                                                    | #
# |  Public domain software, produced as part of work done by the       | #
# |  United States Government & not subject to copyright in the US.     | #
# |---------------------------------------------------------------------| #
# | Thanks to the arXMLiv group for initial implementation              | #
# |    http://arxmliv.kwarc.info/                                       | #
# | Released to the Public Domain                                       | #
# |---------------------------------------------------------------------| #
# | Bruce Miller <bruce.miller@nist.gov>                        #_#     | #
# | http://dlmf.nist.gov/LaTeXML/                              (o o)    | #
# \=========================================================ooo==U==ooo=/ #
package LaTeXML::Package::Pool;
use strict;
use warnings;
use LaTeXML::Package;
use LaTeXML::Util::Pathname;

# NOTE that in principle, babel can be loaded multiple times,
# and the "processOptions" part SHOULD be re-executed!
# HOWEVER!!!!
# some packages test for whether babel is loaded????
# AssignValue('babel.sty_loaded'=>0,'global');
# So how do multiple loads work?

#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
# babel.def only needs to be loaded ONCE.
RequirePackage('babel', type => 'def');
DeclareOption('acadian',    sub { InputDefinitions('frenchb',   type => 'ldf'); return; });
DeclareOption('albanian',   sub { InputDefinitions('albanian',  type => 'ldf'); return; });
DeclareOption('afrikaans',  sub { InputDefinitions('dutch',     type => 'ldf'); return; });
DeclareOption('american',   sub { InputDefinitions('english',   type => 'ldf'); return; });
DeclareOption('australian', sub { InputDefinitions('english',   type => 'ldf'); return; });
DeclareOption('austrian',   sub { InputDefinitions('germanb',   type => 'ldf'); return; });
DeclareOption('bahasa',     sub { InputDefinitions('bahasai',   type => 'ldf'); return; });
DeclareOption('indonesian', sub { InputDefinitions('bahasai',   type => 'ldf'); return; });
DeclareOption('indon',      sub { InputDefinitions('bahasai',   type => 'ldf'); return; });
DeclareOption('bahasai',    sub { InputDefinitions('bahasai',   type => 'ldf'); return; });
DeclareOption('malay',      sub { InputDefinitions('bahasam',   type => 'ldf'); return; });
DeclareOption('meyalu',     sub { InputDefinitions('bahasam',   type => 'ldf'); return; });
DeclareOption('bahasam',    sub { InputDefinitions('bahasam',   type => 'ldf'); return; });
DeclareOption('basque',     sub { InputDefinitions('basque',    type => 'ldf'); return; });
DeclareOption('brazil',     sub { InputDefinitions('portuges',  type => 'ldf'); return; });
DeclareOption('brazilian',  sub { InputDefinitions('portuges',  type => 'ldf'); return; });
DeclareOption('breton',     sub { InputDefinitions('breton',    type => 'ldf'); return; });
DeclareOption('british',    sub { InputDefinitions('english',   type => 'ldf'); return; });
DeclareOption('bulgarian',  sub { InputDefinitions('bulgarian', type => 'ldf'); return; });
DeclareOption('canadian',   sub { InputDefinitions('english',   type => 'ldf'); return; });
DeclareOption('canadien',   sub { InputDefinitions('frenchb',   type => 'ldf'); return; });
DeclareOption('catalan',    sub { InputDefinitions('catalan',   type => 'ldf'); return; });
DeclareOption('croatian',   sub { InputDefinitions('croatian',  type => 'ldf'); return; });
DeclareOption('czech',      sub { InputDefinitions('czech',     type => 'ldf'); return; });
DeclareOption('danish',     sub { InputDefinitions('danish',    type => 'ldf'); return; });
DeclareOption('dutch',      sub { InputDefinitions('dutch',     type => 'ldf'); return; });
DeclareOption('english',    sub { InputDefinitions('english',   type => 'ldf'); return; });
DeclareOption('esperanto',  sub { InputDefinitions('esperanto', type => 'ldf'); return; });
DeclareOption('estonian',   sub { InputDefinitions('estonian',  type => 'ldf'); return; });
DeclareOption('finnish',    sub { InputDefinitions('finnish',   type => 'ldf'); return; });
DeclareOption('francais',   sub { InputDefinitions('frenchb',   type => 'ldf'); return; });
DeclareOption('frenchb',    sub { InputDefinitions('frenchb',   type => 'ldf'); return; });
DeclareOption('french',     sub { InputDefinitions('frenchb',   type => 'ldf'); return; });
DeclareOption('galician',   sub { InputDefinitions('galician',  type => 'ldf'); return; });
DeclareOption('german',     sub { InputDefinitions('germanb',   type => 'ldf'); return; });
DeclareOption('germanb',    sub { InputDefinitions('germanb',   type => 'ldf'); return; });
DeclareOption('greek',      sub { InputDefinitions('greek',     type => 'ldf'); return; });
DeclareOption('polutonikogreek', sub { InputDefinitions('greek', type => 'ldf');
    RawTeX('\languageattribute{greek}{polutoniko}'); return; });
DeclareOption('hebrew', sub {    #   \input{rlbabel.def}%
    InputDefinitions('hebrew', type => 'ldf'); return; });
DeclareOption('hungarian',    sub { InputDefinitions('magyar',      type => 'ldf'); return; });
DeclareOption('icelandic',    sub { InputDefinitions('icelandic',   type => 'ldf'); return; });
DeclareOption('interlingua',  sub { InputDefinitions('interlingua', type => 'ldf'); return; });
DeclareOption('irish',        sub { InputDefinitions('irish',       type => 'ldf'); return; });
DeclareOption('italian',      sub { InputDefinitions('italian',     type => 'ldf'); return; });
DeclareOption('latin',        sub { InputDefinitions('latin',       type => 'ldf'); return; });
DeclareOption('lowersorbian', sub { InputDefinitions('lsorbian',    type => 'ldf'); return; });
DeclareOption('magyar',       sub { InputDefinitions('magyar',      type => 'ldf'); return; });
DeclareOption('naustrian',    sub { InputDefinitions('ngermanb',    type => 'ldf'); return; });
DeclareOption('newzealand',   sub { InputDefinitions('english',     type => 'ldf'); return; });
DeclareOption('ngerman',      sub { InputDefinitions('ngermanb',    type => 'ldf'); return; });
DeclareOption('norsk',        sub { InputDefinitions('norsk',       type => 'ldf'); return; });
DeclareOption('samin',        sub { InputDefinitions('samin',       type => 'ldf'); return; });
DeclareOption('nynorsk',      sub { InputDefinitions('norsk',       type => 'ldf'); return; });
DeclareOption('polish',       sub { InputDefinitions('polish',      type => 'ldf'); return; });
DeclareOption('portuges',     sub { InputDefinitions('portuges',    type => 'ldf'); return; });
DeclareOption('portuguese',   sub { InputDefinitions('portuges',    type => 'ldf'); return; });
DeclareOption('romanian',     sub { InputDefinitions('romanian',    type => 'ldf'); return; });
DeclareOption('russian',      sub { InputDefinitions('russianb',    type => 'ldf'); return; });
DeclareOption('scottish',     sub { InputDefinitions('scottish',    type => 'ldf'); return; });
DeclareOption('serbian',      sub { InputDefinitions('serbian',     type => 'ldf'); return; });
DeclareOption('slovak',       sub { InputDefinitions('slovak',      type => 'ldf'); return; });
DeclareOption('slovene',      sub { InputDefinitions('slovene',     type => 'ldf'); return; });
DeclareOption('spanish',      sub { InputDefinitions('spanish',     type => 'ldf'); return; });
DeclareOption('swedish',      sub { InputDefinitions('swedish',     type => 'ldf'); return; });
DeclareOption('turkish',      sub { InputDefinitions('turkish',     type => 'ldf'); return; });
DeclareOption('ukrainian',    sub { InputDefinitions('ukraineb',    type => 'ldf'); return; });
DeclareOption('uppersorbian', sub { InputDefinitions('usorbian',    type => 'ldf'); return; });
DeclareOption('welsh',        sub { InputDefinitions('welsh',       type => 'ldf'); return; });
DeclareOption('UKenglish',    sub { InputDefinitions('english',     type => 'ldf'); return; });
DeclareOption('USenglish',    sub { InputDefinitions('english',     type => 'ldf'); return; });
DeclareOption(undef, sub {
    InputDefinitions(ToString(Digest(T_CS('\CurrentOption'))), type => 'ldf'); return; });

# \InputIfFileExists{bblopts.cfg}{%
DeclareOption('activeacute',          undef);
DeclareOption('activegrave',          undef);
DeclareOption('KeepShorthandsActive', undef);

ProcessOptions(inorder => 1);
AtBeginDocument('\expandafter\selectlanguage\expandafter{\bbl@main@language}');
# Now hopefully, \bbl@main@language is defined?

# \def\substitutefontfamily#1#2#3{%
# \@onlypreamble\substitutefontfamily

# \AtBeginDocument{%
#    if package ifthen was loaded, bable redefines \ifthenelse to account for different pageref(?)
#    if package varioref was loaded, redefine \@@vpageref to account for ???
#    if package hhline was loaded, redefine something...

#\DeclareRobustCommand{\FOREIGNLANGUAGE}[1]{%
#  \lowercase{\foreignlanguage{#1}}}

#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1;