blob: 95695f1697f5cd1f0b7c36117d9b577095d70f15 (
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
|
% $Id: cms-british.lbx,v 0.13 2018/01/09 19:00:27 dfussner Exp $
\ProvidesFile{cms-british.lbx}[2018/01/09 v 3.10 biblatex localization]
\InheritBibliographyExtras{british}
\DeclareBibliographyExtras{%
\savecommand\cms@datelong%
\savecommand\cms@datelongalt%
\savecommand\mkdaterangecomp%
\savecommand\mkdaterangeterse%
\savecommand\mkdaterangefull%
\savecommand\mkbibrangecomp%
\savecommand\mkbibrangeterse%
\savecommand\mkbibrangefull%
\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{%
\lbx@cms@mkbibrangetrunc{long}}%
\protected\def\mkdaterangeterse{%
\lbx@cms@mkbibrangetrunc{short}}%
\protected\def\mkdaterangefull{%
\lbx@cms@mkbibrangefull}%
\protected\def\mkbibrangecomp{%
\lbx@cms@mkbibrangetrunc{long}}%
\protected\def\mkbibrangeterse{%
\lbx@cms@mkbibrangetrunc{short}}%
\protected\def\mkbibrangefull{%
\lbx@cms@mkbibrangefull}%
\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}}}%
{\stripzeros{\thefield{#1}}}}% FIXME: dateeraprintpre{#1}
\def\cms@datelong{\printorigdate}%
\def\cms@datelongalt{\printdate}}%
\UndeclareBibliographyExtras{%
\restorecommand\cms@datelong%
\restorecommand\cms@datelongalt%
\restorecommand\mkdaterangecomp%
\restorecommand\mkdaterangefull%
\restorecommand\mkdaterangeterse%
\restorecommand\mkbibrangecomp%
\restorecommand\mkbibrangefull%
\restorecommand\mkbibrangeterse}%
\InheritBibliographyStrings{cms-american}
\protected\gdef\lbx@cms@mkbibrangetrunc#1#2{% DATE FIX
\iffieldundef{#2year}%
{\iffieldundef{#2month}%
{}%
{\printtext[#2date]{%
\iffieldsequal{#2month}{#2endmonth}%
{\csuse{mkbibdate#1}{}{}{#2day}}%
{\csuse{mkbibdate#1}{}{#2month}{#2day}}%
\iffieldundef{#2endyear}%
{\iffieldundef{#2endmonth}%
{}%
{\bibdatedash%
\csuse{mkbibdate#1}{}{#2endmonth}{#2endday}}}%
{\iffieldequalstr{#2endyear}{}%
{\mbox{\bibdatedash}}%
{\bibdatedash%
\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}}}}}%
{\printtext[#2date]{%
\iffieldsequal{#2year}{#2endyear}%
{\iffieldsequal{#2month}{#2endmonth}%
{\csuse{mkbibdate#1}{}{}{#2day}}%
{\ifthenelse{\iffieldundef{#2month}\AND\iffieldundef{#2day}}%
{\csuse{mkbibdate#1}{#2year}{}{}%
\clearfield{#2endyear}}% Clear up inheritance problem ???
{\csuse{mkbibdate#1}{}{#2month}{#2day}}}}%
{\csuse{mkbibdate#1}{#2year}{#2month}{#2day}}%
\iffieldundef{#2endyear}%
{}%
{\iffieldequalstr{#2endyear}{}%
{\mbox{\bibdatedash}}%
{\bibdatedash%
\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}}}}}
\protected\gdef\lbx@cms@mkbibrangefull#1#2{%
\ifthenelse{\iffieldundef{#2year}\AND\iffieldundef{#2month}}%
{}%
{\ifthenelse{\iffieldsequal{#2year}{#2endyear}\AND%
\iffieldundef{#2month}\AND\iffieldundef{#2day}}%
{\clearfield{#2endyear}}% Clear up inheritance problem ???
{}%
\printtext[#2date]{%
\csuse{mkbibdate#1}{#2year}{#2month}{#2day}%
\ifthenelse{\iffieldundef{#2endyear}\AND\iffieldundef{#2endmonth}}%
{}%
{\iffieldequalstr{#2endyear}{}%
{\mbox{\bibdatedash}}%
{\bibdatedash%
\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}}}}}
\endinput
|