diff options
author | Hans Hagen <pragma@wxs.nl> | 2012-01-05 19:27:57 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2012-01-05 19:27:57 +0100 |
commit | 351a9b8969960cc2a1b795a63de1a5a3d3e6e4d9 (patch) | |
tree | ea45c7b7d021148f993bf79a79969141f405b092 /tex/context/base/colo-ini.mkiv | |
parent | 5e5b7116e78d1cb847434ef29a9fed154e49adf9 (diff) | |
download | context-351a9b8969960cc2a1b795a63de1a5a3d3e6e4d9.tar.gz |
beta 2012.01.02 19:23
Diffstat (limited to 'tex/context/base/colo-ini.mkiv')
-rw-r--r-- | tex/context/base/colo-ini.mkiv | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/tex/context/base/colo-ini.mkiv b/tex/context/base/colo-ini.mkiv index 00181f722..cddefe996 100644 --- a/tex/context/base/colo-ini.mkiv +++ b/tex/context/base/colo-ini.mkiv @@ -116,19 +116,13 @@ % \testfeatureonce{100000}{\color[red]{}} % 1.046 => 0.541 -\def\@colored@{@colored@} - \unexpanded\def\switchtocolor[#1]{\csname#1\endcsname} -%unexpanded\def\color [#1]{\groupedcommand{\colo_helpers_activate{#1}}{}} - \unexpanded\def\color [#1]{\bgroup \def\g_color{\colo_helpers_activate{#1}}% \afterassignment\g_color \let\nexttoken} -%unexpanded\def\graycolor [#1]{\groupedcommand{\colo_helpers_set_model\s!gray\colo_helpers_activate{#1}}{}} % special, all embeded also gray - \unexpanded\def\graycolor [#1]{\bgroup \def\g_color{\colo_helpers_set_model\s!gray\colo_helpers_activate{#1}}% \afterassignment\g_color @@ -139,19 +133,18 @@ \unexpanded\def\stopcolor {\endgroup} -%unexpanded\def\colored [#1]{\groupedcommand{\colo_basics_define[\@colored@][#1]\colo_helpers_activate\@colored@}{}} - \unexpanded\def\colored [#1]{\bgroup - \def\g_color{\colo_basics_define[\@colored@][#1]\colo_helpers_activate\@colored@}% + \def\g_color{\colo_basics_defined_and_activated{#1}}% \afterassignment\g_color \let\nexttoken} \unexpanded\def\fastcolored[#1]#2{\begingroup % is this command still needed? - \dodefinefastcolor[\@colored@][#1]% - \colo_helpers_activate\@colored@ + \colo_basics_defined_and_activated{#1}% #2% \endgroup} +\unexpanded\def\directcolored[#1]{\colo_basics_defined_and_activated{#1}} + %D The following command is obsolete: @@ -568,6 +561,8 @@ % Since we couple definitions, we could stick to one test. Todo. Same for mpcolor. +\def\v_colo_dummy_name{d_u_m_m_y} + \letvalue{\??colorsetter-}\empty % used? \letvalue{\??transparencysetter-}\empty % used? @@ -595,6 +590,10 @@ \csname\??transparencysetter\currentcolorname\endcsname \fi} +\def\colo_helpers_activate_dummy + {\csname\??colorsetter \v_colo_dummy_name\endcsname + \csname\??transparencysetter\v_colo_dummy_name\endcsname} + \let\dousecolorparameter\colo_helpers_activate \unexpanded\def\dousecolorhashparameter#1#2% @@ -635,6 +634,10 @@ {\ctxcommand{defineprocesscolor("#1","#2",false,\v_colo_freeze_state)}% \unexpanded\setvalue{#1}{\colo_helpers_activate{#1}}} +\def\colo_basics_defined_and_activated#1% + {\ctxcommand{defineprocesscolor("\v_colo_dummy_name","#1",false,false)}% + \colo_helpers_activate_dummy} + % Spotcolors used setxvalue but that messes up currentcolor % and probably no global is needed either but they are global % at the lua end (true argument) so we keep that if only because |