Skip to content

Commit

Permalink
Add six sub-locales for 'TRK '.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcwilliams403 committed Sep 24, 2024
1 parent 39520db commit 8760361
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/font-glyphs/src/letter/shared.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ glyph-block Letter-Shared : begin
foreach part [items-of : glyphParts.slice 1] : if part : include part

if (!gr) : begin
if (gns.length === 2 && [gns.1.endsWith 'tittleAbove'])
if (gns.length === 2 && ([gns.1.endsWith 'tittleAbove'] || [gns.1.endsWith 'dotAbove']))
: then : Dotless.set currentGlyph gns.0
: else : CvDecompose.set currentGlyph gns

Expand Down
20 changes: 16 additions & 4 deletions packages/font-otl/src/gsub-locl.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,19 @@ export : define [buildLOCL gsub para glyphStore] : begin
define latnMOL : gsub.copyLanguage 'latn_MOL ' 'latn_DFLT'
define latnTRK : gsub.copyLanguage 'latn_TRK ' 'latn_DFLT'
define latnAZE : gsub.copyLanguage 'latn_AZE ' 'latn_DFLT'
define latnCRT : gsub.copyLanguage 'latn_CRT ' 'latn_DFLT'
define latnGAG : gsub.copyLanguage 'latn_GAG ' 'latn_DFLT'
define latnJCT : gsub.copyLanguage 'latn_JCT ' 'latn_DFLT'
define latnKAZ : gsub.copyLanguage 'latn_KAZ ' 'latn_DFLT'
define latnKJJ : gsub.copyLanguage 'latn_KJJ ' 'latn_DFLT'
define latnKMZ : gsub.copyLanguage 'latn_KMZ ' 'latn_DFLT'
define latnTAT : gsub.copyLanguage 'latn_TAT ' 'latn_DFLT'
define latnCRT : gsub.copyLanguage 'latn_CRT ' 'latn_DFLT'
define latnTLY : gsub.copyLanguage 'latn_TLY ' 'latn_DFLT'
define latnUDI : gsub.copyLanguage 'latn_UDI ' 'latn_DFLT'
define latnZZA : gsub.copyLanguage 'latn_ZZA ' 'latn_DFLT'
define latnVIT : gsub.copyLanguage 'latn_VIT ' 'latn_DFLT'
define grekIPPH : gsub.copyLanguage 'grek_IPPH ' 'grek_DFLT'
define grekAPPH : gsub.copyLanguage 'grek_APPH ' 'grek_DFLT'
define grekIPPH : gsub.copyLanguage 'grek_IPPH' 'grek_DFLT'
define grekAPPH : gsub.copyLanguage 'grek_APPH' 'grek_DFLT'

# SRB
define loclSRB : gsub.createFeature 'locl'
Expand Down Expand Up @@ -70,10 +76,16 @@ export : define [buildLOCL gsub para glyphStore] : begin
define loclTRK : gsub.createFeature 'locl'
latnTRK.addFeature loclTRK
latnAZE.addFeature loclTRK
latnCRT.addFeature loclTRK
latnGAG.addFeature loclTRK
latnJCT.addFeature loclTRK
latnKAZ.addFeature loclTRK
latnKJJ.addFeature loclTRK
latnKMZ.addFeature loclTRK
latnTAT.addFeature loclTRK
latnCRT.addFeature loclTRK
latnTLY.addFeature loclTRK
latnUDI.addFeature loclTRK
latnZZA.addFeature loclTRK
loclTRK.addLookup : createGsubLookupFromGr gsub glyphStore LocalizedForm.TRK

# VIT
Expand Down

0 comments on commit 8760361

Please sign in to comment.