diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-10-06 11:26:22 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-10-06 11:26:22 +0200 |
commit | 59f6f1d029d5cc0e5c6586469b09fe77c86dc0e7 (patch) | |
tree | 9830ffbc088a1f36a79172c7b02424e26e99137d | |
parent | 4ec21971d798577d566cebb042b41c6a8c475cd4 (diff) | |
download | lulua-59f6f1d029d5cc0e5c6586469b09fe77c86dc0e7.tar.gz lulua-59f6f1d029d5cc0e5c6586469b09fe77c86dc0e7.tar.bz2 lulua-59f6f1d029d5cc0e5c6586469b09fe77c86dc0e7.zip |
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?
-rw-r--r-- | lulua/render.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |