From 59f6f1d029d5cc0e5c6586469b09fe77c86dc0e7 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 6 Oct 2019 11:26:22 +0200 Subject: render: Prepend RLI before character This helps Firefox flip brackets. Oddly, direction=rtl does not do that. Google Chrome does not support RLI/ALM in SVGs? --- lulua/render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lulua/render.py b/lulua/render.py index 6bd073c..5834c89 100644 --- a/lulua/render.py +++ b/lulua/render.py @@ -207,7 +207,8 @@ class Renderer: stroke_dasharray='5,3', class_=' '.join (controlclass_))) else: - t.add (svgwrite.text.TSpan (text, class_=style, direction='rtl')) + RLI = "\u2067" # RIGHT-TO-LEFT ISOLATE (RLI) + t.add (svgwrite.text.TSpan (RLI + text, class_=style, direction='rtl')) g.add (t) return g, width -- cgit v1.2.3