JetBrains / JetBrainsMono

JetBrains Mono – the free and open-source typeface for developers
https://jetbrains.com/mono
SIL Open Font License 1.1
10.79k stars 303 forks source link

Ligature request: %>%, %<>% #249

Closed omega1x closed 1 week ago

omega1x commented 4 years ago

First of all, great thanks for your product, its is really awesome. Please, consider ligature for pipe operators %>% and %<>% for R.

Omnieboer commented 4 years ago

For the uninitiated, like me, the pipe operators are not native in R, but part of extremely popular packages.

Here is an explanation of Pipes. There are apparently also %T>% and %$% on top of %>% and %<>%. The %<% in the above article seems to be a typo and not really an actual operator.

Just mentioning this because %>% isn't mentioned in the linked page as far as I can see.

Also, what people think about this when it comes to Fira Code.

philippnurullin commented 4 years ago

@Omnieboer Thanks for the input! Looks interesting.

On the first glance the it will be hard to simplify the construction of %>% in ligature & don't mess this up. I will think what can be done.

bwu62 commented 3 weeks ago

Hey, commenting here to register my interest, subscribe to updates, and crosspost my idea for a %>% ligature from this parallel issue raised in the FiraCode repo:

image

The exact proportions should obviously be fine tuned more but I think this might be a good starting point. The ligature is both identifiable as %>% but also cohesive as a single unit.

Other iterations that could be considered if people think the ligature isn't clear enough:

  1. The circles in the percent symbols can be slightly horizontally offset from each other if desired.
  2. The bars in the percent symbols (i.e. just the first and last third of the long line) can be slightly sloped.
  3. Both of the above?

This is my draft idea, so feedback is welcome, thanks.

Let me know if you have any thoughts. Really hoping to see more development on this in the future. Thanks! :)

omega1x commented 1 week ago

@bwu62, as for me, being a CRAN-package maintainer, I'm sure the ligature |> for base-R pipe operator is quite enough. Thanks for your attention.