-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Define g ⨟ f = f ∘ g #34832
base: master
Are you sure you want to change the base?
Define g ⨟ f = f ∘ g #34832
Conversation
|
I just learnt from #34835 (comment) that fileformat.info shows a list of fonts that supports a given unicode (within the fonts installed in their server). Maybe useful as sampling points:
So yes, U+2218 definitely is supported by more fonts than U+2A1F. FYI here is the list of non-ASCII names exported from julia> [x for x in (string(x) for x in names(Base)) if !isascii(x)]
26-element Array{String,1}:
"÷"
"π"
"ℯ"
"∈"
"∉"
"∋"
"∌"
"∘"
"√"
"∛"
"∩"
"∪"
"≈"
"≉"
"≠"
"≡"
"≢"
"≤"
"≥"
"⊆"
"⊇"
"⊈"
"⊉"
"⊊"
"⊋"
"⊻" There are some variations in font support for these unicode characters. For example, U+212F |
I can confirm that this is not shown on a vanilla ubuntu + firefox setup. IMHO the short list of supported fonts is good to estimator for the amount of confusion to expect from adding this. |
Somebody should file a request with whatever authority is in charge of font authoring for that combination ;). |
I agree an operator with this semantic would be great; unfortunately, I also don't see this rendered correctly (in my browser or terminal). |
Maybe it's an ubuntu quirk. It's rendered in my browsers and terminals. I'm running Arch, which doesn't give you anything out of the box. |
I knew you were up to something when you added this to the parser :) Works fine for me on two ubuntu 18.04 systems. I hesitate to add an operator with potentially poor font coverage to Base though. |
Works for me on ubuntu 18.04 + firefox |
Of courses, we can solve the font problem by defining something with ASCII |
font is correctly displayed for me on mac catalina 10.15.2 with all three, chrome, firefox and safari, with default font settings |
This PR adds a simple definition
⨟(fs...) = ∘(reverse(fs)...)
to the new operator added in #34722. This is useful for abstracting out pipelined operations likex |> f |> g |> h
asf ⨟ g ⨟ h
. For example:cc @jw3126 @schlichtanders @ararslan