How do we achieve alphanumeric numbering in sequence diagrams?

0 votes
asked Aug 14, 2020 in Wanted features by Yesh Goel
Looking for alphanumeric numbering like below:

1a

1b

2

3a

3b
commented Aug 17, 2020 by Martin
edited Aug 17, 2020

Just to note that Plantuml already supports n.n autonumber format (see http://forum.plantuml.net/8714/autonumber-keywords-activate-keywords-differenct-automatically) e.g.

It also already supports user-specified numeric formats using Java class DecimalFormat and surrounding text.  e.g. autonumber "<b>[000]"

So one suggestion on how to implement the feature could be to extend the format options to include the multiple components (there may already be syntax for this?) - e.g. "autonumber "##0" "'.'##0" "'.'##0" "'.'##0" for a 4 numeric component formats separated by ".".  And then add additional syntax to convert numeric to letters , roman numerals, etc.  I appreciate this is probably quite a lot of coding, as I suspect the donkey work is done by Java class DecimalFormat which doesn't seem to support this, but it could just be a search and replace of a suitable symbol before passing to DecimalFormat - eg replace %a_to_z% with "a".."z" for 1..26 (use mod 26 if you want to get really fancy and support > 26 as multiple characters) before passing to DecimalFormat.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...