summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-02-15 21:54:14 +0000
committerKarl Berry <karl@freefriends.org>2015-02-15 21:54:14 +0000
commit401c80838a830b62c19b6b4edd264cd761fe4b93 (patch)
tree4adecad2dcb9a84fe780a40a91957b94c3f5ebd2
parentdd309bf16b3a95ca51b4ed0514fbd0a3480478c4 (diff)
context-filter
git-svn-id: svn://tug.org/texlive/trunk@36285 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/context/third/filter/filter.txt15
-rw-r--r--Master/texmf-dist/tex/context/third/filter/t-filter.mkiv5
2 files changed, 17 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/context/third/filter/filter.txt b/Master/texmf-dist/doc/context/third/filter/filter.txt
index 7720c0226f8..7e5711e20d6 100644
--- a/Master/texmf-dist/doc/context/third/filter/filter.txt
+++ b/Master/texmf-dist/doc/context/third/filter/filter.txt
@@ -1,3 +1,6 @@
+[![Stories in Ready](https://badge.waffle.io/adityam/filter.png?label=ready&title=Ready)](https://waffle.io/adityam/filter)
+=======
+
The filter module
=================
@@ -188,7 +191,7 @@ fast, so these extra runs are not noticeable. But some filters, like the
R-programming language for which simply startup and exit takes about 0.3
seconds, are slow. In such cases, the additional runs start adding up. A better
trade off is to store the contents of each environment in a separate file and
-invoke the filter only if a file *changes in between successive runes*.
+invoke the filter only if a file *changes in between successive runs*.
The second behavior is achieved by adding `cache=yes` option to the
definition:
@@ -516,7 +519,17 @@ Thus, all the following are valid:
\inlinemarkdown!a closing brace }!
+**Note** Inline mode sets `\endlinechar=\minusone`; therefore no space is
+inserted after a newline. This may lead to unexpected results if the output of
+the filter is wrapped into multiple lines. For example, if the output of the
+filter is
+
+ This is a long line that is wrapped
+ after a fixed number of characters.
+Then, when reading the file the space between `wrapped` and `after` will be
+lost! To avoid that pass appropriate options to the filter program so that it
+does not wrap long lines.
Processing existing Files
-------------------------
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 1d3786e5ab9..18296594d8b 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=2013.04.15,
+%D version=2015.02.12,
%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: 2013.04.15)}
+\writestatus{loading}{Filter (ver: 2015.02.12)}
\startmodule [filter]
\usemodule [module-catcodes]
@@ -181,6 +181,7 @@
\setupexternalfilter[#1][\c!name=,#2]
\fi
+ \processcommacommand[\externalfilterparameter{\c!filter\c!setups}]\directsetup
\externalfilter@set_directory
\ifthirdargument