Zulip Chat Archive
Stream: mathlib4
Topic: Notation for superscript infinity
Dean Young (Jun 01 2024 at 20:03):
Superscript infinity (${}^{\infty}$) is not in the unicode catalogue. But sometimes VS Code has something of its own. Does anyone know if there is a superscript infinity feature? I would really enjoy that.
Yury G. Kudryashov (Jun 01 2024 at 21:50):
Even if VS Code supports some non-standard glyph, please don't push it to Mathlib. There are people who
- read the code in a browser;
- use Emacs or NeoVim
Dean Young (Jun 01 2024 at 22:32):
@Yury G. Kudryashov my bad, thanks for this
Kyle Miller (Jun 02 2024 at 06:39):
sometimes VS Code has something of its own
What's an example of that?
Dean Young (Jun 02 2024 at 06:40):
I just saw on about 1/4th from Eric Wieser, but I can't seem to find it.
Eric Wieser (Jun 02 2024 at 07:49):
That's not an example of this
Eric Wieser (Jun 02 2024 at 07:50):
Vscode can only display unicode characters (because that is what are stored in text files) that are in a font on your system (because that is how it knows to draw them)
Eric Wieser (Jun 02 2024 at 07:51):
Unicode has a"private use" space with unassigned characters that you can display however you like in a custom font, but I think this is what @Yury G. Kudryashov is saying is a really bad idea
Julian Berman (Jun 02 2024 at 07:57):
Note also that there is a combining infinity character -- https://www.fileformat.info/info/unicode/char/1ab2/browsertest.htm -- though if you see the font support page, basically nothing has it.
Eric Wieser (Jun 02 2024 at 13:38):
X᪲
(X᪲)
Eric Wieser (Jun 02 2024 at 13:39):
Apparently for German dialectology, so presumably not something the unicode consortium would like being used for mathematics!
Dean Young (Jun 02 2024 at 15:23):
The Unicode Technical Committee (UTC) has Microsoft as a member. Maybe eventually someone can pool some character requests.
https://www.unicode.org/consortium/distlist.html
https://home.unicode.org/membership/membership-levels/
Julian Berman (Jun 02 2024 at 15:29):
FWIW anyone can submit proposals for new characters -- that's here https://www.unicode.org/pending/proposals.html and the pipeline of proposed new characters is https://www.unicode.org/alloc/Pipeline.html though I'm not sure what the philosophical preference is these days vis a vis combining characters vs standalone, I thought it was that there still was a preference to have both versions but it seems not for this.
Dean Young (Jun 03 2024 at 17:05):
@Julian Berman Thanks. Do you think there are other characters people might want besides this?
Dean Young (Jun 03 2024 at 17:10):
https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/Best.20lim.20in.20unicode.3F
Dean Young (Jun 03 2024 at 17:11):
So the top two for me are superscript infinity and a nice looking left and right limit.
Dean Young (Jun 03 2024 at 17:13):
Beyond that, there's the missing superscript and subscript characters and how ℂ and ℚ look different.
Dean Young (Jun 03 2024 at 17:17):
Screenshot-2024-06-03-at-1.17.41PM.png
Dean Young (Jun 03 2024 at 17:22):
Screenshot-2024-06-03-at-1.21.55PM.png
Eric Wieser (Jun 03 2024 at 17:22):
You might want to read https://stackoverflow.com/a/76617653
Eric Wieser (Jun 03 2024 at 17:23):
In short, unicode is not intended to represent arbitrary rich text. If you really want these things, you could create a font with a custom ligature that renders lim->
as your image above, but this Zulip is a poor place to discuss that
Eric Wieser (Jun 03 2024 at 17:24):
Dean Young said:
and how ℂ and ℚ look different
You are describing a font issue. Probably the font you are using only has one of them.
Last updated: May 02 2025 at 03:31 UTC