diff options
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/windycity/american-windycity.lbx')
-rw-r--r-- | macros/latex/contrib/biblatex-contrib/windycity/american-windycity.lbx | 203 |
1 files changed, 203 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/windycity/american-windycity.lbx b/macros/latex/contrib/biblatex-contrib/windycity/american-windycity.lbx new file mode 100644 index 0000000000..ed734f9734 --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/windycity/american-windycity.lbx @@ -0,0 +1,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 |