Issues with SDL final separator for latex or math expression [in Activity-Beta]

0 votes
asked May 16, 2020 in Bug by The-Lu (64,960 points)

Hello PlantUML team,

To continue with: https://forum.plantuml.net/11320/latex-command-requires-space-between-activity-object

We observe the same issue with some other end SDL separator:

With /

:<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>/

PlantUML diagram
[Click to image to see all code on PlantUML server]

With }

:<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>}

PlantUML diagram

With >

:<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>>

PlantUML diagram

Idem With <

And for |, we observe:

:<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex> |
:<latex>P(y|\mathbf{x}) \mbox{ or } f(\mathbf{x})+\epsilon</latex>|

PlantUML diagram

If that can help to test,
Regards,
Th.

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.
0 votes
answered Jan 12, 2023 by plantuml (295,000 points)

Probably the idea of changing the final ; separator for SDL by another character was a bad idea beacause it's confusing for the parser.

Instead of changing this final separator, we could use stereotype instead.

So for example, instead of:
:this is an example|

We could have:
:this is an example; <<task>>

Or another example:
:demo<

would become:
:demo; <<input>>

What do you think about it?

Here are the actual possibility and we are out of inspiration for most of them:

  •     <   <<input>>
  •     >   <<output>>
  •     /   <<foo1>>
  •     \   <<foo2>>
  •     ]   <<foo3>>
  •     }   <<foo4>>
  •     |   <<task>>

  

commented Jan 12, 2023 by The-Lu (64,960 points)

Hi,

IMHO that seems good;
And conform with all the PlantUML philosophy... (as stereotype: port, end, join,...)

The last question will be:

  • How to manage multi-line ?
:demo
multi line; <<input>>

and how manage special char on multi-line, as:

:demo
multi line 1
multi line >>
; <<input>>

or 

:demo
multi line 1
multi line >>; <<input>>

and the worst:

:demo
multi line 1;
multi line >>
; <<input>>

:demo
multi line 1;
<<input>>
multi line >>
; <<input>>

For multi-line:

  • Is it necessary to oblige `;` on the begin of the line....

And some questions arise as: 

Regards.

commented Jan 13, 2023 by plantuml (295,000 points)

We've just published a new snapshot that support the new syntax:

Any though about stereotype names? We are not sure they are the right one.

Thanks!

commented Jan 14, 2023 by The-Lu (64,960 points)
That seems good.

But we can ask the question on PlantUML Github Discussion to confirm...

Regards.
commented Jan 19, 2023 by The-Lu (64,960 points)
...