summaryrefslogtreecommitdiff
path: root/tex/context/base/meta-xml.mkii
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-10-18 12:40:11 +0300
committerMarius <mariausol@gmail.com>2010-10-18 12:40:11 +0300
commit8009e0ec2449002df344f784da9fe6846abc774f (patch)
treecd39782dfd7bbf7a3a30f157ba763bfd9425043c /tex/context/base/meta-xml.mkii
parent406cef06476f30c68f58cb5074efb10f79de129f (diff)
downloadcontext-8009e0ec2449002df344f784da9fe6846abc774f.tar.gz
beta 2010.10.18 11:11
Diffstat (limited to 'tex/context/base/meta-xml.mkii')
-rw-r--r--tex/context/base/meta-xml.mkii29
1 files changed, 29 insertions, 0 deletions
diff --git a/tex/context/base/meta-xml.mkii b/tex/context/base/meta-xml.mkii
new file mode 100644
index 000000000..f6f81f767
--- /dev/null
+++ b/tex/context/base/meta-xml.mkii
@@ -0,0 +1,29 @@
+%D \module
+%D [ file=meta-xml,
+%D version=2002.11.27,
+%D title=\METAPOST\ Graphics,
+%D subtitle=XML Hacks,
+%D author=Hans Hagen,
+%D date=\currentdate,
+%D copyright={PRAGMA / Hans Hagen \& Ton Otten}]
+%C
+%C This module is part of the \CONTEXT\ macro||package and is
+%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
+%C details.
+
+\writestatus{loading}{MetaPost Graphics / XML Hacks}
+
+%D When we are dealing with XML, we need to make sure that
+%D \METAPOST\ knows about it. The next macro expands its
+%D argument (think of widget XFDF) into \type {\getXMLentity}
+%D calls.
+
+\unprotect
+
+\def\setMPtextXML#1#2%
+ {\bgroup
+ \enableXML
+ \expanded{\defconvertedcommand\noexpand\ascii{#2}}%
+ \expanded{\egroup\noexpand\dodoglobal\noexpand\setvalue{\@@MPT#1}{\ascii}}}
+
+\protect \endinput