Add ccmp substitutions for DZ
/Dz
/dz
with caron. (#2558)
This commit is contained in:
parent
0c42345409
commit
4605906a23
4 changed files with 22 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
$$include './meta/macros.ptl'
|
||||
|
||||
import [UkMapToLookup UkLigatureToLookup] from "./table-util.mjs"
|
||||
import [Dotless TieMark TieGlyph OgonekTrY IsSuperscript IsSubscript LeaningMark LeaningMarkSpacer NLDAcuteVariant] from "@iosevka/glyph/relation"
|
||||
import [Dotless TieMark TieGlyph OgonekTrY IsSuperscript IsSubscript LeaningMark LeaningMarkSpacer NLDAcuteVariant HBSCaronVariant] from "@iosevka/glyph/relation"
|
||||
import as UnicodeKnowledge from "@iosevka/font-glyphs/unicode-knowledge"
|
||||
|
||||
extern Map
|
||||
|
@ -132,6 +132,17 @@ export : define [buildCCMP gsub glyphStore markGlyphs] : begin
|
|||
.type 'gsub_ligature'
|
||||
.substitutions substitutions
|
||||
|
||||
Ccmp-Group "DZ-Caron composites" : begin
|
||||
local substitutions {}
|
||||
foreach { gn g } [glyphStore.namedEntries] : begin
|
||||
local hbsVariant : HBSCaronVariant.get g
|
||||
if hbsVariant : substitutions.push
|
||||
object [from : list gn 'caronAbove'] [to hbsVariant]
|
||||
|
||||
export-lookup : gsub.createLookup : object
|
||||
.type 'gsub_ligature'
|
||||
.substitutions substitutions
|
||||
|
||||
Ccmp-Group "Leaning Mark Trasnform" : begin
|
||||
define LeaningAnchorMap : list
|
||||
list 'above' 'leaningAbove'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue