Add IJ-acute ligatures (#2483) (#2536)

* Add IJ-acute ligatures (#2483).

* Doc

* Now 0xEF## is no longer just dingbats
This commit is contained in:
Belleve 2024-10-06 15:26:15 -10:00 committed by GitHub
parent 4d19a20610
commit fe348a7135
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 44 additions and 7 deletions

View file

@ -23,6 +23,7 @@ export const VS01 = LinkedGlyphProp("VS01");
export const TieMark = LinkedGlyphProp("TieMark");
export const LeaningMark = LinkedGlyphProp("LeaningMark");
export const LeaningMarkSpacer = LinkedGlyphProp("LeaningMarkSpacer");
export const NLDAcuteVariant = LinkedGlyphProp("NLDAcuteVariant");
export const LocalizedForm = {
SRB: {

View file

@ -88,11 +88,21 @@ export class GlyphStore {
queryByUnicode(u) {
return this.encodingForward.get(u);
}
queryByUnicodeEnsured(u) {
const g = this.encodingForward.get(u);
if (!g) throw new Error(`Glyph for Unicode ${u} doesn't exist.`);
return g;
}
queryNameByUnicode(u) {
const g = this.queryByUnicode(u);
if (!g) return undefined;
return this.queryNameOf(g);
}
queryNameByUnicodeEnsured(u) {
const g = this.queryByUnicode(u);
if (!g) throw new Error(`Glyph for Unicode ${u} doesn't exist.`);
return this.queryNameOf(g);
}
queryUnicodeOf(g) {
const s = this.encodingBackward.get(g);
if (!s || !s.size) return null;