summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-tag.mkiv
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-06-01 13:44:00 +0200
committerHans Hagen <pragma@wxs.nl>2014-06-01 13:44:00 +0200
commitca16b82275f15170ca269f77b9dd9b0e29bbd7f6 (patch)
treed5a68f87d7d5f27d123adb0944ffc00e75257ba4 /tex/context/base/strc-tag.mkiv
parent734668b53af40fe48edadf817b87acd5b2ccc3b3 (diff)
downloadcontext-ca16b82275f15170ca269f77b9dd9b0e29bbd7f6.tar.gz
beta 2014.06.01 13:44
Diffstat (limited to 'tex/context/base/strc-tag.mkiv')
-rw-r--r--tex/context/base/strc-tag.mkiv6
1 files changed, 6 insertions, 0 deletions
diff --git a/tex/context/base/strc-tag.mkiv b/tex/context/base/strc-tag.mkiv
index 6e792fd3f..7e15be4a3 100644
--- a/tex/context/base/strc-tag.mkiv
+++ b/tex/context/base/strc-tag.mkiv
@@ -11,6 +11,7 @@
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
+% labels: no language needed
% key/values and other names might change (and probably will)
\writestatus{loading}{ConTeXt Structure Macros / Tags}
@@ -176,6 +177,11 @@
\expandafter\strc_tags_element_stop_yes
\fi}
+% if mainlanguage == en we can even omit the label (default to tag) which is faster
+%
+% \unexpanded\def\strc_tags_element_start_yes_indeed_yes[#1][#2]%
+% {\ctxcommand{starttag("#1",{label="#1",userdata=\!!bs#2\!!es})}}
+
\unexpanded\def\strc_tags_element_start_yes_indeed_yes[#1][#2]%
{\ctxcommand{starttag("#1",{label="\dogetupsometaglabeltext{#1}",userdata=\!!bs#2\!!es})}}