summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/windycity/american-windycity.lbx
blob: ed734f97345c99ddc01f01446b3689b073d8b7be (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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
% Last modified: Wed 17 Jul 2019 09:45:17 AM CDT

% Copyright (c) 2018 Brian Michael Chase.
%
% Permission is granted to copy, distribute and/or modify this
% software under the terms of the LaTeX Project Public License (LPPL),
% version 1.3.
%
% The LPPL maintenance status of this software is 'author-maintained'.
%
% This software is provided 'as is', without warranty of any kind,
% either expressed or implied, including, but not limited to, the
% implied warranties of merchantability and fitness for a particular
% purpose.

\ProvidesFile{american-windycity.lbx}[2019/07/17 Windy City
  localization module for biblatex]
\InheritBibliographyExtras{american}
\InheritBibliographyStrings{american}

\DeclareBibliographyExtras{%
% Slightly modified from english.lbx:
  \expandafter\protected\expandafter\def\csname mkbibtime12h\endcsname#1#2#3#4{%
    \addcomma\space
    \stripzeros{\mktimehh{\thefield{#1}}}% needs '%'
    \bibtimesep
    \forcezerosmdt{\thefield{#2}}%
    \iffieldundef{#3}{}
      {\bibtimesep
       \forcezerosmdt{\thefield{#3}}}% needs '%'
     \space
     \ifnumless{\thefield{#1}}{12}
       {\bibstring{am}}%
       {\bibstring{pm}}%
    \iffieldundef{#4}{}
     {\space\bibtimezonesep
      \mkbibtimezone{\thefield{#4}}}}% needs '%'
% Overrides version in windycity.bbx:
  \protected\def\mkdaterangefull#1#2{%
    \begingroup
      \blx@metadateinfo{#2}%
      \ifboolexpr{ test {\iffieldundef{#2year}}
                   and test {\iffieldundef{#2month}}}
        {\blx@nounit}%
        {\ifboolexpr{ test {\iffieldundef{#2endyear}}
                      and test {\iffieldundef{#2endmonth}}}
           {\printtext[#2date]{%
              \datecircaprint
              \iffieldundef{#2season}
                {\csuse{mkbibdate#1}{#2year}{#2month}{#2day}%
                 \blx@printtime{#2}{}}%
                {\csuse{mkbibseasondate#1}{#2year}{#2season}}%
              \dateuncertainprint
              \dateeraprint{#2year}}}
           {\iffieldundef{#2year}
              {\iffieldundef{#2day}
                 {\csuse{mkmonthrange}{#1}{#2}}%
                 {\csuse{mkmonthdayrange}{#1}{#2}}}
              {\iffieldsequal{#2year}{#2endyear}
                 {\iffieldundef{#2day}
                    {\csuse{mkmonthrange}{#1}{#2}}%
                    {\csuse{mkmonthdayrange}{#1}{#2}}}
                 {\csuse{mkmonthdayyearrange}{#1}{#2}}}}}% needs '%'
    \endgroup}%
% For ranges of months with no year (June--August) and months in the
% same year (June--August 2001). Also applies to articles with
% two-month publication dates, both with a year (June/July 2001) and
% without (June/July).
  \protected\def\mkmonthrange#1#2{%
    \printtext[#2date]{%
      \datecircaprint
      \csuse{mkbibdate#1}{}{#2month}{}%
      \dateuncertainprint
      \ifboolexpr{ test {\ifentrytype{article}}
                   and test {\ifstrequal{#2}{}}}
        {\ifnumcomp{\thefield{#2endmonth} - \thefield{#2month}}{=}{1}
          {\addslash}%
          {\bibdaterangesep}}%
        {\bibdaterangesep}%
      \enddatecircaprint
      \csuse{mkbibdate#1}{#2endyear}{#2endmonth}{}%
      \enddateuncertainprint
      \dateeraprint{#2endyear}}}
% For ranges of days and months with no year (June 3--July 1), days
% in the same month and year (June 3--4, 2001), and days and months in
% the same year (June 3--July 1, 2001):
  \protected\def\mkmonthdayrange#1#2{%
    \printtext[#2date]{%
      \datecircaprint
      \csuse{mkbibdate#1}{}{#2month}{#2day}%
      \blx@printtime{#2}{}%
      \dateuncertainprint
      \bibdaterangesep
      \enddatecircaprint
      \iffieldsequal{#2month}{#2endmonth}
        {\csuse{mkbibdate#1}{#2endyear}{}{#2endday}}%
        {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}}%
      \blx@printtime{#2}{end}%
      \enddateuncertainprint
      \dateeraprint{#2endyear}}}
% For ranges of days, months, and years (June 3, 2001--July 1, 2002):
  \protected\def\mkmonthdayyearrange#1#2{%
    \printtext[#2date]{%
      \datecircaprint
      \iffieldundef{#2season}
        {\csuse{mkbibdate#1}{#2year}{#2month}{#2day}%
         \blx@printtime{#2}{}}%
        {\csuse{mkbibseasondate#1}{#2year}{#2season}}%
      \dateuncertainprint
      \dateeraprint{#2year}%
      \iffieldequalstr{#2endyear}{}
        {\mbox{\bibdaterangesep}}%
        {\bibdaterangesep
         \enddatecircaprint
         \iffieldundef{#2season}
           {\csuse{mkbibdate#1}{#2endyear}{#2endmonth}{#2endday}%
            \blx@printtime{#2}{end}}%
           {\csuse{mkbibseasondate#1}{#2endyear}{#2endseason}}%
         \enddateuncertainprint
         \dateeraprint{#2endyear}}}}
}

\NewBibliographyString{by}
\NewBibliographyString{compiler}
\NewBibliographyString{compiler+}
\NewBibliographyString{comptrans}
\NewBibliographyString{comptrans+}
\NewBibliographyString{editor+}
\NewBibliographyString{edtrans}
\NewBibliographyString{edtrans+}
\NewBibliographyString{expanded}
\NewBibliographyString{noplace}
\NewBibliographyString{of}
\NewBibliographyString{origpub}
\NewBibliographyString{part}
\NewBibliographyString{revised}
\NewBibliographyString{review}
\NewBibliographyString{reviewnoauth}
\NewBibliographyString{reprint}
\NewBibliographyString{reprinted}
\NewBibliographyString{selfpub}
\NewBibliographyString{special}
\NewBibliographyString{subverbo}
\NewBibliographyString{subverbos}
\NewBibliographyString{transcomp}
\NewBibliographyString{transcomp+}
\NewBibliographyString{transed}
\NewBibliographyString{transed+}

\DeclareBibliographyStrings{%
  am            = {{a\adddot m\adddot}{a\adddot m\adddot}},
  afterword     = {{afterword to}{afterword to}},
  andothers     = {{et\addabbrvspace al\adddot}{et\addabbrvspace al\adddot}},
  by            = {{by}{by}},
  bibliography  = {{Bibliography}{Bibliography}},
  chapter       = {{chap\adddot}{chap\adddot}},
  citedas       = {{hereafter cited as}{hereafter cited as}},
  compiler      = {{compiled by}{comp\adddot}},
  compiler+     = {{compiled by}{comps\adddot}},
  comptrans     = {{compiled and translated by}{comp\adddotspace and trans\adddot}},
  comptrans+    = {{compiled and translated by}{comps\adddotspace and trans\adddot}},
  edition       = {{ed\adddot}{ed\adddot}},
  editor        = {{edit\-ed by}{ed\adddot}},
  editor+       = {{edit\-ed by}{eds\adddot}},
  edtrans       = {{edit\-ed and translated by}{ed\adddotspace and trans\adddot}},
  edtrans+      = {{edit\-ed and translated by}{eds\adddotspace and trans\adddot}},
  expanded      = {{exp\adddotspace ed\adddot}{exp\adddotspace ed\adddot}},
  foreword      = {{foreword to}{foreword to}},
  forthcoming   = {{forthcoming}{forthcoming}},
  in            = {{in}{in}},
  introduction  = {{introduction to}{introduction to}},
  ibidem        = {{ibid\adddot}{ibid\adddot}},
  mathesis      = {{master's thesis}{master's thesis}},
  nodate        = {{\lowercase{n}\adddot d\adddot}{\lowercase{n}\adddot d\adddot}},
  noplace       = {{N\adddot p\adddot}{n\adddot p\adddot}},
  of            = {{of}{of}},
  origpub       = {{originally published as}{orig\adddotspace published as}},
  page          = {{Page}{Page}},   % assures proper case in 'pageref'
  pages         = {{Pages}{Pages}}, % assures proper case in 'pageref'
  phdthesis     = {{PhD diss\adddot}{PhD diss\adddot}},
  pm            = {{p\adddot m\adddot}{p\adddot m\adddot}},
  references    = {{Bibliography}{Bibliography}},
  reprint       = {{reprint}{repr\adddot}},
  reprinted     = {{reprinted in}{reprinted in}},
  review        = {{review of}{review of}},
  reviewnoauth  = {{unsigned review of}{unsigned review of}},
  revised       = {{rev\adddotspace ed\adddot}{rev\adddotspace ed\adddot}},
  selfpub       = {{Self-published}{self-pub\adddot}},
  special       = {{special issue}{special issue}},
  subverbo      = {{s\adddot v\adddot}{s\adddot v\adddot}},
  subverbos     = {{s\adddot vv\adddot}{s\adddot vv\adddot}},
  transcomp     = {{translated and compiled by}{trans\adddotspace and comp\adddot}},
  transcomp+    = {{translated and compiled by}{trans\adddotspace and comps\adddot}},
  transed       = {{translated and edited by}{trans\adddotspace and ed\adddot}},
  transed+      = {{translated and edited by}{trans\adddotspace and eds\adddot}},
  translator    = {{translated by}{trans\adddot}},
  part          = {{pt\adddot}{pt\adddot}},
  urlseen       = {{accessed}{accessed}},
  volume        = {{vol\adddot}{vol\adddot}},
  volumes       = {{vols\adddot}{vols\adddot}}
}

\endinput