Comment #13 on issue 4083 by [email protected]: \keepWithTag does not
nest well
https://code.google.com/p/lilypond/issues/detail?id=4083
<http://lsr.di.unimi.it/LSR/Item?id=871> has a few functions to solve this
problem.
I attached a \chooseWithTag above because that function was not already in
the LSR (and already I wish I had written \chooseWithTag to keep untagged
material).
One of the functions (if generalized to work with a list of tags) is
similar to (a)
\cleansedKeepOrRemoveWithTag tags tagLayer music
"keep the music with a tag in 'tags' or without any tag among 'tagLayer',
and remove the tags themselves in 'tagLayer' from the result; thus 'tags'
can be included in 'tagLayer' to keep its music, but clean the tags so the
music is not caught by other filters."
Instead of a global registry of tagLayers, we need to explicitly list
tagLayer on every use of \cleansedKeepOrRemoveWithTag that we want to
restrict. That repeating, however, does not seem to be a problem in
practice. Cleaning up after ourselves lets other uses of \keepWithTag
remain innocent of whatever new tags we define.
A new function similar to (maybe simplified) \cleansedKeepOrRemoveWithTag,
while keeping the old \keepWithTag, seems wise.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings