-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Allow \u2e12 in variable names #34835
Comments
|
Is there a latex sequence for this? |
Not per se afaik. ( |
Indeed the Latex we generate as output do https://github.com/JuliaDiffEq/ModelingToolkit.jl/blob/v1.2.7/test/latexify.jl#L38-L51 Essentially what we're doing is taking in data and then spitting out the Latex for the physical laws that would generate the data, so we're trying to make our symbolic variables on the Julia side be symbols that are close to the Latex to make it easier to read and relate (since we're generating Julia code for the functions as well). What we're missing is a unicode subscript comma. |
It seems like it should be input as |
There is also \u02cf 'ˏ' IBM Plex Mono has \u201a \u02cf, does not have \u2e12 Given the lesser availability of \u2e12, one of the alternatives is preferable. |
u+201a actually looks too nice, i.e. it's too hard to distinguish from a regular comma: In a sense, that u+02cf looks a bit weird is an advantage, as it makes it clear that it's not a regular comma: There is also u+02cc "modifier letter low vertical line": |
This came up in https://github.com/JuliaDiffEq/ModelingToolkit.jl/issues/247 where
u₁⸒₂
would be great name for a generated symbolic variable in a matrix, but it is not allowed with the current punctuation rules in the parser. I would advocate for allowing this inside of variable names since right now it doesn't have another use.The text was updated successfully, but these errors were encountered: