Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscript brackets get ignored #2

Open
hickman-santini opened this issue Nov 15, 2022 · 2 comments
Open

Subscript brackets get ignored #2

hickman-santini opened this issue Nov 15, 2022 · 2 comments

Comments

@hickman-santini
Copy link

When you want to subscript e.g. $O_{i,T}$ the bracketed expression doesn't stay together:
$O_{i,T}$
yields:
𝑂ᵢ,T

Also, \frac doesn't work (e.g. $\frac{\alpha}{\beta}$).

@hickman-santini
Copy link
Author

hickman-santini commented Nov 15, 2022

Curious if you plan to support these! I may try to contribute myself. Thanks for making this tool. :)

@zenorogue
Copy link
Owner

Thanks for your comment!

As far as I know Unicode does not have a way to render the symbols you want. So complex symbols such as $\frac{\alpha}{\beta}$ are rendered by MathJax (which is used by GitHub and many other sites to render LaTeX math) as an image, not converted to Unicode.

Subscript brackets are not ignored, but again, Unicode does not seem to contain subscript capital T -- your line would work with $O_{i,t}$ for example. You can see the line mapping{"_", ...} to see what subscripts are known by l2u to exist in Unicode. So no plans to support things not supported by Unicode.

Unicode does contain some specific fraction symbols like ½. In general, there are lots of very useful symbols which are in Unicode but not yet supported (and should be very easy to add by editing the source code; the current version contains mostly the symbols which I thought about when writing it). So contributions here are welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants