Add ligation set for chaining number signs (#894).

This commit is contained in:
be5invis 2021-02-15 02:26:56 -08:00
parent 412e335479
commit 0481e59da6
4 changed files with 73 additions and 43 deletions

View file

@ -42,10 +42,7 @@ define [buildLigationsImpl sink para featureName mappedFeature rankedLookups] :
define regexLookAround [less.concat hyphen equal exclam greater anyBar]
define [acops] {'less' 'greater' 'hyphen' 'equal' 'plus'}
define [acskip] {
'slash' 'bar' 'at' 'ampersand' 'percent'
'numberSign' 'numberSign.upright' 'numberSign.slanted'
}
define [acskip] {'slash' 'bar' 'at' 'ampersand' 'percent' 'numberSign'}
local ligationLookupName : 'lig_' + featureName + '{' + mappedFeature + '}'
@ -276,6 +273,12 @@ define [buildLigationsImpl sink para featureName mappedFeature rankedLookups] :
{'underscore' 'underscore.jr'} ~> look-around
{'underscore'} ~> {'underscore.jr'}
do "Number sign chains" : if [hasLG 'connected-number-sign'] : begin
CreateLigationLookup : list
chain-rule
{'numberSign' 'numberSign.jr'} ~> look-around
{'numberSign'} ~> {'numberSign.jr'}
do "triangles" : if [hasLG 'trig'] : begin
CreateLigationLookup : list
chain-rule # <|