You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTML entities are converted to unicode in src/lib/html2unicode.js. In particular <sup></sup> are converted using superscript-text which appears to work only for lower case strings inside the <sup></sup> tags. Indeed, lower case strings are working fine. This is tested in the gl3d_log-axis-big mock.
Note that html2unicode makes no attempt at converting <sub></sub>.
The example below is related to using lower case letters and <sup> which works with the PR #3207
Please note that here plus signs are used to avoid displaying the elements within <sup> tags to be parsed by GitHub viewer. Obviously one could omit them in the call.
Activity
etpinard commentedon Nov 18, 2016
Some info on the topic:
HTML entities are converted to unicode in src/lib/html2unicode.js. In particular
<sup></sup>are converted usingsuperscript-textwhich appears to work only for lower case strings inside the<sup></sup>tags. Indeed, lower case strings are working fine. This is tested in thegl3d_log-axis-bigmock.Note that
html2unicodemakes no attempt at converting<sub></sub>.etpinard commentedon Apr 26, 2017
Related: https://community.plot.ly/t/scatter3d-text-formatting/4039/2
etpinard commentedon Jul 17, 2017
cc @dfcreative
archmoj commentedon Nov 2, 2018
The example below is related to using lower case letters and
<sup>which works with the PR #3207Please note that here plus signs are used to avoid displaying the elements within
<sup>tags to be parsed by GitHub viewer. Obviously one could omit them in the call.Plotly.newPlot(gd, [ { "type": "mesh3d", "y": [0, 1, 2], "x": [1, 2, 0], "z": [2, 0, 1], "i": [0], "j": [1], "k": [2] } ], { "title": "Triangle mesh", "scene": { "zaxis": { "title": "Z" + "" + "super script using numbers and only lower cases without" + "" + "'q'!" } } });archmoj commentedon Nov 4, 2018
Now in the PR #3207 the superscripts and subscripts could be used in webgl; and they are not limited to lower cases.
vvch commentedon Nov 4, 2018
Thank you very much, it was very annoying bug. Maybe, it is also possible to use similar approach to fix related #608 bug?