hey there, i get this issue from the macro-panel …
Traceback (most recent call last):
File “Steal kerning from InDesign.py”, line 142, in
print " ERROR: Could not set kerning for %s-%s (%i)." % (leftSide, rightSide, kernValue)
NameError: name ‘kernValue’ is not defined
i managed to do some further test to track down the issue:
Start
Accessing: Adobe InDesign CC 2019
Extracting kerning from doc: boyle.indd
Found text: ’’a’’b’’c’’d’’e’’f’’g’’h’’i’’j’’k’’l’’m’’n’’o’’p’’q’’r’’s’’t…
Found font: FTBoyle Thin
Applying kerning to: FTBoyle, Master: Light
ERROR: Could not set kerning for s-i (-29).
ERROR: Could not set kerning for s-i (-29).
Kerning for a-quoteright set to -29.
ERROR: Could not set kerning for s-i (-29).
ERROR: Could not set kerning for s-i (-29).
Kerning for b-quoteright set to -35.
ERROR: Could not set kerning for s-i (-35).
ERROR: Could not set kerning for s-i (-35).
No kerning between c-quoteright. Ignored.
ERROR: Could not set kerning for s-i (0).
ERROR: Could not set kerning for s-i (0).
Kerning for d-quoteright set to 1.
ERROR: Could not set kerning for s-i (1).
ERROR: Could not set kerning for s-i (1).
Kerning for e-quoteright set to -14.
ERROR: Could not set kerning for s-i (-14).
ERROR: Could not set kerning for s-i (-14).
Kerning for f-quoteright set to 26.
ERROR: Could not set kerning for s-i (26).
ERROR: Could not set kerning for s-i (26).
Kerning for g-quoteright set to -2.
ERROR: Could not set kerning for s-i (-2).
ERROR: Could not set kerning for s-i (-2).
Kerning for h-quoteright set to -34.
ERROR: Could not set kerning for s-i (-34).
ERROR: Could not set kerning for s-i (-34).
Kerning for i-quoteright set to 3.
ERROR: Could not set kerning for s-i (3).
ERROR: Could not set kerning for s-i (3).
Kerning for j-quoteright set to -3.
ERROR: Could not set kerning for s-i (-3).
ERROR: Could not set kerning for s-i (-3).
Kerning for k-quoteright set to 31.
ERROR: Could not set kerning for s-i (31).
ERROR: Could not set kerning for s-i (31).
Kerning for l-quoteright set to -3.
ERROR: Could not set kerning for s-i (-3).
ERROR: Could not set kerning for s-i (-3).
Kerning for m-quoteright set to -20.
ERROR: Could not set kerning for s-i (-20).
ERROR: Could not set kerning for s-i (-20).
Kerning for n-quoteright set to -25.
ERROR: Could not set kerning for s-i (-25).
ERROR: Could not set kerning for s-i (-25).
Kerning for o-quoteright set to -23.
ERROR: Could not set kerning for s-i (-23).
ERROR: Could not set kerning for s-i (-23).
Kerning for p-quoteright set to -26.
ERROR: Could not set kerning for s-i (-26).
ERROR: Could not set kerning for s-i (-26).
Kerning for q-quoteright set to -21.
ERROR: Could not set kerning for s-i (-21).
ERROR: Could not set kerning for s-i (-21).
Kerning for r-quoteright set to 10.
ERROR: Could not set kerning for s-i (10).
ERROR: Could not set kerning for s-i (10).
Kerning for s-quoteright set to -13.
ERROR: Could not set kerning for s-i (-13).
ERROR: Could not set kerning for s-i (-13).
Kerning for t-quoteright set to 36.
ERROR: Could not set kerning for s-i (36).
ERROR: Could not set kerning for s-i (36).
Kerning for u-quoteright set to -21.
ERROR: Could not set kerning for s-i (-21).
ERROR: Could not set kerning for s-i (-21).
Kerning for v-quoteright set to 7.
ERROR: Could not set kerning for s-i (7).
ERROR: Could not set kerning for s-i (7).
Kerning for w-quoteright set to 7.
ERROR: Could not set kerning for s-i (7).
ERROR: Could not set kerning for s-i (7).
Kerning for x-quoteright set to 7.
ERROR: Could not set kerning for s-i (7).
ERROR: Could not set kerning for s-i (7).
Kerning for y-quoteright set to 8.
ERROR: Could not set kerning for s-i (8).
ERROR: Could not set kerning for s-i (8).
Kerning for z-quoteright set to 2.
ERROR: Could not set kerning for s-i (2).
ERROR: Could not set kerning for s-i (2).
Kerning for ae-quoteright set to -12.
ERROR: Could not set kerning for s-i (-12).
ERROR: Could not set kerning for s-i (-12).
Kerning for oe-quoteright set to -30.
ERROR: Could not set kerning for s-i (-30).
ERROR: Could not set kerning for s-i (-30).
End
this is only an issue with the string. if a i put a whitespace between the quotation it will just works fine.
I tried it again and the script crashs if there are qoutes in the string:
Kerning for Tbar-Z set to -1.
Kerning for Z-H set to -8.
Kerning for H-quoteleft set to 30.
Traceback (most recent call last):
File “Steal kerning from InDesign.py”, line 142, in
print " ERROR: Could not set kerning for %s-%s (%i).\n" % (leftSide, rightSide)
TypeError: not enough arguments for format string
End