blob: ab14578a30bda9f2b8342774b338e452790fd409 (
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
|
\ProvidesFile{cms-british.lbx}[2021/03/27 v 3.16 biblatex localization]
\InheritBibliographyExtras{british}
\DeclareBibliographyExtras{%
\savecommand\cms@datelong%
\savecommand\mkdaterangecomp%
\savecommand\mkdaterangeterse%
\savecommand\mkdaterangefull%
\savecommand\mkdaterangecompextra%
\savecommand\mkdaterangeterseextra%
\savecommand\mkdaterangefullextra%
\def\introductionname{Introduction}%
\def\sectionname{Section}%
\def\subsectionname{Subsection}%
\def\forewordname{Foreword}%
\def\notesname{Notes}%
\protected\def\mkjuridordinal#1{%
\begingroup
\@tempcnta0#1\relax\number\@tempcnta
\@whilenum\@tempcnta>100\do{\advance\@tempcnta-100\relax}%
\ifnum\@tempcnta>20
\@whilenum\@tempcnta>9\do{\advance\@tempcnta-10\relax}%
\fi
\ifcase\@tempcnta th\or st\or d\or d\else th\fi
\endgroup}%
\protected\def\mkdaterangecomp{%
\cms@mkbibrangetrunc{long}}%
\protected\def\mkdaterangeterse{%
\cms@mkbibrangetrunc{short}}%
\protected\def\mkdaterangefull{%
\cms@mkbibrangefull}%
\protected\def\mkdaterangecompextra{%
\cms@mkyearrangeextra[]{long}}%
\protected\def\mkdaterangeterseextra{%
\cms@mkyearrangeextra[]{short}}%
\protected\def\mkdaterangefullextra{%
\cms@mkyearrangeextra[1]}%
\protected\def\mkbibdatelong#1#2#3{%
\iffieldundef{#3}%
{}%
{\iftoggle{cms@ukord}%
{\mkbibordinal{\thefield{#3}}}%
{\stripzeros{\thefield{#3}}}%
\iffieldundef{#2}{}{\nobreakspace}}%
\iffieldundef{#2}%
{}%
{\mkbibmonth{\thefield{#2}}%
\iffieldundef{#1}{}{\space}}%
\iffieldbibstring{#1}%
{\bibstring{\thefield{#1}}}%
{\cmsdateeraprintpre{#1}\stripzeros{\thefield{#1}}}}%
\protected\def\mkbibdateshort#1#2#3{%
\iffieldundef{#3}
{}
{\mkdayzeros{\thefield{#3}}%
\iffieldundef{#2}{}{/}}%
\iffieldundef{#2}
{}
{\mkmonthzeros{\thefield{#2}}%
\iffieldundef{#1}{}{/}}%
\iffieldbibstring{#1}
{\bibstring{\thefield{#1}}}
{\cmsdateeraprintpre{#1}\mkyearzeros{\thefield{#1}}}}%
\protected\def\mkbibseasondateshort#1#2{%
\mkbibseason{\thefield{#2}}%
\iffieldundef{#1}{}{\space}%
\cmsdateeraprintpre{#1}\mkyearzeros{\thefield{#1}}}%
\protected\def\mkbibseasondatelong#1#2{%
\mkbibseason{\thefield{#2}}%
\iffieldundef{#1}{}{\space}%
\cmsdateeraprintpre{#1}\mkyearzeros{\thefield{#1}}}%
\protected\def\cmsmkdecade#1#2{%
\cms@tempcnta=\thefield{#2year}%
\divide\cms@tempcnta100
\multiply\cms@tempcnta100
\ifnumequal{\cms@tempcnta}{\thefield{#2year}}%
{\csuse{mkbibdate#1}{#2year}{}{}\cmsdateeraprint{#2year}}%
{\ifnumequal{\thefield{#2year}}{1}%
{\ifboolexpr{%
test {\ifdefstring\blx@dateera{christian}}%
and
test {\ifnumless{\thefield{#2year}}\blx@dateeraauto}%
}%
{\bibsstring{\blx@dateera@ce}\printdelim{dateeradelim}}%
{}}%
{}%
\csuse{mkbibdate#1}{#2year}{}{}%
\setunit{}%\blx@nounit%
\bibsstring{decade}%
\cmsdateeraprint{#2endyear}\clearfield{#2endyear}%
\usebibmacro{cmsparensextradate}%
\global\boolfalse{cms:extraparens}}}%
\protected\def\cmsmkcentury#1{%
\ifnumequal{\thefield{#1year}}{1}%
{\ifboolexpr{%
test {\ifdefstring\blx@dateera{christian}}%
and
test {\ifnumless{\thefield{#1year}}\blx@dateeraauto}%
}%
{\bibsstring{\blx@dateera@ce}\printdelim{dateeradelim}}%
{}%
\csuse{mkcmscentury}{#1year}%
\addnbspace%
\bibsstring{century}%
\cmsdateeraprint{#1endyear}\clearfield{#1endyear}%
\usebibmacro{cmsparensextradate}%
\global\boolfalse{cms:extraparens}}%
{\cmsdateeraprintpre{#1year}%
\csuse{mkcmscentury}{#1year}%
\addnbspace%
\bibsstring{century}%
\cmsdateeraprint{#1endyear}\clearfield{#1endyear}%
\usebibmacro{cmsparensextradate}%
\global\boolfalse{cms:extraparens}}}%
\protected\def\mkcmscentury#1{%
\cms@tempcnta=\numexpr\thefield{#1}/100+1%
\mkbibordinal{\the\cms@tempcnta}}%
\def\cms@datelong#1{\csname print#1date\endcsname}}%
\UndeclareBibliographyExtras{%
\restorecommand\cms@datelong%
\restorecommand\mkdaterangecomp%
\restorecommand\mkdaterangefull%
\restorecommand\mkdaterangeterse%
\restorecommand\mkdaterangecompextra%
\restorecommand\mkdaterangeterseextra%
\restorecommand\mkdaterangefullextra%
}%
\InheritBibliographyStrings{cms-american}
\endinput
|