Add more alternative exclamation-related ligation sets (exeqeq-alt-1, eqexeq-alt-1, eqexeq-dl-alt-1) (#748).

This commit is contained in:
be5invis 2020-11-21 13:10:38 -08:00
parent 9d916bc5b1
commit 31a156ec14
5 changed files with 32 additions and 0 deletions

View file

@ -368,8 +368,11 @@ Subsection `ligations` is used to customize the ligation set assigned to `calt`
- `eqeq`: Enable ligation for `==` and `===`.
- `ineq`: Enable ligation for `<=` and `>=`.
- `exeqeq`: Enable special ligation for `!==` with triple lines.
- `exeqeq-alt-1`: Enable special ligation for `!==` with triple lines, and a dot at below for distinction.
- `eqexeq`: Enable special ligation for `=!=` with triple lines.
- `eqexeq-alt-1`: Enable special ligation for `=!=` with triple lines and a dot at below for distinction.
- `eqexeq-dl`: Enable special ligation for `=!=` with double lines.
- `eqexeq-dl-alt-1`: Enable special ligation for `=!=` with double lines, and a dot at below for distinction.
- `exeq`: Enable ligation for `!=` and `!==`.
- `exeq-alt-1`: Enable ligation for `!=` and `!==` with a dot at below for distinction.
- `tildeeq`: Enable ligation for `~=` as inequality.

1
changes/4.0.0.md Normal file
View file

@ -0,0 +1 @@
* Add more alternative exclamation-related ligation sets (`exeqeq-alt-1`, `eqexeq-alt-1`, `eqexeq-dl-alt-1`) (#748).

View file

@ -255,6 +255,10 @@ glyph-block Symbol-Ligation : begin
notGlyph.generic 'equal.fc.neg3-alt-1' null 'equal.fc' (shift -- (Width * 1.0)) (F -- exSlash2)
notGlyph.generic 'equal.fc.neg4-alt-1' null 'equal.fc' (shift -- (Width * 1.5)) (F -- exSlash2)
notGlyph.generic 'ident.fc.neg-alt-1' null 'ident.fc' (shift -- (Width * 0.5)) (F -- exSlash2)
notGlyph.generic 'ident.fc.neg3-alt-1' null 'ident.fc' (shift -- (Width * 1.0)) (F -- exSlash2)
notGlyph.generic 'ident.fc.neg4-alt-1' null 'ident.fc' (shift -- (Width * 1.5)) (F -- exSlash2)
do "<| , |> and <>"
glyph-block-import Symbol-Math-Relation : LessShape GreaterShape

View file

@ -790,14 +790,26 @@ define [buildLigationsImpl sink para featureName mappedFeature rankedLookups] :
equal ~> {'equal.cc'}
equal ~> {'equal.cf'}
piecewise
[hasLG 'exeqeq-alt-1'] : chain-rule
exclam ~> {'ident.fc.neg3-alt-1'}
equal ~> {'ident.cc'}
equal ~> {'ident.cf'}
[hasLG 'exeqeq'] : chain-rule
exclam ~> {'ident.fc.neg3'}
equal ~> {'ident.cc'}
equal ~> {'ident.cf'}
[hasLG 'eqexeq-alt-1'] : chain-rule
equal ~> {'ident.fc.neg3-alt-1'}
exclam ~> {'ident.cc'}
equal ~> {'ident.cf'}
[hasLG 'eqexeq'] : chain-rule
equal ~> {'ident.fc.neg3'}
exclam ~> {'ident.cc'}
equal ~> {'ident.cf'}
[hasLG 'eqexeq-dl-alt-1'] : chain-rule
equal ~> {'equal.fc.neg3-alt-1'}
exclam ~> {'equal.cc'}
equal ~> {'equal.cf'}
[hasLG 'eqexeq-dl'] : chain-rule
equal ~> {'equal.fc.neg3'}
exclam ~> {'equal.cc'}

View file

@ -30,14 +30,26 @@ desc = 'Enable ligation for `<=` and `>=`'
ligGroup = "exeqeq"
desc = 'Enable special ligation for `!==` with triple lines'
[simple.exeqeq-alt-1]
ligGroup = "exeqeq-alt-1"
desc = 'Enable special ligation for `!==` with triple lines, and a dot at below for distinction'
[simple.eqexeq]
ligGroup = "eqexeq"
desc = 'Enable special ligation for `=!=` with triple lines'
[simple.eqexeq-alt-1]
ligGroup = "eqexeq-alt-1"
desc = 'Enable special ligation for `=!=` with triple lines and a dot at below for distinction'
[simple.eqexeq-dl]
ligGroup = "eqexeq-dl"
desc = 'Enable special ligation for `=!=` with double lines'
[simple.eqexeq-dl-alt-1]
ligGroup = "eqexeq-dl-alt-1"
desc = 'Enable special ligation for `=!=` with double lines, and a dot at below for distinction'
[simple.exeq]
ligGroup = "exeq"
desc = 'Enable ligation for `!=` and `!==`'