-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Disable selected ligatures #670
Comments
thanks, I’ll consider this |
FWIW, I've managed to disable selected ligatures by running https://github.com/ToxicFrog/Ligaturizer on the original Fira Mono, with custom configuration. |
@curran any chance you could share more on how you did this? This is such a beautiful font for Julia except for this issue unforuntatley, as broadcasting is ubiquitous. |
@marius311 You can comment out certain ligatures in this file https://github.com/ToxicFrog/Ligaturizer/blob/master/ligatures.py , then run the build process to generate the font with commented out ligatures not present. This is also mentioned in the README https://github.com/ToxicFrog/Ligaturizer#automatic This repo that adds only the arrow ligatures to Ubuntu Mono may be of interest: https://github.com/datavis-tech/ubuntu-mono-ligaturized/tree/master/arrowized It shows you can remove pretty much everything from that |
Another straightforward way to remove the ligatures of your choice:
|
Moved both .- and .= to character variants in v6 |
Hi @tonsky, could you check that |
Hm. Glad to see that it's working as expected, but now I'm wondering why mine isn't doing what I had hoped. Fortunately I rarely have those two characters together, so I don't care enough to dig further as it's just me. Thanks for the response! :) |
Julia uses dotted operators extensively to broadcast operations (basically vectorizing them.) Any operator can have a dot added to it, and this includes all unicode operators as well.
Fira Code has ligatures for a small number of dotted operators, namely

.-
and.=
(as far as I know). In code that looks inconsistent:Since there is no realistic way that ligatures can be added for all allowable operators, is it possible to disable the ligatures for
.=
and.-
?The text was updated successfully, but these errors were encountered: