diff options
author | Karl Berry <karl@freefriends.org> | 2022-03-21 20:32:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-03-21 20:32:12 +0000 |
commit | 727a4f56d4f9d5062476989f3bb1df753db96458 (patch) | |
tree | 53703befe10aaea290400b2ec201967031ba639f /Master/texmf-dist/tex | |
parent | 807a6a930a6080b9d7914fb097079c995c930f87 (diff) |
biblatex-iso690 (21mar22) (branch)
git-svn-id: svn://tug.org/texlive/branches/branch2021.final@62867 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
23 files changed, 387 insertions, 95 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/bulgarian-iso.lbx b/Master/texmf-dist/tex/latex/biblatex-iso690/bulgarian-iso.lbx index 858f936995f..3f596587e9d 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/bulgarian-iso.lbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/bulgarian-iso.lbx @@ -1,5 +1,5 @@ \ProvidesFile{bulgarian-iso.lbx} - [2020/03/25 v0.4.0 ISO 690 extended biblatex localization] + [2022/03/20 v0.4.1 ISO 690 extended biblatex localization] \InheritBibliographyExtras{bulgarian} \InheritBibliographyStrings{bulgarian} @@ -25,6 +25,10 @@ {онлайн}}, film = {{филм}% {филм}}, +% application = {{}% +% {}},% FIXME: missing +% publication = {{}% +% {}},% FIXME: missing } \endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/czech-iso.lbx b/Master/texmf-dist/tex/latex/biblatex-iso690/czech-iso.lbx index ff7967e00fa..8e1dc21366d 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/czech-iso.lbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/czech-iso.lbx @@ -1,5 +1,5 @@ \ProvidesFile{czech-iso.lbx} - [2020/03/25 v0.4.0 ISO 690 extended biblatex localization] + [2022/03/20 v0.4.1 ISO 690 extended biblatex localization] \InheritBibliographyExtras{czech} \InheritBibliographyStrings{czech} @@ -25,6 +25,10 @@ {online}}, film = {{film}% {film}}, + application = {{p\v{r}ihl\'{a}\v{s}ka}% + {p\v{r}ihl\adddot}}, + publication = {{publikov\'{a}no}% + {publ\adddot}}, } \endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/english-iso.lbx b/Master/texmf-dist/tex/latex/biblatex-iso690/english-iso.lbx index 916128b6b8a..a627d0171ba 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/english-iso.lbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/english-iso.lbx @@ -1,5 +1,5 @@ \ProvidesFile{english-iso.lbx} - [2020/03/25 v0.4.0 ISO 690 extended biblatex localization] + [2022/03/20 v0.4.1 ISO 690 extended biblatex localization] \InheritBibliographyExtras{english} \InheritBibliographyStrings{english} @@ -23,6 +23,10 @@ {online}}, film = {{film}% {film}}, + application = {{application}% + {appl\adddot}}, + publication = {{publication}% + {publ\adddot}}, } \endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/french-iso.lbx b/Master/texmf-dist/tex/latex/biblatex-iso690/french-iso.lbx index e249655c719..e5c880c076c 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/french-iso.lbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/french-iso.lbx @@ -1,5 +1,5 @@ \ProvidesFile{french-iso.lbx} - [2020/03/25 v0.4.0 ISO 690 extended biblatex localization] + [2022/03/20 v0.4.1 ISO 690 extended biblatex localization] \InheritBibliographyExtras{french} \InheritBibliographyStrings{french} @@ -30,6 +30,10 @@ {en ligne}}, film = {{film}% {film}}, +% application = {{}% +% {}},% FIXME: missing +% publication = {{}% +% {}},% FIXME: missing } \endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/german-iso.lbx b/Master/texmf-dist/tex/latex/biblatex-iso690/german-iso.lbx index 7146b27e7ca..ccfebd27772 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/german-iso.lbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/german-iso.lbx @@ -1,5 +1,5 @@ \ProvidesFile{german-iso.lbx} - [2020/03/25 v0.4.0 ISO 690 extended biblatex localization] + [2022/03/20 v0.4.1 ISO 690 extended biblatex localization] \InheritBibliographyExtras{german} \InheritBibliographyStrings{german} @@ -11,18 +11,22 @@ {betreut von}}, urlalso = {{auch verf\"{u}gbar unter} {auch verf\"{u}gbar unter}}, -% director = {{}% -% {}},% FIXME: missing -% bydirector = {{}% -% {}},% FIXME: missing -% inventor = {{}% -% {}},% FIXME: missing -% byinventor = {{}% -% {}},% FIXME: missing -% online = {{}% -% {}},% FIXME: missing -% film = {{}% -% {}},% FIXME: missing + director = {{Regisseur} + {Regisseur}}, + bydirector = {{Regie} + {Regie}}, + inventor = {{Erfinder} + {Erfinder}}, + byinventor = {{erfunden von} + {erfunden von}}, + online = {{online} + {online}}, + film = {{Film} + {Film}}, + application = {{Anmeldung} + {Anmeldung}}, + publication = {{Veröffentlichungstag} + {Veröffentlichungstag}}, } \endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.bbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.bbx index beef88d4146..1c6c71be3fb 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.bbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-alphabetic.bbx} - [2020/03/25 v0.4.0 ISO 690 biblatex bibliography style] + [2022/03/20 v0.4.1 ISO 690 biblatex bibliography style] % This is a copy of alphabetic.bbx % It only uses iso as base style, instead of standard diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.cbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.cbx index 2d90c118d0a..34ee9223d56 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.cbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-alphabetic.cbx} - [2020/03/25 v0.4.0 ISO 690 biblatex citation style] + [2022/03/20 v0.4.1 ISO 690 biblatex citation style] \RequireCitationStyle{alphabetic} diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.dbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.dbx index 2248f37e35e..98dfa301952 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.dbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-alphabetic.dbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-alphabetic.dbx} - [2020/03/25 v0.4.0 ISO 690 biblatex data model extension] + [2022/03/20 v0.4.1 ISO 690 biblatex data model extension] \RequireBiber[3] diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.bbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.bbx index ab683014ce0..298c5a04e7e 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.bbx @@ -1,9 +1,42 @@ \ProvidesFile{iso-authortitle.bbx} - [2020/03/25 v0.4.0 ISO 690 biblatex bibliography style] + [2022/03/20 v0.4.1 ISO 690 biblatex bibliography style] \RequireBibliographyStyle{iso} \ExecuteBibliographyOptions{% sorting=nty, } +% Sorting based on the default definition, but adding +% holder and origyear to work with patent entry types. +\DeclareSortingTemplate{nty}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{holder} + \field{author} + \field{editor} + \field{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{origyear} + \field{year} + } + \sort{ + \field{volume} + \literal{0} + } +} + \endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.cbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.cbx index 8226b9bc92f..a6df2b4dbbc 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.cbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-authortitle.cbx} - [2020/03/25 v0.4.0 ISO 690 biblatex citation style] + [2022/03/20 v0.4.1 ISO 690 biblatex citation style] \ExecuteBibliographyOptions{% maxcitenames=1, diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.dbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.dbx index f6d17afa406..60f65fdb6df 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.dbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authortitle.dbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-authortitle.dbx} - [2020/03/25 v0.4.0 ISO 690 biblatex data model extension] + [2022/03/20 v0.4.1 ISO 690 biblatex data model extension] \RequireBiber[3] diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.bbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.bbx index 6a8da0a12d4..ae08a57a398 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.bbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-authoryear.bbx} - [2020/03/25 v0.4.0 ISO 690 biblatex bibliography style] + [2022/03/20 v0.4.1 ISO 690 biblatex bibliography style] \RequireBibliographyStyle{iso} \ExecuteBibliographyOptions{% @@ -54,33 +54,33 @@ \renewbibmacro*{date}{}% % Overwrite names:primary to print year right after: +% 0) holder (only for patents) % 1) author % 2) editor % 3) label/title % Need to handle not to print editor twice (primary % and subsidiary names): editor macro includes \clearname{editor} \renewbibmacro*{names:primary}{% - % First check if we have author(s) available - \ifboolexpr{ - test \ifuseauthor - and - not test {\ifnameundef{author}} - } - {\usebibmacro{author}% - \setunit{\addspace}% - \printfield{nameaddon}% - \setunit{\printdelim{nameyeardelim}}}% - {% If no author(s) is available, check for editor(s) - \ifboolexpr{ - test \ifuseeditor - and - not test {\ifnameundef{editor}} - } + % If we have a patent with holder field, we will use that. + \ifboolexpr{test \ifuseholder and test {\ifentrytype{patent}} + and not test {\ifnameundef{holder}}} + {\usebibmacro{byholder}% + \setunit{\addspace}% + \printfield{nameaddon}% + \setunit{\printdelim{nameyeardelim}}}% + {% Otherwise, first check if we have author(s) available + \ifboolexpr{test \ifuseauthor and not test {\ifnameundef{author}}} + {\usebibmacro{author}% + \setunit{\addspace}% + \printfield{nameaddon}% + \setunit{\printdelim{nameyeardelim}}}% + {% If no author(s) is available, check for editor(s) + \ifboolexpr{test \ifuseeditor and not test {\ifnameundef{editor}}} {\usebibmacro{editor}% - \setunit{\printdelim{nameyeardelim}}}% + \setunit{\printdelim{nameyeardelim}}}% {% If no editor(s) is available, use label/title - \usebibmacro{labeltitle}% - \setunit{\printdelim{nonameyeardelim}}}}% + \usebibmacro{labeltitle}% + \setunit{\printdelim{nonameyeardelim}}}}}% % And finally print date \usebibmacro{date+extradate}% } @@ -96,6 +96,17 @@ {\printfield[title]{shorttitle}}} {\printfield{label}}} +\renewbibmacro*{urldate-space}{% + % if there is no publisher specified in the bib file, set unit to dot, + % so there is a separation between previous block + % this version doesn't check date, as it isn't printed in the publisher block + \ifboolexpr{% + test {\iflistundef{publisher}}% + and test {\iflistundef{location}}% + and test {\iffieldundef{version}}% + }{\setunit{\adddot\addspace}}% + {\setunit{\addspace}}% +} \newbool{bbx@inset} \DeclareBibliographyDriver{set}{% diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.cbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.cbx index abdd15db203..780cb53eea9 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.cbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-authoryear.cbx} - [2020/03/25 v0.4.0 ISO 690 biblatex citation style] + [2022/03/20 v0.4.1 ISO 690 biblatex citation style] % Use only one name in citation to be consistent \ExecuteBibliographyOptions{% diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.dbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.dbx index 8b08856bba5..9b0e106bf46 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.dbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-authoryear.dbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-authoryear.dbx} - [2020/03/25 v0.4.0 ISO 690 biblatex data model extension] + [2022/03/20 v0.4.1 ISO 690 biblatex data model extension] \RequireBiber[3] diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-fullcite.cbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-fullcite.cbx index 4e3af0c95a8..82960e2cee1 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-fullcite.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-fullcite.cbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-fullcite.cbx} - [2020/03/25 v0.4.0 ISO 690 biblatex fullcite modifications] + [2022/03/20 v0.4.1 ISO 690 biblatex fullcite modifications] % Fix for fullcite diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.bbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.bbx index c4bb9b742b7..db50802ba5a 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.bbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-numeric.bbx} - [2020/03/25 v0.4.0 ISO 690 biblatex bibliography style] + [2022/03/20 v0.4.1 ISO 690 biblatex bibliography style] \RequireBibliographyStyle{iso} \ExecuteBibliographyOptions{% diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.cbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.cbx index a7dbe8e9701..73806fc3f71 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.cbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-numeric.cbx} - [2020/03/25 v0.4.0 ISO 690 biblatex citation style] + [2022/03/20 v0.4.1 ISO 690 biblatex citation style] \RequireCitationStyle{numeric} \RequireCitationStyle{iso-fullcite} diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.dbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.dbx index 6cf14fe74e1..c6a41c48b54 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.dbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso-numeric.dbx @@ -1,5 +1,5 @@ \ProvidesFile{iso-numeric.dbx} - [2020/03/25 v0.4.0 ISO 690 biblatex data model extension] + [2022/03/20 v0.4.1 ISO 690 biblatex data model extension] \RequireBiber[3] diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/iso.bbx b/Master/texmf-dist/tex/latex/biblatex-iso690/iso.bbx index ce2668f718b..a43c6a81e9b 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/iso.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/iso.bbx @@ -1,13 +1,15 @@ \ProvidesFile{iso.bbx} - [2020/03/25 v0.4.0 ISO 690 biblatex bibliography style] + [2022/03/20 v0.4.1 ISO 690 biblatex bibliography style] % Currently available language mappings: -% Czech, English, Slovak, German, Polish, Bulgarian, -% French +% Czech, English, German, Polish, Slovak, and more. +% You can list them directly with `$ ls *lbx`. +% Or you can check the translation matrix at the wiki page: +% https://github.com/michal-h21/biblatex-iso690/wiki/Translation-Guideline#translation-matrix \DeclareLanguageMappingSuffix{-iso} % Currently needed the following additional language strings: \NewBibliographyString{at,bysupervisor,urlalso, - director,bydirector,inventor,byinventor,online,film} + director,bydirector,inventor,byinventor,online,film,application,publication} % PACKAGE OPTIONS @@ -22,6 +24,8 @@ \newtoggle{bbx:doi} \newtoggle{bbx:eprint} \newtoggle{bbx:articlepubinfo} +\newtoggle{bbx:currentlang} +\newtoggle{bbx:noenddot} % Print info about package options into .log file \protected\def\isoblx@info@noline#1{% @@ -48,7 +52,7 @@ \DeclareBibliographyOption{thesisinfoinnotes}[true]{% \settoggle{bbx:thesisinfoinnotes}{#1}% - \isoblx@info@noline{Printing thesis info at the end enabled: #1}} + \isoblx@info@noline{Thesis info in the notes section enabled: #1}} \DeclareBibliographyOption{url}[true]{% \settoggle{bbx:url}{#1}% @@ -70,6 +74,15 @@ \settoggle{bbx:articlepubinfo}{#1}% \isoblx@info@noline{Article publication info enabled: #1}} +\DeclareBibliographyOption{currentlang}[true]{ + \settoggle{bbx:currentlang}{#1}% + \isoblx@info@noline{Use current language for the bibliography: #1}} + +\DeclareBibliographyOption{noenddot}[true]{ + \settoggle{bbx:noenddot}{#1}% + \isoblx@info@noline{Use no end dot for the bibliography entries: #1}} + + % Set default package options \ExecuteBibliographyOptions{% spacecolon=false, @@ -87,8 +100,11 @@ autolang=other,% Use the 'langid' language for the entry date=year,% Use only years urldate=iso,% Use ISO8601 Extended Format (yyyy-mm-dd) for URL 'seen' dates - seconds=true,% ISO8601 format requires 'seconds=true' + origdate=iso,% Use ISO8601 Extended Format (yyyy-mm-dd) for patent appl. dates + seconds=true,% iso (ISO8601) format requires 'seconds=true' datecirca=true,% Use circa for approximate dates + currentlang=false,% Use main document language for printing of bibliography strings + noenddot=false,% Use an end dot for the bibliography entries } % Default definitions of beginning and closing macro @@ -113,6 +129,13 @@ % The separator between 'dates' and the numeration section \newcommand{\numerationpunct}{\addcomma\space} +% No seperator or a dot at the very end of an entry +\renewcommand{\finentrypunct}{% + \iftoggle{bbx:noenddot} + {} + {\addperiod}% +} + % A colon preceded with or without space \newcommand{\addspacecolon}{% \iftoggle{bbx:spcolon} @@ -227,6 +250,11 @@ {\mainlangbibstring{#1}} {#1}% } +\DeclareFieldFormat[patent]{type}{% + \ifbibstring{#1} + {\mainlangbiblstring{#1}} + {#1}% +} % Format supervisor of thesis (precedes the name with a localisation string) \DeclareFieldFormat{supervisor}{% @@ -300,19 +328,64 @@ {#1}}% This is the go-to format } +% Define names to consider for 'labelname', based on +% the default definition, but adding holder as the +% very first choice for patents. +\DeclareLabelname[patent]{% + \field{holder} + \field{shortauthor} + \field{author} + \field{shorteditor} + \field{editor} + \field{translator} +} + % Define dates to consider for 'labeldate', based on % the default definition, but without 'urldate' field, % preventing printing url seen date in place of the year % of a publication. \DeclareLabeldate{% + \field{origdate}% <----- used by patents \field{date} \field{year} \field{dateaddon}% <---- biblatex-iso690 data model extension \field{eventdate} - \field{origdate} \literal{nodate} } +% Sorting based on the default definition, but adding +% holder and origyear to work with patent entry types. +\DeclareSortingTemplate{nyt}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sortname} + \field{holder} + \field{author} + \field{editor} + \field{translator} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{origyear} + \field{year} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{volume} + \literal{0} + } +} + % Format chapter of book with preceding localisation string \DeclareFieldFormat{chapter}{\bibstring{chapter}\addnbspace#1\isdot} @@ -354,6 +427,26 @@ % given (first) name followed by last (family) name, % so it may sound more naturally in this order \DeclareNameAlias{supervisor}{given-family} +% For patents, the author field is supposed to be the inventor +% of the patent, which we want to have in reverse name order, +% since it may sound more naturally in this order +\DeclareNameAlias[patent]{author}{given-family} +% However, if there is no holder field for a patent, +% author field should be in the default order since it acts +% as a primary creator of the patent at the beginning +% of the bib reference (consistency rule) +\DeclareStyleSourcemap{ + \maps[datatype=bibtex]{ + \map{ + \pertype{patent} + \step[fieldsource=author] + \step[fieldset=holder, origfieldval] + } + } +} + + + % BIBLIOGRAPHY MACROS @@ -362,15 +455,16 @@ % Based on author/editor macro % Adds nameaddon field to author names \newbibmacro*{names:primary}{% - \ifboolexpr{ - test \ifuseauthor - and - not test {\ifnameundef{author}} - } - {\usebibmacro{author}% - \setunit{\addspace}% - \printfield{nameaddon}}% - {\usebibmacro{editor}}% + \ifboolexpr{test \ifuseholder and test {\ifentrytype{patent}} + and not test {\ifnameundef{holder}}} + {\usebibmacro{byholder}% + \setunit{\addspace}% + \printfield{nameaddon}}% + {\ifboolexpr{test \ifuseauthor and not test {\ifnameundef{author}}} + {\usebibmacro{author}% + \setunit{\addspace}% + \printfield{nameaddon}}% + {\usebibmacro{editor}}}% } % Macro for secondary authors with their role @@ -398,6 +492,16 @@ \printnames{supervisor}}% } +% Macro for printing the inventor of a patent +\newbibmacro*{patentinventor}{% + \ifnameundef{author} + {} + {\mainlangbibstring{inventor}% + \setunit{\addcolon\space}% + \usebibmacro{author}}% +} + + % TITLES MACROS % Macro for formatting <prefix>titles @@ -432,7 +536,8 @@ \newbibmacro{multi:titles}{% \iffieldundef{maintitle} {\iffieldundef{booktitle} - {\usebibmacro{titles}{}{emph}} + {\usebibmacro{titles}{}{emph}% + \usebibmacro{volume}} {\usebibmacro{titles}{book}{emph}% \usebibmacro{volume}% \usebibmacro{titles}{}{}}}% @@ -462,6 +567,7 @@ {\usebibmacro{titles}{issue}{}}% } + % MEDIUM TYPE MACROS \newbibmacro*{medium-type}{% @@ -476,7 +582,7 @@ or test {\ifentrytype{online}}) } % Use a localisation string 'online' in the main document language - {\mainlangbibstring[\mkbibbrackets]{online}}% + {\midsentence\mainlangbibstring[\mkbibbrackets]{online}}% {}}% Don't print anything {% The only situation when we don't want to print % 'howpublished' field is when @@ -495,6 +601,9 @@ {\printfield{howpublished}}}% } + + + % PUBLICATION INFO MACROS % By default only year is used, but for some entries, @@ -523,18 +632,23 @@ } % Based on publisher+location+date macro (defined in standard.bbx) -% Differs only in punctuation +% Differs only in punctuation, and printing the organization field % % Wrapper for printing normal or full date. 1st argument: -% * empty: \usebibmacro{date} -% * 'full': \usebibmacro{fulldate} +% a) <empty>: \usebibmacro{date} +% b) 'full' : \usebibmacro{fulldate} \newbibmacro*{location+publisher+dateform}[1]{% \printlist{location}% - \iflistundef{publisher} + \ifboolexpr{ + test {\iflistundef{publisher}} + and + test {\iflistundef{organization}}} {\setunit*{\addcomma\space}} {\setunit*{\subtitlepunct}}% <---- different punctuation \printlist{publisher}% \setunit*{\addcomma\space}% + \printlist{organization}% + \setunit*{\addcomma\space}% \usebibmacro{#1date}% \newunit} @@ -544,6 +658,25 @@ \newbibmacro*{location+publisher+fulldate}{% \usebibmacro{location+publisher+dateform}{full}} + + +% ADDITIONAL DATE MACROS FOR PATENTS + +% Application date +\newbibmacro{applicationdate}{% + \iffieldundef{origyear} + {} + {\mainlangbibstring{application}\addcolon\space\printorigdate} +} + +% Publication date +\newbibmacro{publicationdate}{% + \iffieldundef{year} + {} + {\mainlangbibstring{publication}\addcolon\space\usebibmacro{fulldate}} +} + + % NUMERATION MACROS \newbibmacro*{serial:numeration}{% @@ -560,6 +693,7 @@ \printfield{chapter}% } + % SERIES TITLE AND NUMBER MACROS % Based on series+number macro (defined in standard.bbx) @@ -570,6 +704,7 @@ \printfield{number}% }% + % STANDARD IDENTIFIERS MACROS % Bunch of standard identifiers @@ -590,6 +725,7 @@ {}% } + % AVAILABILITY AND ACCESS MACROS % Precedes DOI field with urlfrom localisation string @@ -634,6 +770,18 @@ {}% } +\newbibmacro*{urldate-space}{% + % if there is no publisher specified in the bib file, set unit to dot, + % so there is a separation between previous block + \ifboolexpr{% + test {\iflistundef{publisher}}% + and test {\iflistundef{location}}% + and test {\iffieldundef{date}}% + and test {\iffieldundef{version}}% + }{\setunit{\adddot\addspace}}% + {\setunit{\addspace}}% +} + % The url seen date of @online entries is always printed \renewbibmacro*{urldate}{% \ifboolexpr{ @@ -644,6 +792,7 @@ {}% } + % LOCATION MACROS % Additional location information (e.g. library, repository) @@ -654,6 +803,7 @@ \printfield{library}}% } + % OTHER MACROS % Redeclare in: bibmacro to use the main document language. @@ -673,6 +823,7 @@ \printunit{\intitlepunct}% } + % BIBLATEX CORE ADJUSTMENTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -692,19 +843,32 @@ \newrobustcmd*{\blx@imc@mainlangbibsstring}[2][\@firstofone]{% \blx@mainlangbibstring{#1}{abx@sstr}{#2}} +% We use Babel or Polyglossia main document language for some +% bibliography strings. With currentlang option, the currently +% selected language is used instead. It is useful in some classes +% that don't support selection of the main language. +% https://github.com/michal-h21/biblatex-iso690/issues/90 +\newcommand\blx@selectlangmacro{% + \ifboolexpr{% + test {\iftoggle{bbx:currentlang}}% + and test {\ifdef{\textouterlang}}% + }% + {\let\iso@mainlang\textouterlang}{\let\iso@mainlang\textmainlang}% +} + \protected\def\blx@mainlangbibstring#1#2#3{% - {\mainlang% <---- use main document language - \blx@begunit - \blx@hyphenreset - \blx@bibstringsimple + \blx@begunit% + \blx@hyphenreset% + \blx@bibstringsimple% + \blx@selectlangmacro% \lowercase{\edef\blx@tempa{#3}}% - \ifcsundef{#2@\blx@tempa} - {\blx@warn@nostring\blx@tempa - \blx@endnounit} - {\blx@imc@ifcapital - {#1{\MakeCapital{\csuse{#2@\blx@tempa}}}} - {#1{\csuse{#2@\blx@tempa}}}% - \blx@endunit}}} + \ifcsundef{#2@\blx@tempa}% + {\blx@warn@nostring\blx@tempa% + \blx@endnounit}% + {\blx@imc@ifcapital% + {\iso@mainlang{#1{\MakeCapital{\csuse{#2@\blx@tempa}}}}}% + {\iso@mainlang{#1{\csuse{#2@\blx@tempa}}}}% + \blx@endunit}} \blx@regimcs{% \mainlangbibstring \mainlangbiblstring \mainlangbibsstring @@ -988,7 +1152,7 @@ {\blx@nounit} {\printtext[{#1date}]{% \datecircaprint - % Such a season component can only come from an ISO8601 season which replaces + % Such a season component can only come from an ISO8601 season which replaces % a normal month so if it exists, we know that a normal date print is ruled out \iffieldundef{#1season} {\blx@ymddate{#1}{}% @@ -1061,13 +1225,15 @@ \usebibmacro{names:subsidiary}% \newunit\newblock \usebibmacro{location+publisher+date}% - \newunit + \newunit% \printfield{version}% - \setunit{\addspace}% + \usebibmacro{urldate-space}% \usebibmacro{urldate}% \newunit\newblock \usebibmacro{series+number}% \newunit\newblock + \printfield{volumes} + \newunit\newblock \usebibmacro{identifier}% \newunit\newblock \usebibmacro{availability+access}% @@ -1250,7 +1416,7 @@ \usebibmacro{location+publisher+fulldate}% \newunit \printfield{version}% - \setunit{\addspace}% + \usebibmacro{urldate-space}% \usebibmacro{urldate}% \newunit\newblock \usebibmacro{series+number}% @@ -1281,7 +1447,7 @@ \usebibmacro{location+publisher+date}% \newunit \printfield{version}% - \setunit{\addspace}% + \usebibmacro{urldate-space}% \usebibmacro{urldate}% \newunit\newblock \usebibmacro{identifier}% @@ -1326,7 +1492,7 @@ \usebibmacro{location+publisher+fulldate}% \newunit \printfield{version}% - \setunit{\addspace}% + \usebibmacro{urldate-space}% \usebibmacro{urldate}% \newunit\newblock \iffieldundef{type} @@ -1360,28 +1526,33 @@ \newunit\newblock \usebibmacro{names:subsidiary}% \newunit\newblock + \usebibmacro{patentinventor}% + \newunit + \usebibmacro{publicationdate}% + \newunit + \usebibmacro{applicationdate}% + \newunit + \printfield{note}% + \newunit\newblock \printlist{location}% \newunit\newblock \iffieldundef{type} {} {\printfield{type}% - \setunit*{\addcomma\space}}% + \setunit*{\addspace}}% \printfield{number}% \newunit\newblock - \usebibmacro{fulldate}% - \setunit{\addspace}% \usebibmacro{urldate}% \newunit\newblock \usebibmacro{availability+access}% \newunit\newblock - \printfield{note}% - \newunit\newblock \setunit{\bibpagerefpunct}\newblock \usebibmacro{pageref}% \usebibmacro{finentry}}% % BIBLIOGRAPHY ALIASES +\DeclareBibliographyAlias{mvbook}{book} \DeclareBibliographyAlias{bookinbook}{inbook} \DeclareBibliographyAlias{suppbook}{inbook} \DeclareBibliographyAlias{booklet}{book} diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/ngerman-iso.lbx b/Master/texmf-dist/tex/latex/biblatex-iso690/ngerman-iso.lbx new file mode 100644 index 00000000000..fe95d8de6b3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/ngerman-iso.lbx @@ -0,0 +1,14 @@ +\ProvidesFile{ngerman-iso.lbx} + [2022/03/20 v0.4.1 ISO 690 extended biblatex localization] + +\InheritBibliographyExtras{ngerman} +\InheritBibliographyStrings{ngerman} + +% 'ngerman.lbx' inherits from 'german.lbx', +% so biblatex recursively loads also 'german-iso.lbx'. +% In case some strings should differ between german +% and ngerman, let's override them below. +\DeclareBibliographyStrings{% +} + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/polish-iso.lbx b/Master/texmf-dist/tex/latex/biblatex-iso690/polish-iso.lbx index b3b7f148daf..6ede0c40bef 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/polish-iso.lbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/polish-iso.lbx @@ -1,5 +1,5 @@ \ProvidesFile{polish-iso.lbx} - [2020/03/25 v0.4.0 ISO 690 extended biblatex localization] + [2022/03/20 v0.4.1 ISO 690 extended biblatex localization] \InheritBibliographyExtras{polish} \InheritBibliographyStrings{polish} @@ -25,6 +25,10 @@ % {}},% FIXME: missing % film = {{}% % {}},% FIXME: missing +% application = {{}% +% {}},% FIXME: missing +% publication = {{}% +% {}},% FIXME: missing } \endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/slovak-iso.lbx b/Master/texmf-dist/tex/latex/biblatex-iso690/slovak-iso.lbx index 8bd4e4b096c..0fe12d68e26 100644 --- a/Master/texmf-dist/tex/latex/biblatex-iso690/slovak-iso.lbx +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/slovak-iso.lbx @@ -1,5 +1,5 @@ \ProvidesFile{slovak-iso.lbx} - [2020/03/25 v0.4.0 ISO 690 extended biblatex localization] + [2022/03/20 v0.4.1 ISO 690 extended biblatex localization] \InheritBibliographyExtras{slovak} \InheritBibliographyStrings{slovak} @@ -23,6 +23,10 @@ {online}}, film = {{film}% {film}}, + application = {{prihl\'{a}\v{s}ka}% + {prihl\adddot}}, + publication = {{publikovan\'{e}}% + {publ\adddot}}, } \endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-iso690/spanish-iso.lbx b/Master/texmf-dist/tex/latex/biblatex-iso690/spanish-iso.lbx new file mode 100644 index 00000000000..dc837288365 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-iso690/spanish-iso.lbx @@ -0,0 +1,35 @@ +\ProvidesFile{spanish-iso.lbx} + [2022/03/20 v0.4.1 ISO 690 extended biblatex localization] + +\InheritBibliographyExtras{spanish} +\InheritBibliographyStrings{spanish} + +\DeclareBibliographyStrings{% + at = {{en}% + {en}}, + bysupervisor = {{supervisado por}% + {supervisado por}}, + urlalso = {{disponible también desde}% + {disponible también desde}}, + director = {{director}% + {director}}, + bydirector = {{dirigido por}% + {dirigido por}}, + inventor = {{inventor}% + {inventor}}, + byinventor = {{inventado por}% + {inventado por}}, + online = {{online}% + {online}}, + film = {{film}% + {film}}, + andothers = {{et\addabbrvspace al\adddot}% + {et\addabbrvspace al\adddot}}, + % if not, y col. will be used instead of et al. +% application = {{}% +% {}},% FIXME: missing +% publication = {{}% +% {}},% FIXME: missing +} + +\endinput |