Fix IPPH forms for {super|sub}script beta/chi. (#2365)
This commit is contained in:
parent
dba3477cdb
commit
29d00e8473
5 changed files with 19 additions and 5 deletions
|
@ -1 +1,2 @@
|
||||||
* Improve glyph shape of INVERTED LOW KAVYKA WITH KAVYKA ABOVE (`U+2E46`).
|
* Improve glyph shape of INVERTED LOW KAVYKA WITH KAVYKA ABOVE (`U+2E46`).
|
||||||
|
* Fix IPPH/APPH localization for superscript/subscript Greek Lower Beta and Chi (`U+1D5D`, `U+1D61`, `U+1D66`, `U+1D6A`).
|
||||||
|
|
|
@ -30,3 +30,5 @@ export : define [apply] : begin
|
||||||
run-glyph-module "./greek/sampi.mjs"
|
run-glyph-module "./greek/sampi.mjs"
|
||||||
run-glyph-module "./greek/qoppa.mjs"
|
run-glyph-module "./greek/qoppa.mjs"
|
||||||
|
|
||||||
|
run-glyph-module "./greek/orthography.mjs"
|
||||||
|
|
||||||
|
|
13
packages/font-glyphs/src/letter/greek/orthography.ptl
Normal file
13
packages/font-glyphs/src/letter/greek/orthography.ptl
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
$$include '../../meta/macros.ptl'
|
||||||
|
|
||||||
|
import [LocalizedForm] from "@iosevka/glyph/relation"
|
||||||
|
|
||||||
|
glyph-module
|
||||||
|
|
||||||
|
glyph-block Letter-Greek-Orthography : begin
|
||||||
|
glyph-block-import Common-Derivatives
|
||||||
|
|
||||||
|
# Link localization forms
|
||||||
|
|
||||||
|
link-gr LocalizedForm.IPPH 'grek/beta' 'latn/beta'
|
||||||
|
link-gr LocalizedForm.IPPH 'grek/chi' 'latn/chi'
|
|
@ -88,10 +88,6 @@ export : define [buildLOCL gsub para glyphStore] : begin
|
||||||
define loclIPPH : gsub.createFeature 'locl'
|
define loclIPPH : gsub.createFeature 'locl'
|
||||||
grekIPPH.addFeature loclIPPH
|
grekIPPH.addFeature loclIPPH
|
||||||
grekAPPH.addFeature loclIPPH
|
grekAPPH.addFeature loclIPPH
|
||||||
loclIPPH.addLookup : gsub.createLookup
|
loclIPPH.addLookup : createGsubLookupFromGr gsub glyphStore LocalizedForm.IPPH
|
||||||
.type 'gsub_single'
|
|
||||||
.substitutions : object
|
|
||||||
'grek/beta' : glyphStore.ensureExists 'latn/beta'
|
|
||||||
'grek/chi' : glyphStore.ensureExists 'latn/chi'
|
|
||||||
|
|
||||||
gsub.endBlockAtFront rec
|
gsub.endBlockAtFront rec
|
||||||
|
|
|
@ -30,6 +30,7 @@ export const LocalizedForm = {
|
||||||
Italic: LinkedGlyphProp("SerbianLocItalic"),
|
Italic: LinkedGlyphProp("SerbianLocItalic"),
|
||||||
},
|
},
|
||||||
BGR: LinkedGlyphProp("BulgarianLoc"),
|
BGR: LinkedGlyphProp("BulgarianLoc"),
|
||||||
|
IPPH: LinkedGlyphProp("IPALoc"),
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Texture = {
|
export const Texture = {
|
||||||
|
@ -183,6 +184,7 @@ export const AnyLocalizedForm = {
|
||||||
if (LocalizedForm.SRB.Upright.get(glyph)) grs.push(LocalizedForm.SRB.Upright);
|
if (LocalizedForm.SRB.Upright.get(glyph)) grs.push(LocalizedForm.SRB.Upright);
|
||||||
if (LocalizedForm.SRB.Italic.get(glyph)) grs.push(LocalizedForm.SRB.Italic);
|
if (LocalizedForm.SRB.Italic.get(glyph)) grs.push(LocalizedForm.SRB.Italic);
|
||||||
if (LocalizedForm.BGR.get(glyph)) grs.push(LocalizedForm.BGR);
|
if (LocalizedForm.BGR.get(glyph)) grs.push(LocalizedForm.BGR);
|
||||||
|
if (LocalizedForm.IPPH.get(glyph)) grs.push(LocalizedForm.IPPH);
|
||||||
if (grs.length) return grs;
|
if (grs.length) return grs;
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue