I would reverse the $chr(%i) %i in the below
did -a $dname 3 $chr(%i) - %i
to be the below
did -a $dname 3 %i - $chr(%i)
For the reason that the way you have it some people may think that the number on the right equals the \" - \" on the left. If you put the number first and the character after the - then they should not get confused.