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

Request for /= vs != #125

Closed
Fresheyeball opened this issue Jan 30, 2016 · 15 comments
Closed

Request for /= vs != #125

Fresheyeball opened this issue Jan 30, 2016 · 15 comments
Milestone

Comments

@Fresheyeball
Copy link

So in Fira Code != gets you the not equals ligature, but in many of my favorite languages /= means not equals. And while there is a nice ligature for /=, it would be nice to get the not equals ligature for /=.

@weavejester
Copy link

Isn't /= used a lot to mean "divide and assign"?

@Fresheyeball
Copy link
Author

In most languages, yes /= is "divide and assign", but in some its "not equal to". IE Haskell, which already has great Fira support.

@weavejester
Copy link

Right, but that means that in those languages, a /= would be indistinguishable from !=.

@Fresheyeball
Copy link
Author

I'm not sure what options are really possible. But one I know for sure, would be to release an alternative version of Fira with ligature configurations relative to the meaning of some languages. There are actually several languages that use /= to mean not equals.

@bootmii
Copy link

bootmii commented Feb 18, 2016

The /= ligature is ambiguous about its purpose and distinguishes it from !=. Let's keep it that way.

@HolgerPeters
Copy link

Indeed, ambiguity must be avoided at all costs. I think in C a /= b != c is a valid statement, it would be terrible if /= was rendered as != (and semantically wrong).

A similar case could be made for <> which also is "not-equal" in some languages.

@Fresheyeball
Copy link
Author

If the /= ligature is to stay the same because its ambiguous, I'd argue that != should NOT be a not-equals sign, as it may have another meaning. I further would argue that the not-equals ligature is the only ligature in fira that has the problem as the result has a semantic meaning. (maybe >= and =< ligatures as well).

But hey, most of us just want things to be pretty and semantic. Is there no way to make this configurable that F# writers can have <> as inequality? For all glyphs determined to have a semantic meaning?

@weavejester
Copy link

I'd argue that != should NOT be a not-equals sign, as it may have another meaning.

If it does, no-one has yet raised an issue about it.

Having a FiraCode with different versions for different languages would of course be ideal, but that also sounds like a lot of work!

@Fresheyeball
Copy link
Author

Is it really? Is it hard to make alternative builds? The glyphs already exist. Can't this be done with just config (some manifest from glyphs to utf8 or something)?

@weavejester
Copy link

It might be easier than I think. Maybe try your hand at it and open a PR?

@Fresheyeball
Copy link
Author

Fair enough, if I can do the work. Would you mind pointing me in the right direction? How is fira built? What tooks will I need?

@tomByrer
Copy link

? gen_calt.clj

@tonsky
Copy link
Owner

tonsky commented Feb 19, 2016

Fira is built with Glyphs 2 app. I’m working on stylistic sets for next
version, so this problem will be sovled by proper configuration in
style.css of your editor

On Fri, Feb 19, 2016 at 11:44 AM Tom Byrer [email protected] wrote:

? gen_calt.clj
https://github.com/tonsky/FiraCode/blob/master/gen_calt.clj


Reply to this email directly or view it on GitHub
#125 (comment).

@Fresheyeball
Copy link
Author

Well shut my mouth can call me a series of mildly derogatory names. Thats great news! I'm going to close this issue, since the desired behavior is already on the roadmap!

@Fresheyeball
Copy link
Author

Any progress on this?

@Fresheyeball Fresheyeball reopened this Jan 15, 2019
Losangelosgenetics pushed a commit to Losangelosgenetics/FiraCode that referenced this issue Mar 12, 2020
Use curl since unyank is removed in newer Rubygems versions
@tonsky tonsky modified the milestones: 3, 4 Apr 8, 2020
@tonsky tonsky modified the milestones: 4, 5 May 16, 2020
@tonsky tonsky modified the milestones: 5, 6 Jun 9, 2020
@tonsky tonsky closed this as completed in b67c841 Oct 10, 2020
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