monoid icon indicating copy to clipboard operation
monoid copied to clipboard

Language-specific OpenType Feature Names for Programming Ligatures

Open be5invis opened this issue 9 years ago • 2 comments

Given the fact that in different languages, the symbol combination should be combined into a ligature are different, is it possible to provide a language-specific feature name to distinct them? For example, in C++, >>= should not be combined together, and we can assign a feature XCPP to combine >> only. In Haskell, >>= should be combined, and feature XHS_ will be applied. The default calt can be restricted to "most-common" languages only. cf. tonsky/FiraCode#192, atom/atom#11846, Microsoft/vscode#6918, chrissimpkins/Hack#211, larsenwork/monoid#155

be5invis avatar May 26 '16 12:05 be5invis

@be5invis cool idea, I'm not sure editor support is there yet but please enlighten me if they are

larsenwork avatar Jun 18 '16 07:06 larsenwork

@larsenwork I've experimented a CSS patch to VSCode and it works well: p The style delta is

token.haskell{ font-feature-settings: "XHS_" 1 }

be5invis avatar Jun 18 '16 09:06 be5invis