In LilyPond 2.24.0 the \textMark command and the normal \mark command happily coexist.
\textMark
\mark
Furthermore the sophisticated \repeat segno command is available, see here.
\repeat segno
Thus this lsr snippet is heavily shortened compared with previous versions.