From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- .../biblatex-apa/norwegian-apa.lbx | 143 +++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 macros/latex/contrib/biblatex-contrib/biblatex-apa/norwegian-apa.lbx (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-apa/norwegian-apa.lbx') diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-apa/norwegian-apa.lbx b/macros/latex/contrib/biblatex-contrib/biblatex-apa/norwegian-apa.lbx new file mode 100644 index 0000000000..a8e91d04bd --- /dev/null +++ b/macros/latex/contrib/biblatex-contrib/biblatex-apa/norwegian-apa.lbx @@ -0,0 +1,143 @@ +\ProvidesFile{norwegian-apa.lbx}[2019/08/17\space v7.8\space APA biblatex localisation] +\InheritBibliographyExtras{norwegian} + +% (APA 6.22) The example abbreviations + +\NewBibliographyString{revisededition} +\NewBibliographyString{typechair} +\NewBibliographyString{typechairs} +\NewBibliographyString{typevolume} +\NewBibliographyString{typevolumes} +\NewBibliographyString{typeseries} +\NewBibliographyString{typeseriess} +\NewBibliographyString{typevolseries} +\NewBibliographyString{typevolseriess} +\NewBibliographyString{on} +\NewBibliographyString{retrieved} +\NewBibliographyString{available} +\NewBibliographyString{from} +\NewBibliographyString{archivedat} +\NewBibliographyString{origyear} +\NewBibliographyString{reviewof} +\NewBibliographyString{producer} +\NewBibliographyString{execproducer} +\NewBibliographyString{director} +\NewBibliographyString{writer} +\NewBibliographyString{with} + +\DeclareBibliographyStrings{% + inherit = {norwegian}, + revisededition = {{revidert\space utgave}{rev\adddotspace utg\adddot}}, + page = {{side}{{}s\adddot}}, + pages = {{sider}{{}s\adddot}}, + on = {{p{\aa}}{p{\aa}}}, + retrieved = {{hentet}{hentet}}, + available = {{tilgjengelig}{tilgjengelig}}, + from = {{fra}{fra}}, + archivedat = {{arkivert\space ved}{arkivert\space ved}}, + reviewof = {{anmeldelse\space av}{anmeldelse\space av}}, + producer = {{produsent}{produsent}}, + execproducer = {{ut{\o}vende produsent}{ut{\o}vende produsent}}, + director = {{regiss{\o}r}{regiss{\o}r}}, + writer = {{manus}{manus}}, + with = {{med}{med}}, + paragraph = {{\P}{\P}}, + paragraphs = {{\P\P}{\P\P}}, + mathesis = {{Masteroppgave}{Masteroppgave}}, + phdthesis = {{Doktoravhandling}{Doktoravhandling}}, + origyear = {{opprinnelig\space publisert}{opprinnelig\space publisert}}, + typechair = {{ordstyrer}{ordstyrer}}, + typechairs = {{ordstyrere}{ordstyrere}}, + typevolume = {{bindredakt{\o}r}{bindred\adddot}}, + typevolumes = {{bindredakt{\o}rer}{bindred\adddot}}, + typeseries = {{serieredakt{\o}r}{seriered\adddot}}, + typeseriess = {{serieredakt{\o}rer}{seriered\adddot}}, + typevolseries = {{serie- og bindredakt{\o}r}{serie- og bindred\adddot}}, + typevolseriess = {{serie- og bindredakt{\o}rer}{serie- og bindred\adddot}}, + annodomini = {{A\adddot D\adddot}{A\adddot D\adddot}}, + beforechrist = {{B\adddot C\adddot}{B\adddot C\adddot}}, +} + +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% (APA 7.10 Example 68) Drop end* when they are the same as * + +% You must use \printdate to get here otherwise it will be ignored + +\DeclareBibliographyExtras{% + \def\urldatecomma{\addcomma\addspace}% + \protected\def\mkbibdateapalong#1#2#3{% + % As per 6.28, Articles only have year + \ifboolexpr{ test {\ifentrytype{article}} + and not test {\iffieldequalstr{entrysubtype}{nonacademic}} } + {\clearfield{labelmonth}% + \clearfield{labelday}} + {}% + \iffieldundef{#1}% + {}% + {\iffieldbibstring{#1}{\biblcstring{\thefield{#1}}}{\thefield{#1}}}% + \iffieldundef{#3}% + {}% + {\iffieldundef{#1}% + {} + {\addcomma\addspace}% + \stripzeros{\thefield{#3}}}% + \iffieldundef{#2}% + {}% + {\iffieldundef{#3} + {\iffieldundef{#1} + {} + {\addspace}}% + {\adddot\addspace}% + \mkbibmonth{\thefield{#2}}}}% + \protected\def\mkbibdateapalongextra#1#2#3{% + % As per 6.28, Articles only have year + \ifboolexpr{ test {\ifentrytype{article}} + and not test {\iffieldequalstr{entrysubtype}{nonacademic}} } + {\clearfield{labelmonth}% + \clearfield{labelday}} + {}% + \iffieldundef{#1}% + {}% + {\iffieldbibstring{#1}{\biblcstring{\thefield{#1}}}{\thefield{#1}}\printfield{extradate}}% + \iffieldundef{#3}% + {}% + {\iffieldundef{#1}% + {} + {\addcomma\addspace}% + \stripzeros{\thefield{#3}}}% + \iffieldundef{#2}% + {}% + {\iffieldundef{#3} + {\iffieldundef{#1} + {} + {\addspace}}% + {\adddot\addspace}% + \mkbibmonth{\thefield{#2}}}}% + \protected\def\mkbibdateapalongmdy#1#2#3{% + % As per 6.28, Articles only have year + \ifboolexpr{ test {\ifentrytype{article}} + and not test {\iffieldequalstr{entrysubtype}{nonacademic}} } + {\clearfield{labelmonth}% + \clearfield{labelday}} + {}% + \iffieldundef{#3}% + {}% + {\stripzeros{\thefield{#3}}}% + \iffieldundef{#2}% + {}% + {\iffieldundef{#3}% + {}% + {\adddot\addspace}% + \mkbibmonth{\thefield{#2}}}% + \iffieldundef{#1}% + {}% + {\iffieldundef{#2}% + {}% + {\addspace}% + \iffieldbibstring{#1}{\biblcstring{\thefield{#1}}}{\thefield{#1}}}}} + +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -- cgit v1.2.3