Skip to content

Commit

Permalink
1.002update4
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-212 committed Mar 15, 2024
1 parent b2ecd25 commit dc0d32c
Show file tree
Hide file tree
Showing 76 changed files with 147 additions and 114 deletions.
18 changes: 11 additions & 7 deletions misc/scripts/kernsample.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

def mapGroups(groups): # => { glyphname => set(groupname, ...), ... }
m = OrderedDict()
for groupname, glyphnames in groups.iteritems():
for groupname, glyphnames in groups.items():
for glyphname in glyphnames:
m.setdefault(glyphname, set()).add(groupname)
return m
Expand Down Expand Up @@ -53,7 +53,7 @@ def printPairs(font, baseSide, baseSideGlyph, otherSideNames, args):
suffix_lc = args.suffix
else:
if args.prefix and len(args.prefix) > 0:
s = unicode(args.prefix)
s = str(args.prefix)
if s[0].isupper():
prefix_uc = args.prefix
prefix_lc = args.prefix.lower()
Expand All @@ -62,7 +62,7 @@ def printPairs(font, baseSide, baseSideGlyph, otherSideNames, args):
prefix_lc = args.prefix

if args.suffix and len(args.suffix) > 0:
s = unicode(args.suffix)
s = str(args.suffix)
if s[0].isupper():
suffix_uc = args.suffix
suffix_lc = args.suffix.lower()
Expand All @@ -77,7 +77,7 @@ def printPairs(font, baseSide, baseSideGlyph, otherSideNames, args):
otherGlyph = font[otherName]
prefix = prefix_lc
suffix = suffix_lc
if unicode(otherName[0]).isupper():
if str(otherName[0]).isupper():
prefix = prefix_uc
suffix = suffix_uc
if baseSide == LEFT:
Expand Down Expand Up @@ -110,7 +110,7 @@ def samplesForGlyphnameR(font, groups, groupmap, kerning, glyphname, args):

def _addLeftnames(groups, kerning, glyphname, leftnames, includeAll=True):
# kerning : { leftName => {rightName => kernVal} }
for leftname, kern in kerning.iteritems():
for leftname, kern in kerning.items():
if glyphname in kern:
if leftname[0] == '@':
for leftname2 in groups[leftname]:
Expand Down Expand Up @@ -206,8 +206,12 @@ def main():
groupsFilename = os.path.join(args.fontPath, 'groups.plist')
kerningFilename = os.path.join(args.fontPath, 'kerning.plist')

groups = plistlib.readPlist(groupsFilename) # { groupName => [glyphName] }
kerning = plistlib.readPlist(kerningFilename) # { leftName => {rightName => kernVal} }
with open(groupsFilename, 'rb') as groupsFile:
groups = plistlib.load(groupsFile) # { groupName => [glyphName] }

with open(kerningFilename, 'rb') as kerningFile:
kerning = plistlib.load(kerningFile) # { leftName => {rightName => kernVal} }

groupmap = mapGroups(groups) # { glyphname => set(groupname, ...), ... }

if not args.asLeft and not args.asRight:
Expand Down
3 changes: 2 additions & 1 deletion src/NovaGothic.glyphspackage/UIState.plist
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
displayStrings = (
AIJSASKNIJOVNLAS
July,
"AẦ"
);
}
28 changes: 28 additions & 0 deletions src/NovaGothic.glyphspackage/fontinfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,12 @@ m01 = {
"@MMK_L_A" = {
"@MMK_R_O" = -30;
"@MMK_R_V" = -100;
"@MMK_R_t" = -20;
"@MMK_R_v" = -80;
};
"@MMK_L_H" = {
"@MMK_R_v" = -20;
};
"@MMK_L_O" = {
"@MMK_R_A" = -30;
"@MMK_R_V" = -60;
Expand Down Expand Up @@ -422,14 +426,24 @@ p = -30;
"@MMK_L_x" = {
"@MMK_R_o" = -30;
};
B = {
"@MMK_R_A" = -20;
};
F = {
"@MMK_R_A" = -40;
};
K = {
"@MMK_R_O" = -60;
};
L = {
U = -30;
};
R = {
"@MMK_R_o" = -40;
};
U = {
"@MMK_R_A" = -40;
"@MMK_R_H" = 20;
};
a = {
"@MMK_R_v" = -30;
Expand All @@ -443,11 +457,15 @@ m002 = {
"@MMK_L_A" = {
"@MMK_R_O" = -50;
"@MMK_R_V" = -130;
"@MMK_R_t" = -40;
"@MMK_R_v" = -100;
J = -40;
S = -20;
U = -40;
};
"@MMK_L_H" = {
"@MMK_R_v" = -30;
};
"@MMK_L_O" = {
"@MMK_R_A" = -50;
"@MMK_R_V" = -50;
Expand All @@ -471,6 +489,9 @@ S = -40;
"@MMK_R_v" = -50;
"@MMK_R_x" = -40;
};
"@MMK_L_r" = {
"@MMK_R_o" = -20;
};
"@MMK_L_t" = {
"@MMK_R_o" = -10;
};
Expand All @@ -481,12 +502,18 @@ p = -20;
"@MMK_L_x" = {
"@MMK_R_o" = -40;
};
B = {
"@MMK_R_A" = -30;
};
C = {
"@MMK_R_V" = -20;
};
F = {
"@MMK_R_A" = -30;
};
L = {
U = -40;
};
R = {
"@MMK_R_o" = -20;
};
Expand All @@ -496,6 +523,7 @@ S = {
};
U = {
"@MMK_R_A" = -40;
"@MMK_R_H" = 20;
};
k = {
"@MMK_R_o" = -60;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/B_dotbelow.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ref = B;
ref = dotbelowcomb;
}
);
width = 610;
width = 620;
}
);
unicode = 7684;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/B_eta.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ shapes = (
ref = B;
}
);
width = 610;
width = 620;
}
);
unicode = 914;
Expand Down
4 changes: 2 additions & 2 deletions src/NovaGothic.glyphspackage/glyphs/D_caron.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ shapes = (
ref = D;
},
{
pos = (0,210);
pos = (10,210);
ref = caroncomb;
}
);
width = 690;
width = 700;
}
);
unicode = 270;
Expand Down
4 changes: 2 additions & 2 deletions src/NovaGothic.glyphspackage/glyphs/D_circumflexbelow.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ shapes = (
ref = D;
},
{
pos = (30,0);
pos = (40,0);
ref = circumflexbelowcomb;
}
);
width = 690;
width = 700;
}
);
unicode = 7698;
Expand Down
4 changes: 2 additions & 2 deletions src/NovaGothic.glyphspackage/glyphs/D_dotbelow.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ shapes = (
ref = D;
},
{
pos = (30,0);
pos = (40,0);
ref = dotbelowcomb;
}
);
width = 690;
width = 700;
}
);
unicode = 7692;
Expand Down
4 changes: 2 additions & 2 deletions src/NovaGothic.glyphspackage/glyphs/D_macronbelow.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ shapes = (
ref = D;
},
{
pos = (30,0);
pos = (40,0);
ref = macronbelowcomb;
}
);
width = 690;
width = 700;
}
);
unicode = 7694;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/D_ze-cy.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ shapes = (
ref = S;
}
);
width = 600;
width = 614;
}
);
unicode = 1029;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_acute.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (0,201);
ref = acutecomb;
}
);
width = 590;
width = 570;
}
);
unicode = 201;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_caron.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pos = (10,201);
ref = caroncomb;
}
);
width = 590;
width = 570;
}
);
unicode = 282;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_cedilla.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pos = (13,0);
ref = cedillacomb;
}
);
width = 590;
width = 570;
}
);
unicode = 552;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_circumflex.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (10,201);
ref = circumflexcomb;
}
);
width = 590;
width = 570;
}
);
unicode = 202;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (10,201);
ref = circumflexcomb_acutecomb;
}
);
width = 590;
width = 570;
}
);
unicode = 7870;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pos = (10,201);
ref = circumflexcomb;
}
);
width = 590;
width = 570;
}
);
unicode = 7878;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (10,201);
ref = circumflexcomb_gravecomb;
}
);
width = 590;
width = 570;
}
);
unicode = 7872;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (10,201);
ref = circumflexcomb_hookabovecomb;
}
);
width = 590;
width = 570;
}
);
unicode = 7874;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (10,201);
ref = circumflexcomb_tildecomb;
}
);
width = 590;
width = 570;
}
);
unicode = 7876;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_dieresis.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pos = (10,201);
ref = dieresiscomb;
}
);
width = 590;
width = 570;
}
);
unicode = 203;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_dotaccent.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pos = (10,201);
ref = dotaccentcomb;
}
);
width = 590;
width = 570;
}
);
unicode = 278;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_dotbelow.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (10,0);
ref = dotbelowcomb;
}
);
width = 590;
width = 570;
}
);
unicode = 7864;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_grave.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (20,201);
ref = gravecomb;
}
);
width = 590;
width = 570;
}
);
unicode = 200;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_hookabove.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (-15,201);
ref = hookabovecomb;
}
);
width = 590;
width = 570;
}
);
unicode = 7866;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_macron.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pos = (10,201);
ref = macroncomb;
}
);
width = 590;
width = 570;
}
);
unicode = 274;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_ogonek.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pos = (190,0);
ref = ogonekcomb;
}
);
width = 590;
width = 570;
}
);
unicode = 280;
Expand Down
2 changes: 1 addition & 1 deletion src/NovaGothic.glyphspackage/glyphs/E_psilon.glyph
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ shapes = (
ref = E;
}
);
width = 590;
width = 570;
}
);
unicode = 917;
Expand Down
Loading

0 comments on commit dc0d32c

Please sign in to comment.