diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/blx-unicode.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex/blx-unicode.def | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/blx-unicode.def b/Master/texmf-dist/tex/latex/biblatex/blx-unicode.def new file mode 100644 index 00000000000..9898099135d --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex/blx-unicode.def @@ -0,0 +1,44 @@ +% This test should not be needed since biblatex.sty already checks +% if LuaTeX or XeTeX is used. +% Currently Unicode-aware engines are only XeTeX and LuaTeX, +% both of which define \Umathcode. +\ifx\Umathcode\undefined + \expandafter\endinput +\fi + +\begingroup +\openin\blx@bcfin=UnicodeData.txt % +\ifeof\blx@bcfin +\else + \let\blx@setazcodes\@empty + \def\Lu{Lu} + \def\storedpar{\par} + \def\blx@tempa#1;#2;#3;#4\relax{% + \def\temp{#3}% + \ifx\temp\Lu + \xdef\blx@setazcodes{% + \blx@setazcodes + \sfcode"#1=\@m + } + \fi + } + \loop\unless\ifeof\blx@bcfin + \read\blx@bcfin to \blx@tempb + \unless\ifx\blx@tempb\storedpar + \expandafter\blx@tempa\blx@tempb\relax + \fi + \repeat +\fi +\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 +} + +\endinput |