diff options
author | Karl Berry <karl@freefriends.org> | 2012-04-19 22:11:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-04-19 22:11:12 +0000 |
commit | 675f5610ee1595b20a9e77695a8aad5eb1ef9a2b (patch) | |
tree | 10f31614fd1ce80405b7f5624f77c446b4cba9f3 /Master/texmf-dist/tex/context | |
parent | bc21d95b0a1c5234f88041d0840e45e072357072 (diff) |
context-filter (19apr12)
git-svn-id: svn://tug.org/texlive/trunk@26057 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context')
-rw-r--r-- | Master/texmf-dist/tex/context/third/filter/t-filter.mkii | 21 | ||||
-rw-r--r-- | Master/texmf-dist/tex/context/third/filter/t-filter.mkiv | 24 |
2 files changed, 28 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/context/third/filter/t-filter.mkii b/Master/texmf-dist/tex/context/third/filter/t-filter.mkii index de772ec3bd3..46bdf247971 100644 --- a/Master/texmf-dist/tex/context/third/filter/t-filter.mkii +++ b/Master/texmf-dist/tex/context/third/filter/t-filter.mkii @@ -1,6 +1,6 @@ %D \module %D [ file=t-filter, -%D version=2012.01.26, +%D version=2012.04.18, %D title=\CONTEXT\ User Module, %D subtitle=Filter, %D author=Aditya Mahajan, @@ -9,7 +9,7 @@ %D email=adityam <at> ieee <dot> org, %D license=Simplified BSD License] -\writestatus{loading}{Filter (ver: 2012.01.26)} +\writestatus{loading}{Filter (ver: 2012.04.18)} \ifx\undefined\normalexpanded \let\normalexpanded\expanded \fi @@ -132,9 +132,9 @@ % #2 = options \egroup %\bgroup in \start#1 + \begingroup % to keep assignments local \edef\externalfilter@name{#1} - \begingroup % to keep assignments local \setupexternalfilter[#1][\c!name=,#2] \externalfilter@set_filenames @@ -201,10 +201,10 @@ \stoptexdefinition \starttexdefinition externalfilter@inline [#1][#2] + \begingroup % to keep assignments local \edef\externalfilter@name{#1} - \begingroup % to keep assignments local - \setupexternalfilter[#1][\c!numbering=,\c!name=,\c!before=,\c!after=,#2] + \setupexternalfilter[#1][\c!numbering=,\c!name=,\c!location=\v!text,#2] \externalfilter@set_filenames @@ -402,6 +402,8 @@ \stoptexdefinition \starttexdefinition externalfilter@read_processed_file_indeed + \doif{\externalfilterparameter\c!location}\v!paragraph + {\blank[\externalfilterparameter\c!spacebefore]}% \externalfilterparameter\c!before \begingroup @@ -412,14 +414,19 @@ \endgroup \externalfilterparameter\c!after + \doif{\externalfilterparameter\c!location}\v!paragraph + {\blank[\externalfilterparameter\c!spaceafter]}% \stoptexdefinition %D \section {Default Values} \setupexternalfilters [ + \c!location=\v!paragraph, \c!before=, \c!after=, + \c!spacebefore=, + \c!spaceafter=, \c!style=, \c!color=, \c!indentnext=\v!auto, @@ -436,10 +443,6 @@ \c!buffer\c!after=, ] -\doifmodeelse{reuse} - {\setupexternalfilters[state=stop]} - {\setupexternalfilters[state=start]} - \def\externalfilterbasefile {\externalfilter@base_file} \def\externalfilterinputfile {\externalfilter@input_file} \def\externalfilteroutputfile{\externalfilter@output_file} diff --git a/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv b/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv index c5b5e15bf3e..d4d4b7a66cf 100644 --- a/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv +++ b/Master/texmf-dist/tex/context/third/filter/t-filter.mkiv @@ -1,6 +1,6 @@ %D \module %D [ file=t-filter, -%D version=2012.03.18, +%D version=2012.04.18, %D title=\CONTEXT\ User Module, %D subtitle=Filter, %D author=Aditya Mahajan, @@ -9,7 +9,7 @@ %D email=adityam <at> ieee <dot> org, %D license=Simplified BSD License] -\writestatus{loading}{Filter (ver: 2012.03.18)} +\writestatus{loading}{Filter (ver: 2012.04.18)} % For backward compatibility \ifx\grabbufferdata\undefined \let\grabbufferdata \dostartbuffer \fi @@ -117,9 +117,9 @@ % #2 = options \egroup %\bgroup in \externalfilter@start + \begingroup % to keep assignments local \edef\currentexternalfilter{#1} - \begingroup % to keep assignments local \setupexternalfilter[#1][\c!name=,#2] \externalfilter@set_filenames @@ -192,10 +192,10 @@ {\dodoubleargument\externalfilter@inline_indeed} \starttexdefinition externalfilter@inline_indeed [#1][#2] + \begingroup % to keep assignments local \edef\currentexternalfilter{#1} - \begingroup % to keep assignments local - \setupexternalfilter[#1][\c!numbering=,\c!name=,\c!before=,\c!after=,#2] + \setupexternalfilter[#1][\c!numbering=,\c!name=,\c!location=\v!text,#2] \externalfilter@set_filenames @@ -375,10 +375,11 @@ % Finalization \doifinset{\externalfilterparameter\c!cache}{\v!yes,\v!force} {\doglobal\expandafter\increment\csname\externalfilter@count\endcsname} - \endgroup - \expanded{\checknextindentation[\externalfilterparameter\c!indentnext]} - \dorechecknextindentation + \doif{\externalfilterparameter\c!location}\v!paragraph + {\expanded{\checknextindentation[\externalfilterparameter\c!indentnext]} + \dorechecknextindentation} + \endgroup \stoptexdefinition %D \subsubject {Execute Filter} @@ -415,6 +416,8 @@ \stoptexdefinition \starttexdefinition externalfilter@read_processed_file_indeed + \doif{\externalfilterparameter\c!location}\v!paragraph + {\blank[\externalfilterparameter\c!spacebefore]}% \externalfilterparameter\c!before \begingroup @@ -427,14 +430,19 @@ \endgroup \externalfilterparameter\c!after + \doif{\externalfilterparameter\c!location}\v!paragraph + {\blank[\externalfilterparameter\c!spaceafter]}% \stoptexdefinition %D \section {Default Values} \setupexternalfilters [ + \c!location=\v!paragraph, \c!before=, \c!after=, + \c!spacebefore=, + \c!spaceafter=, \c!style=, \c!color=, \c!indentnext=\v!auto, |