A fitting punishment would be for her to have been kicked off the tram and banned by the tram company. They would be well within their rights to safeguard their customers from foul-mouthed tirades. That should be the end of the story. If an additional slap on the wrist for breach of the peace or what have you were deemed necessary, then so be it, but are there not bigger fish to fry?
According to the beak, she's being remanded in custody for her own protection. Now, what does that say about the matter? It seems almost to condone violence against her, to imply that violence would be an understandable response.
We all know that the legal establishment doesn't give a flying fuck to protect the public from real criminals. Whenever you read of someone getting stabbed to death, you can guarantee that the perpetrators have criminal records as long as your arm, but they are set free until such a point as they force the hand of our indulgent authorities.
The only laws that matter are the common laws, not the bullshit that recent governments have instigated. As such, as noted, she is no doubt liable to be found in breach of the peace, but anything over and above that is politically-motivated social engineering.