[latex3-commits] [latex2e-public] r1297 - TU accent commands
noreply at latex-project.org
noreply at latex-project.org
Sun Dec 11 15:22:34 CET 2016
Author: carlisle
Date: 2016-12-11 15:22:34 +0100 (Sun, 11 Dec 2016)
New Revision: 1297
Modified:
trunk/base/tuenc.def
Log:
TU accent commands
Modified: trunk/base/tuenc.def
===================================================================
--- trunk/base/tuenc.def 2016-12-11 13:54:00 UTC (rev 1296)
+++ trunk/base/tuenc.def 2016-12-11 14:22:34 UTC (rev 1297)
@@ -33,6 +33,16 @@
\def\UnicodeFontName#1#2{"#1:#2"}
%%
\DeclareFontEncoding{TU}{}{}
+%
+%
+% Declare accent command to use a postpended combining character
+% rather than the TeX \accent primitive
+\def\add at unicode@accent#1#2{#2\char#1\relax}
+%
+\def\DeclareUnicodeAccent#1#2#3{%
+ \DeclareTextCommand{#1}{#2}{\add at unicode@accent{#3}}%
+}
+
%%
%\DeclareTextSymbol{\nobreakspace}{TU}{"00A0}
\DeclareTextSymbol{\textexclamdown}{TU}{"00A1}
@@ -277,7 +287,25 @@
\DeclareTextSymbol{\textasciitilde}{TU}{"02DC}
\DeclareTextSymbol{\textasciibreve}{TU}{"02D8}
\DeclareTextSymbol{\textacutedbl}{TU}{"02DD}
+
+\DeclareUnicodeAccent{\`}{TU}{"0300}
+\DeclareUnicodeAccent{\'}{TU}{"0301}
+\DeclareUnicodeAccent{\^}{TU}{"0302}
+\DeclareUnicodeAccent{\~}{TU}{"0303}
+\DeclareUnicodeAccent{\"}{TU}{"0308}
+\DeclareUnicodeAccent{\H}{TU}{"030B}
+\DeclareUnicodeAccent{\r}{TU}{"030A}
+\DeclareUnicodeAccent{\v}{TU}{"030C}
+\DeclareUnicodeAccent{\u}{TU}{"0306}
+\DeclareUnicodeAccent{\=}{TU}{"0304}
+\DeclareUnicodeAccent{\.}{TU}{"0307}
+\DeclareUnicodeAccent{\b}{TU}{"0332}
+\DeclareUnicodeAccent{\c}{TU}{"0327}
+\DeclareUnicodeAccent{\d}{TU}{"0323}
+\DeclareUnicodeAccent{\k}{TU}{"0328}
+
\DeclareTextSymbol{\textbaht}{TU}{"0E3F}
+
\DeclareTextComposite{\.}{TU}{B}{"1E02}
\DeclareTextComposite{\.}{TU}{b}{"1E03}
\DeclareTextSymbol{\textcompwordmark}{TU}{"200C}
More information about the latex3-commits
mailing list