summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-gost/gost-standard.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-gost/gost-standard.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-gost/gost-standard.bbx59
1 files changed, 56 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-gost/gost-standard.bbx b/Master/texmf-dist/tex/latex/biblatex-gost/gost-standard.bbx
index 69182291aaf..8962185e25e 100644
--- a/Master/texmf-dist/tex/latex/biblatex-gost/gost-standard.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-gost/gost-standard.bbx
@@ -1,8 +1,8 @@
\ProvidesFile{gost-standard.bbx}
-[2017/06/27\space v1.15\space biblatex-gost styles]
+[2017/08/23\space v1.16\space biblatex-gost styles]
-\def\bbx@gost@date{2017/06/27}
-\def\bbx@gost@version{1.15}
+\def\bbx@gost@date{2017/08/23}
+\def\bbx@gost@version{1.16}
\@ifpackagelater{biblatex}{2016/09/07}
{}
@@ -52,6 +52,7 @@
\DeclareLanguageMapping{catalan}{catalan-gost}
\DeclareLanguageMapping{croatian}{croatian-gost}
\DeclareLanguageMapping{english}{english-gost}
+ \DeclareLanguageMapping{galician}{galician-gost}
\DeclareLanguageMapping{greek}{greek-gost}
\DeclareLanguageMapping{icelandic}{icelandic-gost}
\DeclareLanguageMapping{italian}{italian-gost}
@@ -62,6 +63,7 @@
\DeclareLanguageMapping{catalan}{catalan}
\DeclareLanguageMapping{croatian}{croatian}
\DeclareLanguageMapping{english}{english}
+ \DeclareLanguageMapping{galician}{galician}
\DeclareLanguageMapping{greek}{greek}
\DeclareLanguageMapping{icelandic}{icelandic}
\DeclareLanguageMapping{italian}{italian}
@@ -507,6 +509,25 @@
% macros and formats for printing origlanguage and bookoriglanguage.
% made special to simplify making them lists
+\@ifpackagelater{biblatex}{2016/12/06} %biblatex 3.8+
+{
+% \DeclareListFormat{origlanguage}{%
+% \bibstring{from#1}}
+
+% used for printing origlanguage and bookoriglanguage
+\newcommand*{\lbx@gost@lfromlang}[1]{%
+ \iflistundef{#1}
+ {\unspace}
+ {\printlist[lfromoriglanguage]{#1}}}
+\newcommand*{\lbx@gost@sfromlang}[1]{%
+ \iflistundef{#1}
+ {\unspace}
+ {\printlist[sfromoriglanguage]{#1}}}
+% \renewcommand*{\lbx@lfromlang}{\lbx@gost@lfromlang{origlanguage}}
+% \renewcommand*{\lbx@sfromlang}{\lbx@gost@sfromlang{origlanguage}}
+\newcommand*{\blx@gost@iflangundef}[3]{\iflistundef{#1}{#2}{#3}}
+\newcommand*{\blx@gost@iflangsequal}[4]{\iflistsequal{#1}{#2}{#3}{#4}}}
+{
\DeclareFieldFormat{origlanguage}{%
\bibstring{from#1}}
@@ -522,6 +543,7 @@
% \renewcommand*{\lbx@sfromlang}{\lbx@gost@sfromlang{origlanguage}}
\newcommand*{\blx@gost@iflangundef}[3]{\iffieldundef{#1}{#2}{#3}}
\newcommand*{\blx@gost@iflangsequal}[4]{\iffieldsequal{#1}{#2}{#3}{#4}}
+}
\newbibmacro*{begentry}{%
\csundef{savedclearedcredits}%
@@ -1955,6 +1977,33 @@
\setunit{\addcolondelim}%
\printfield{booktitleaddon}}
+\@ifpackagelater{biblatex}{2016/12/06} %biblatex 3.8+
+{\newbibmacro*{translation}{%
+ \ifnameundef{translator}
+ {\ifnameundef{booktranslator}
+ {\iflistundef{origlanguage}
+ {}
+ {\bibstring{bytranslator}%
+ \clearlist{origlanguage}}}
+ {}}%
+ {}}
+
+\newbibmacro*{book:translation}{%
+ \ifnameundef{booktranslator}
+ {\iflistundef{bookoriglanguage}
+ {}
+ {% temporarily redefining commands used in the bibstring
+ \savecommand\lbx@lfromlang%
+ \savecommand\lbx@sfromlang%
+ \renewcommand*{\lbx@lfromlang}{\lbx@gost@lfromlang{bookoriglanguage}}%
+ \renewcommand*{\lbx@sfromlang}{\lbx@gost@sfromlang{bookoriglanguage}}%
+ \bibstring{bytranslator}%
+ \restorecommand\lbx@lfromlang%
+ \restorecommand\lbx@sfromlang%
+ \clearlist{bookoriglanguage}}}
+ {}}
+}
+{
\newbibmacro*{translation}{%
\ifnameundef{translator}
{\ifnameundef{booktranslator}
@@ -1979,6 +2028,10 @@
\restorecommand\lbx@sfromlang%
\clearfield{bookoriglanguage}}}
{}}
+}
+
+
+
\renewbibmacro*{maintitle}{%
\ifboolexpr{