I am using the following code to print a list of all characters that say something in a given scene of a play-script.
\newcommand\sceneroles[2][Roles]{%
\def\scenename{#2}%
\textbf{#1}:%
\Bind{?id}{rdf:type}{rl:role}{%
% \GetVal prints the variable name,
% \GetValProperty extracts property from the name
% Set the default left time
% use the real at:left if it has been set
\IfProperty{\GetVal{?id}}{is:playsin#2}{%
\GetValProperty{?id}{rl:name}, %
}{}%
}%
}
the problem is, that I cannot get rid of the last comma.
what should be printed is:
Roles: Romeo, Juliet
what is printed:
Roles: Romeo, Juliet,
\documentclass{...}
and ending with\end{document}
.\GetValProperty
and\Bind
are defined and guess how you get Romeo and Juliet out of thin air?\GetValProperty
in TeX Live files.