[latex3-commits] [latex2e-public] r1293 - re-arrange engine guards

noreply at latex-project.org noreply at latex-project.org
Sat Dec 10 17:42:18 CET 2016


Author: carlisle
Date: 2016-12-10 17:42:18 +0100 (Sat, 10 Dec 2016)
New Revision: 1293

Modified:
   trunk/base/tuenc.def
Log:
re-arrange engine guards

Modified: trunk/base/tuenc.def
===================================================================
--- trunk/base/tuenc.def	2016-12-10 16:11:14 UTC (rev 1292)
+++ trunk/base/tuenc.def	2016-12-10 16:42:18 UTC (rev 1293)
@@ -1,6 +1,37 @@
 %% 
 \ProvidesFile{tuenc}[2016/12/10 v1.0 TU encoding file]
+
+
+
+
 %%
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname XeTeXrevision\endcsname\relax
+
+  \begingroup\expandafter\expandafter\expandafter\endgroup
+  \expandafter\ifx\csname directlua\endcsname\relax
+
+% Not luatex or xetex, abort with a warning
+    \PackageWarningNoLine{fontenc}
+      {TU encoding is only available with xetex and luatex}
+      \def\encodingdefault{T1}
+    \expandafter\expandafter\expandafter\endinput
+
+  \else
+
+% Luatex
+    \def\UnicodeFontTeXLigatures{mapping=tex-text;}
+  \fi
+\else
+
+% XeTeX
+  \def\UnicodeFontTeXLigatures{+tlig;} % "+trep;" no longer needed
+  
+\fi
+
+\def\UnicodeFontFile#1#2{"[#1]:#2"}
+\def\UnicodeFontName#1#2{"#1:#2"}
+%%
 \DeclareFontEncoding{TU}{}{}
 %%
 %\DeclareTextSymbol{\nobreakspace}{TU}{"00A0}



More information about the latex3-commits mailing list