Comment #8 on issue 4083 by [email protected]: \keepWithTag does not
nest well
https://code.google.com/p/lilypond/issues/detail?id=4083
Here's another idea in the interest of brainstorming various possibilities.
d) Allow hierarchical tags, something like:
\tag aa.red \musicZ
\tag aa.blue \musicY
\tag bb.apple \musicX
\tag bb.pear \musicW
\removeWithTag bb
% removes both bb.apple and bb.pear
Then provide a version of \keepWithTag that only removes tags at the given
level of depth.
\keepWithTagAtSameDepth aa.blue
% only removes aa.red
Or have \keepWithTag itself only work at the given level of depth. Then
you would need to use it at each level to remove all but one tag. Like so:
\keepWithTag aa
\keepWithTag aa.blue
% removes all tags except aa.blue
This avoids global variable scope, but I'm not sure if it's worth the added
complexity of hierarchical tags, and of course it requires more typing for
each tag instance. The LSR's \keepOrRemoveWithTag may be a better approach.
--
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