Dmytro, how well defined are the contexts where these occur? If the patterns
are well enough defined, you could probably automate all the replacements with
\partial by using a regular expression across all the files that is centered on
looking for the s2 sorts of things. Whether it would work would really depend
on how predictable these things would be. It would be much simpler if you were
using bar checks as then there would be something in the pattern to anchor the
search on, but your example
d2 s2 \bar ":|:"
could be accounted for with something like
Search string:
([a-g](?:is|es)?2) s2 \\bar ":\|:"
Replacement string:
\\partial 2\r\1 \\bar ":|:"
[...] Where it would break down is if these partial measures are variable in
length or if you have variable numbers of notes before the spacer, in which
case it might not work. [...]