From cf3bfced31aa1039d850d531c69ee993e99430de Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Mon, 5 Mar 2018 22:15:52 +0000
Subject: biblatex (4mar18)

git-svn-id: svn://tug.org/texlive/trunk@46851 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/biblatex/blx-unicode.def  | 38 ++++++++++++++++++++--
 1 file changed, 35 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/biblatex/blx-unicode.def')

diff --git a/Master/texmf-dist/tex/latex/biblatex/blx-unicode.def b/Master/texmf-dist/tex/latex/biblatex/blx-unicode.def
index 9898099135d..a3339b0b869 100644
--- a/Master/texmf-dist/tex/latex/biblatex/blx-unicode.def
+++ b/Master/texmf-dist/tex/latex/biblatex/blx-unicode.def
@@ -32,13 +32,45 @@
 \closein\blx@bcfin
 \endgroup
 
-\DeclarePrefChars{'’-}
-\DeclareRangeChars{~,;-–—+/}
-
 \appto\blx@setfrcodes{%
   % … should probably have dot spacefactor, but pdfLaTeX
   % makes it a period, so we have this here for consistency
   \sfcode`\…=\blx@sf@period
 }
 
+\DeclarePrefChars*{’}
+\DeclareRangeChars*{–—}
+
+\def\blx@normrange@range#1\bibrangedash#2\bibrangedash#3&{%
+  \ifblank{#3}
+    {\blx@normrange@endash#1––&}
+    {\ifblank{#2}
+       {\blx@range@out@value{#1\bibrangedash}}
+       {\ifblank{#1}
+          {\blx@range@out@value{\bibrangedash#2}}
+          {\blx@range@process{#1}{#2}}}}}
+
+\def\blx@normrange@endash#1–#2–#3&{%
+  \ifblank{#3}
+    {\blx@normrange@hyphen#1--&}
+    {\ifblank{#2}
+       {\blx@range@out@value{#1\bibrangedash}}
+       {\ifblank{#1}
+          {\blx@range@out@value{\bibrangedash#2}}
+          {\blx@range@process{#1}{#2}}}}}
+
+\def\blx@firstpage@range#1\bibrangedash#2\bibrangedash#3&{%
+  \ifblank{#3}
+    {\blx@firstpage@endash#1––&}
+    {\ifblank{#1}
+       {\blx@range@out@value{\bibrangedash#2}}
+       {\blx@range@out@value{#1}}}}
+
+\def\blx@firstpage@endash#1–#2–#3&{%
+  \ifblank{#3}
+    {\blx@firstpage@hyphen#1--&}
+    {\ifblank{#1}
+       {\blx@range@out@value{\bibrangedash#2}}
+       {\blx@range@out@value{#1}}}}
+
 \endinput
-- 
cgit v1.2.3

