Skip to content
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

Ligature requests for turnstile |-, double turnstile |=, and bottom _|_ #494

Closed
ace-wu opened this issue Sep 25, 2017 · 7 comments
Closed

Comments

@ace-wu
Copy link

ace-wu commented Sep 25, 2017

I'd like to propose following ligatures

They are often shown in math document and sometimes used in Haskell

@tonsky
Copy link
Owner

tonsky commented Sep 25, 2017

Well, |= is also a “Bitwise OR assignment” in C-like languages. But I guess they won’t mind having that displayed as a ligature. The rest should not conflict with anything, at least at the first glance. Thanks for the suggestion!

@j-f1
Copy link
Contributor

j-f1 commented Sep 25, 2017

|- might conflict with bitwise or: b = a|-1. _|_ might conflict with my_private_var_|_other_private_var, although these may not actually occur in the wild.

@FauxFaux
Copy link

Thank the Lord that someone had raised this issue already! I was really suffering with my unreadable endianness swapping code:

image

@RoyTinker
Copy link

|= is already a supported ligature.

@chharvey
Copy link

if bottom is going to have a ligature, top may as well

@j-f1
Copy link
Contributor

j-f1 commented Dec 28, 2017

How would that be represented in code @chharvey?

@chharvey
Copy link

@j-f1 good question. Although I suppose at this point you could use Unicode and scratch the ligatures altogether.

name Unicode LaTeX ascii symbol also known as
right tack 22a2 \vdash |- 'turnstyle'
left tack 22a3 \dashv -|
down tack 22a4 \top ? 'tee', 'top'
up tack 22a5 \bot _|_ 'bottom'

@tonsky tonsky closed this as completed in d490584 Feb 27, 2018
robfrawley pushed a commit to robfrawley/fonts-firacode that referenced this issue Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants