How is a state of subscript notation in Julia 1.x?


#1

I experiments with Julia subscript notation with 1.x version of language. It seems that is 30 or so available subscripts like A_1, A_2, A_x, A_schwa. I have impression that in versions 0.x this work different, but I can’t find these examples now.

Can someone explain to me how this looks now? I make small presentation about Julia and probably have time to find it myself.


#2

I don’t think this changed. All the subscripts which are in unicode are defined, which are not all though: https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts#Latin_and_Greek_tables


#3

I try to make A_y subscript in IJulia notebook and that don’t work, even as in Unicode table is defined. But I both learning Julia 1.x and have new operating system, which works quite strange, so I don’t know if problem is in Julia 1.x rules, IJulia or something with OS.


#4

Unfortunately, it’s one of the missing subscripts in unicode — see the table on the Wikipedia page @mauro3 linked. Unicode simply has not defined superscript q or subscripts b, c, d, f, g, q, w, y, z. It’s all very silly.

See https://github.com/stevengj/subsuper-proposal for a draft proposal to the Unicode standards committee to try to rectify the situation.


#5

Some subscripts do not work in macOS either. I would really like the _k but I see an exclamation mark here.


#6

You just need to install a better font. I think Unifont is what ends up displaying many of these glyphs on my Mac (as a fallback, I think).


#7

Thank you for pointing this out to me. I several times read “subscript” not “superscript” in this table and superscript A^y is defined. That is double silly, why subscripts are not compatible with superscripts?


#8

As I understand it, each and every sup-/sub-script was independently argued-for and added in separate blocks for separate purposes. E.g., some might be for use with chemistry notations while others could be for phonetics. That’s why fonts don’t put them all at the same height or size, too.


#9

This is all because of whatever the Unicode Consortium decides. They have decided that “English letters” does not constitute a meaningful set of letters, so you have missing letters like q.

Please help with https://github.com/stevengj/subsuper-proposal to try to get this fixed in Unicode.


Expanding unicode support
#10

I will do what I can.


#11

An interesting, but perhaps ambitious, project would be to mine relevant subsets (physics, stats, ML, optimization etc.) of arXiv for statistics on usage of sub/superscript in scientific articles.
On the flip side, github could be mined for variables named xx_i, x_2 etc.
Could such statistics perhaps be useful to make the arguments for the proposal?


#12

Probably could. However, just polling a few field experts might be a quicker and safer way.