From 59ee0ad395f1a732c65bd15d7854bd1b11f686a8 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 21 Jul 2018 20:18:18 +0000
Subject: bibleref (21jul18)

git-svn-id: svn://tug.org/texlive/trunk@48241 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/bibleref/bibleref.sty | 28 ++++++++++++++++++-----
 1 file changed, 22 insertions(+), 6 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/bibleref/bibleref.sty')

diff --git a/Master/texmf-dist/tex/latex/bibleref/bibleref.sty b/Master/texmf-dist/tex/latex/bibleref/bibleref.sty
index 3d4cdafe07a..5c2bddb91fa 100644
--- a/Master/texmf-dist/tex/latex/bibleref/bibleref.sty
+++ b/Master/texmf-dist/tex/latex/bibleref/bibleref.sty
@@ -39,10 +39,11 @@
 %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
 %%   Right brace   \}     Tilde         \~}
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{bibleref}[2018/06/05 1.17a (NLCT and MR)]
+\ProvidesPackage{bibleref}[2018/07/21 1.18 (NLCT and MR)]
 \RequirePackage{ifthen}
 \RequirePackage{fmtcount}
 \RequirePackage{amsgen}
+\RequirePackage{ifxetex}
 \newcommand*{\BRbooknumberstyle}[1]{#1 }
 \newcommand*{\BRepistlenumberstyle}[1]{#1 }
 \newcommand*{\BRbookof}{}
@@ -934,14 +935,29 @@ defined}{}}}
   \fi
 }
 \newcommand*{\biblerefindex}{\index}
+\newcommand{\biblerefmap@}[2]{%
+  \expandafter\def\csname @bibleref@map@\detokenize{#1}\endcsname{#2}%
+}%
 \newcommand*{\biblerefmap}[2]{%
-   \expandafter\def\csname @bibleref@map@#1\endcsname{#2}%
+  \ifxetex%
+    \expandafter\def\csname @bibleref@map@#1\endcsname{#2}%
+  \else%
+    \edef\@tmp{#1}%
+    \expandafter\biblerefmap@\expandafter{\@tmp}{#2}%
+  \fi%
 }
 \def\@do@bibleref@map#1\relax{%
-   \@ifundefined{@bibleref@map@#1}{}{%
-     \expandafter\let\expandafter\@@bv@idxsort
-       \csname @bibleref@map@#1\endcsname
-   }%
+  \ifxetex%
+      \@ifundefined{@bibleref@map@#1}{}{%
+       \expandafter\let\expandafter\@@bv@idxsort%
+         \csname @bibleref@map@#1\endcsname%
+     }%
+  \else%
+    \@ifundefined{@bibleref@map@\detokenize{#1}}{}{%
+       \expandafter\let\expandafter\@@bv@idxsort%
+         \csname @bibleref@map@\detokenize{#1}\endcsname%
+     }%
+  \fi%
 }
 \newcommand{\@bv@do}[1]{#1\@bv@addtoidx{#1}}
 \newtoks\@bv@tmpa
-- 
cgit v1.2.3

