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

Differentiate between "not equal" ligatures #608

Closed
2 of 3 tasks
akarzim opened this issue Jun 18, 2020 · 4 comments
Closed
2 of 3 tasks

Differentiate between "not equal" ligatures #608

akarzim opened this issue Jun 18, 2020 · 4 comments

Comments

@akarzim
Copy link
Contributor

akarzim commented Jun 18, 2020

  • The requested variant shape does not go too far away from Iosevka's design.
  • The requested variant does not conflict with any characters in Unicode that Iosevka currently supports.
  • Some other monospace/programming fonts supported the requested variant. Provide images below.

Why not distinguish the /= ligature from the != ligature for those who want to enable both the default ligature and Haskell's "not equal" ligature when using discretionary ligatures (dlig)?

Here is a proposal based on the oblic bang:

diff

@be5invis be5invis added this to the Backlog milestone Jun 18, 2020
@be5invis
Copy link
Owner

be5invis commented Jul 2, 2020

For Haskell, it is preferred to use HSKL rather than dlig. In most editors if the user could enable dlig then he/she should be able to enable HSKL and use Haskell-specific ligatures for Haskell. AFAIK, VSCode support such configuration.

@be5invis be5invis removed this from the Backlog milestone Jul 2, 2020
@akarzim
Copy link
Contributor Author

akarzim commented Jul 2, 2020

I use Vim in a terminal to write code. So Vim uses the font used by the console/terminal. It makes no sense (and it is not possible) to change the terminal's font depending on the file being edited.

@be5invis
Copy link
Owner

be5invis commented Jul 3, 2020

@akarzim I will not add ambiguous ligation for dlig, but I can add a calt-customization option calt-exeq-alt-1 for an alternative exeq, so you could customize like this:

[buildPlans.iosevka-custom]
design = [
  'calt-center-ops', 'calt-arrow', 'calt-arrow2', 'calt-trig', 'calt-llgg', 'calt-eqeq',
  'calt-ineq', 'calt-slasheq', 'calt-exeq-alt-1', 'calt-ltgt-diamond', 'calt-plusplus',
  'calt-dotoper', 'calt-kern-dotty', 'calt-logic'
]

It will create ligation like this:

image

@akarzim
Copy link
Contributor Author

akarzim commented Jul 3, 2020

Looks perfect. Thank you!

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

2 participants