summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-09-26 23:20:37 +0000
committerKarl Berry <karl@freefriends.org>2017-09-26 23:20:37 +0000
commitb482e67a123af24b726b884c6f5ba992e3a37b0b (patch)
treefda79325a3a802526e8d97c7bf851d1a1a76163c /Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty
parentddbb47b55229a220d99b4e5e630bab06c543149e (diff)
lwarp (26sep17)
git-svn-id: svn://tug.org/texlive/trunk@45406 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty61
1 files changed, 57 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty
index e25de7f94a5..c1eae9e4b71 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-textcomp.sty
@@ -21,6 +21,19 @@
\let\LWR@origtextcelsius\textcelsius
\let\LWR@origtextohm\textohm
\let\LWR@origtextmu\textmu
+\let\LWR@origtextlquill\textlquill
+\let\LWR@origtextrquill\textrquill
+\let\LWR@origtextcircledP\textcircledP
+\let\LWR@origtexttwelveudash\texttwelveudash
+\let\LWR@origtextthreequartersemdash\textthreequartersemdash
+\let\LWR@origtextmho\textmho
+\let\LWR@origtextnaira\textnaira
+\let\LWR@origtextpeso\textpeso
+\let\LWR@origtextrecipe\textrecipe
+\let\LWR@origtextpertenthousand\textpertenthousand
+\let\LWR@origtextbaht\textbaht
+\let\LWR@origtextdiscount\textdiscount
+\let\LWR@origtextservicemark\textservicemark
\LetLtxMacro\LWR@origcapitalcedilla\capitalcedilla
\LetLtxMacro\LWR@origcapitalogonek\capitalogonek
\LetLtxMacro\LWR@origcapitalgrave\capitalgrave
@@ -35,16 +48,43 @@
\LetLtxMacro\LWR@origcapitalmacron\capitalmacron
\LetLtxMacro\LWR@origcapitaldotaccent\capitaldotaccent
\LetLtxMacro\LWR@origtextcircled\textcircled
+\AtBeginDocument{
\ifPDFTeX
\renewcommand*{\textdegree}{\HTMLentity{deg}}
-\renewcommand*{\textcelsius}{\HTMLentity{deg}\,C}
+\renewcommand*{\textcelsius}{\HTMLunicode{2103}}
\renewcommand*{\textohm}{\HTMLunicode{2126}}
\renewcommand*{\textmu}{\HTMLunicode{00B5}}
+\renewcommand*{\textlquill}{\HTMLunicode{2045}}
+\renewcommand*{\textrquill}{\HTMLunicode{2046}}
+\renewcommand*{\textcircledP}{\HTMLunicode{2117}}
+\renewcommand*{\texttwelveudash}{\HTMLunicode{2014}}% emdash
+\renewcommand*{\textthreequartersemdash}{\HTMLunicode{2014}}% emdash
+\renewcommand*{\textmho}{\HTMLunicode{2127}}
+\renewcommand*{\textnaira}{\HTMLunicode{20A6}}
+\renewcommand*{\textpeso}{\HTMLunicode{20B1}}
+\renewcommand*{\textrecipe}{\HTMLunicode{211E}}
+\renewcommand*{\textpertenthousand}{\HTMLunicode{2031}}
+\renewcommand*{\textbaht}{\HTMLunicode{0E3F}}
+\renewcommand*{\textdiscount}{\%}
+\renewcommand*{\textservicemark}{\HTMLunicode{2120}}
\else
\renewcommand*{\textdegree}{°}
-\renewcommand*{\textcelsius}{°C}
+\renewcommand*{\textcelsius}{℃}
\renewcommand*{\textohm}{Ω}
-\renewcommand*{\textmu}{μ}
+\renewcommand*{\textmu}{µ}
+\renewcommand*{\textlquill}{⁅}
+\renewcommand*{\textrquill}{⁆}
+\renewcommand*{\textcircledP}{℗}
+\renewcommand*{\texttwelveudash}{—}% emdash
+\renewcommand*{\textthreequartersemdash}{—}% emdash
+\renewcommand*{\textmho}{℧}
+\renewcommand*{\textnaira}{₦}
+\renewcommand*{\textpeso}{₱}
+\renewcommand*{\textrecipe}{℞}
+\renewcommand*{\textpertenthousand}{‱}
+\renewcommand*{\textbaht}{฿}
+\renewcommand*{\textdiscount}{\%}
+\renewcommand*{\textservicemark}{℠}
\fi
\renewcommand*{\capitalcedilla}[1]{#1\HTMLunicode{0327}}
\renewcommand*{\capitalogonek}[1]{#1\HTMLunicode{0328}}
@@ -62,11 +102,25 @@
\renewcommand*{\textcircled}[1]{%
\InlineClass[border: 1px solid \LWR@currenttextcolor]{textcircled}{#1}%
}
+}% AtBeginDocument
\appto{\LWR@restoreorigformatting}{%
\let\textdegree\LWR@origtextdegree%
\let\textcelsius\LWR@origtextcelsius%
\let\textohm\LWR@origtextohm%
\let\textmu\LWR@origtextmu%
+\let\textlquill\LWR@origtextlquill%
+\let\textrquill\LWR@origtextrquill%
+\let\textcircledP\LWR@origtextcircledP%
+\let\texttwelveudash\LWR@origtexttwelveudash%
+\let\textthreequartersemdash\LWR@origtextthreequartersemdash%
+\let\textmho\LWR@origtextmho%
+\let\textnaira\LWR@origtextnaira%
+\let\textpeso\LWR@origtextpeso%
+\let\textrecipe\LWR@origtextrecipe%
+\let\textpertenthousand\LWR@origtextpertenthousand%
+\let\textbaht\LWR@origtextbaht%
+\let\textdiscount\LWR@origtextdiscount%
+\let\textservicemark\LWR@origtextservicemark%
\LetLtxMacro\capitalcedilla\LWR@origcapitalcedilla%
\LetLtxMacro\capitalogonek\LWR@origcapitalogonek%
\LetLtxMacro\capitalgrave\LWR@origcapitalgrave%
@@ -82,7 +136,6 @@
\LetLtxMacro\capitaldotaccent\LWR@origcapitaldotaccent%
\LetLtxMacro\textcircled\LWR@origtextcircled%
}
-
\endinput
%%
%% End of file `lwarp-textcomp.sty'.