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

Other Ligatures #76

Closed
sirgru opened this issue Oct 16, 2019 · 2 comments
Closed

Other Ligatures #76

sirgru opened this issue Oct 16, 2019 · 2 comments

Comments

@sirgru
Copy link

sirgru commented Oct 16, 2019

I would like to import ligatures from another font, different from Fira Code. Concretely, I would like to import ligatures from https://github.com/i-tu/Hasklig .

For example, they have

    lookup hyphen_greater_greater {
    ignore sub hyphen hyphen' greater greater;
    ignore sub hyphen' greater greater greater;
    sub LIG LIG greater' by hyphen_greater_greater;
    sub LIG  greater' greater  by LIG;
    sub hyphen'   greater  greater  by LIG;
  } hyphen_greater_greater;

Putting this in ligatures.py doesn't do anything.

{   # ->>
        'chars': ['hyphen', 'greater', 'greater'],
        'firacode_ligature_name': 'hyphen_greater_greater',
},

How to find the ligatures in that font, and how to make sure ligature rules are correct?

@ToxicFrog
Copy link
Owner

Just putting them in ligatures.py won't do anything unless you also modify ligaturize.py to read from Hasklig. Getting it to read ligatures from both Fira Code and Hasklig is a bigger project, that will probably involve extending ligatures.py to note which font each ligature comes from.

For a quick and dirty hack you might try replacing the Fira Code files with renamed Hasklig files and updating ligatures.py to contain only the Hasklig ligatures, but then you'll lose the Fira Code ones.

@ToxicFrog
Copy link
Owner

Duplicate of #22

@ToxicFrog ToxicFrog marked this as a duplicate of #22 Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants