Debian Codegraph @

texmf-dist/tex/generic/babel/babel-ca-islamic.tex

raw
1 %%
2 %% This is file `babel-ca-islamic.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% babel.dtx (with options: `ca-islamic')
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 \def\bbl@fpmod#1#2{(#1-#2*floor(#1/#2))}
36 \def\bbl@cs@gregleap#1{%
37 (\bbl@fpmod{#1}{4} == 0) &&
38 (!((\bbl@fpmod{#1}{100} == 0) && (\bbl@fpmod{#1}{400} != 0)))}
39 \def\bbl@cs@jd#1#2#3{% year, month, day
40 \fpeval{ 1721424.5 + (365 * (#1 - 1)) +
41 floor((#1 - 1) / 4) + (-floor((#1 - 1) / 100)) +
42 floor((#1 - 1) / 400) + floor((((367 * #2) - 362) / 12) +
43 ((#2 <= 2) ? 0 : (\bbl@cs@gregleap{#1} ? -1 : -2)) + #3) }}
44 \def\bbl@ca@islamic#1-#2-#3\@@#4#5#6{}
45 \def\bbl@cs@isltojd#1#2#3{ % year, month, day
46 ((#3 + ceil(29.5 * (#2 - 1)) +
47 (#1 - 1) * 354 + floor((3 + (11 * #1)) / 30) +
48 1948439.5) - 1) }
49 \@namedef{bbl@ca@islamic-civil++}{\bbl@ca@islamicvl@x{+2}}
50 \@namedef{bbl@ca@islamic-civil+}{\bbl@ca@islamicvl@x{+1}}
51 \@namedef{bbl@ca@islamic-civil}{\bbl@ca@islamicvl@x{}}
52 \@namedef{bbl@ca@islamic-civil-}{\bbl@ca@islamicvl@x{-1}}
53 \@namedef{bbl@ca@islamic-civil--}{\bbl@ca@islamicvl@x{-2}}
54 \def\bbl@ca@islamicvl@x#1#2-#3-#4\@@#5#6#7{%
55 \edef\bbl@tempa{%
56 \fpeval{ floor(\bbl@cs@jd{#2}{#3}{#4})+0.5 #1}}%
57 \edef#5{%
58 \fpeval{ floor(((30*(\[email protected])) + 10646)/10631) }}%
59 \edef#6{\fpeval{
60 min(12,ceil((\bbl@tempa-(29+\bbl@cs@isltojd{#5}{1}{1}))/29.5)+1) }}%
61 \edef#7{\fpeval{ \bbl@tempa - \bbl@cs@isltojd{#5}{#6}{1} + 1} }}
62 \def\bbl@cs@umalqura@data{56660, 56690,56719,56749,56778,56808,%
63 56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,%
64 57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,%
65 57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,%
66 57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,%
67 58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,%
68 58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,%
69 58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,%
70 58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,%
71 59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,%
72 59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,%
73 59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,%
74 60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,%
75 60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,%
76 60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,%
77 60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,%
78 61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,%
79 61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,%
80 61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,%
81 62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,%
82 62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,%
83 62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,%
84 63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,%
85 63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,%
86 63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,%
87 63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,%
88 64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,%
89 64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,%
90 64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,%
91 65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,%
92 65401,65431,65460,65490,65520}
93 \@namedef{bbl@ca@islamic-umalqura+}{\bbl@ca@islamcuqr@x{+1}}
94 \@namedef{bbl@ca@islamic-umalqura}{\bbl@ca@islamcuqr@x{}}
95 \@namedef{bbl@ca@islamic-umalqura-}{\bbl@ca@islamcuqr@x{-1}}
96 \def\bbl@ca@islamcuqr@x#1#2-#3-#4\@@#5#6#7{%
97 \ifnum#2>2014 \ifnum#2<2038
98 \bbl@afterfi\expandafter\@gobble
99 \fi\fi
100 {\bbl@error{year-out-range}{2014-2038}{}{}}%
101 \edef\bbl@tempd{\fpeval{ % (Julian) day
102 \bbl@cs@jd{#2}{#3}{#4} + 0.5 - 2400000 #1}}%
103 \count@\@ne
104 \bbl@foreach\bbl@cs@umalqura@data{%
105 \advance\count@\@ne
106 \ifnum##1>\bbl@tempd\else
107 \edef\bbl@tempe{\the\count@}%
108 \edef\bbl@tempb{##1}%
109 \fi}%
110 \edef\bbl@templ{\fpeval{ \bbl@tempe + 16260 + 949 }}% month~lunar
111 \edef\bbl@tempa{\fpeval{ floor((\bbl@templ - 1 ) / 12) }}% annus
112 \edef#5{\fpeval{ \bbl@tempa + 1 }}%
113 \edef#6{\fpeval{ \bbl@templ - (12 * \bbl@tempa) }}%
114 \edef#7{\fpeval{ \bbl@tempd - \bbl@tempb + 1 }}}
115 \bbl@add\bbl@precalendar{%
116 \bbl@replace\bbl@ld@calendar{-civil}{}%
117 \bbl@replace\bbl@ld@calendar{-umalqura}{}%
118 \bbl@replace\bbl@ld@calendar{+}{}%
119 \bbl@replace\bbl@ld@calendar{-}{}}
120 \endinput
121 %%
122 %% End of file `babel-ca-islamic.tex'.