blob: ea8747f05388fe149d873b3cb67556b7599c2231 (
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
%%
%% This is file `occitan.ldf',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% occitan.dtx (with options: `code')
%% ------------------------------------------------------------------
%% The occitan module for babel
%% Copyright (C) 2015 Cédric Valmary
%% All rights reserved
%%
%% Licence information appended
%%
%% Created by Cédric Valmary: cvalmary at yahoo dot fr
%% of Tot en òc <http://www.totenoc.eu/>
%%
%%
\ProvidesLanguage{occitan}
[2016/02/04 0.2 Occitan support from the babel system]
\LdfInit{occitan}{captionsoccitan}%
\ifx\l@occitan\@undefined
\@nopatterns{occitan}%
\adddialect\l@occitan \z@\fi
\addto\captionsoccitan{%
\def\refname{Refer\'encias}%
\def\abstractname{Resumit}%
\def\bibname{Bibliografia}%
\def\prefacename{Prefaci}%
\def\chaptername{Cap\'itol}%
\def\appendixname{Ann\`ex}%
\def\contentsname{Ensenhador}%
\def\listfigurename{Taula de las figuras}%
\def\listtablename{Taula dels tabl\`eus}%
\def\indexname{Ind\`ex}%
\def\figurename{Figura}%
\def\tablename{Tabl\`eu}%
\def\partname{Partida}%
\def\pagename{Pagina}%
\def\seename{vejatz}%
\def\alsoname{vejatz tanben}%
\def\enclname{P\`e\c{c}a junta}%
\def\ccname{c\`opia a}%
\def\headtoname{A}%
\def\proofname{Demostracion}%
\def\glossaryname{Glossari}%
}%
\def\dateoccitan{%
\def\today{%
\ifcase \day\or
1èr\else
\number\day
\fi~%
\ifcase\month\or
de~geni\`er\or
de~febri\`er\or
de~mar\c{c}\or
d'abril\or
de~mai\or
de~jiunh\or
de~julhet\or
d'agost\or
de~setembre\or
d'octobre\or
de~novembre\or
de~decembre%
\fi\space
de~\number\year}}%
\providehyphenmins{\CurrentOption}{\tw@\tw@}
\addto\extrasoccitan{%
\babel@savevariable\clubpenalty
\babel@savevariable\widowpenalty
\babel@savevariable\@clubpenalty
\clubpenalty3000\widowpenalty3000\@clubpenalty\clubpenalty}%
\addto\extrasoccitan{%
\babel@savevariable\finalhyphendemerits
\finalhyphendemerits50000000}%
\addto\extrasoccitan{%
\lccode`'=`'}%
\addto\noextrasoccitan{%
\lccode`'=0}%
\newcount\oc@doublequoteactive \oc@doublequoteactive=\z@
\def\setactivedoublequote{\oc@doublequoteactive=\@ne}
\AtBeginDocument{%
\unless\ifnum\oc@doublequoteactive=\z@
\initiate@active@char{"}%
\addto\extrasoccitan{\bbl@activate{"}\languageshorthands{occitan}}%
\declare@shorthand{occitan}{"}{%
\ifmmode
\def\oc@next{''}%
\else
\def\oc@next{\futurelet\oc@temp\oc@cwm}%
\fi
\oc@next
}%
\fi
\ifdefstring{\languagename}{occitan}{\selectlanguage{occitan}}{\relax}
}%
\def\oc@@cwm{\bbl@allowhyphens\discretionary{-}{}{}\bbl@allowhyphens}%
\def\oc@@slash{\bbl@allowhyphens\discretionary{/}{}{/}\bbl@allowhyphens}%
\def\oc@ponchinterior{\nobreak
\discretionary{-}{}{\mbox{$\cdot$}}\nobreak\hskip\z@skip}%
\def\oc@@oguil#1{\oc@oguil}\def\oc@@cguil#1{\oc@cguil}%
\DeclareRobustCommand*{\oc@cwm}{\let\oc@@next\oc@doublequote
\ifcat\noexpand\oc@temp a%
\def\oc@@next{\oc@@cwm}%
\else
\if\noexpand\oc@temp \string|%
\def\oc@@next##1{\oc@@cwm}%
\else
\if\noexpand\oc@temp \string<%
\def\oc@@next{\oc@@oguil}%
\else
\if\noexpand\oc@temp \string>%
\def\oc@@next{\oc@@cguil}%
\else
\if\noexpand\oc@temp\string/%
\def\oc@@next##1{\oc@@slash}%
\else
\if\noexpand\oc@temp\string.%
\def\oc@@next##1{\oc@ponchinterior}%
\fi
\fi
\fi
\fi
\fi
\fi
\oc@@next}%
\AtEndOfPackage{\RequirePackage{etoolbox}}
\def\GuillemetsFrom#1#2#3#4{%
\DeclareFontEncoding{#1}{}{}%
\DeclareTextCommand{\oc@oguil}{T1}{%
{\fontencoding{#1}\fontfamily{#2}\selectfont\char#3\ignorespaces}}%
\DeclareTextCommand{\oc@cguil}{T1}{\ifdim\lastskip>\z@\unskip\fi%
{\fontencoding{#1}\fontfamily{#2}\selectfont\char#4}}%
\DeclareTextCommand{\oc@oguil}{OT1}{%
{\fontencoding{#1}\fontfamily{#2}\selectfont\char#3\ignorespaces}}%
\DeclareTextCommand{\oc@cguil}{OT1}{\ifdim\lastskip>\z@\unskip\fi%
{\fontencoding{#1}\fontfamily{#2}\selectfont\char#4}}}
\def\T@unoGuillemets{\DeclareRobustCommand*{\oc@oguil}{<<\ignorespaces}%
\DeclareRobustCommand*{\oc@cguil}{\ifdim\lastskip>\z@\unskip\fi>>}}%
\def\get@ae#1#2#3!{\def\oc@ae{#1#2}}%
\def\@ifT@one@noGuil{\expandafter\get@ae\f@family!%
\ifdefstring{\oc@ae}{ae}}%
\AtBeginDocument{\normalfont
\ifdefstring{\cf@encoding}{OT1}{%
\GuillemetsFrom{T1}{lmr}{19}{20}%
\GenericWarning{occitan.ldf\space}{%
File occitan.ldf warning: \MessageBreak\space\space\space
With OT1 encoding guillemets are taken form the
\MessageBreak\space\space\space
T1 encoded Latin Modern fonts\MessageBreak\space\space\space
\MessageBreak\space\space}%
}{%
\ifdefstring{\cf@encoding}{T1}{%
\@ifT@one@noGuil{%
\GuillemetsFrom{T1}{lmr}{19}{20}%
\GenericWarning{occitan.ldf\space}{%
File occitan.ldf warning: \MessageBreak\space\space\space
The AE font collection does not contain the guillemets
\MessageBreak\space\space\space
Using Latin Modern guillemets instead
\MessageBreak\space}
}{%
\T@unoGuillemets}}{\T@unoGuillemets}
}%
}
\ldf@finish{occitan}%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of
%% this license is at: http://www.latex-project.org/lppl.txt
%%
%% This work is "author-maintained"
%% The maintainer is Cédric Valmary
%%
%%
%% End of file `occitan.ldf'.
|