On 04/20/2015 08:43 AM, Jürgen Spitzmüller wrote:
In order to implement a linguistic feature properly (support for the
forest package to generate structure trees), I need a way to pass only
selected chars verbatim (here, [ and ], since these are active
characters in the package and thus must not be escaped by braces).
Making the whole inset PassThru is not a good option, neither the need
to use ERT for the brackets.
Thus, I propose the following patch, which adds PassThruChars tags to
InsetLayout and Layout, where a comma.separated list of characters
that should be treated verbatim can be specified.
I think this might also be useful in other cases.
Yes, this sounds generally useful.
My only thought would be: Wouldn't it be slightly easier to store the
pass_thru_chars as a vector rather than call getVectorFromString every
time we need it?
Richard