Problem with mekkablue'script : Steal kerning from InDesign

It’s been a couple of years since this original post, but I’m having the same problem now (in version 3.0.3) with the quotation marks.

I get errors for quotedblleft, quotedblright, quoteleft, quoteright, quotedbl, and quotesingle. I think those are the only ones although I just realize I may not have checked the guillemots yet.

Is there a fix for this?

What errors? Can you paste the error messages from Macro Window here?

Sure. They’re basically the same as above. Here is an example:

Kerning for y:quoteright set to -32.
  ERROR: Could not set kerning for s:i.

could not convert string to float: 'gle right quote  0'
Traceback (most recent call last):
  File "Steal kerning from InDesign.py", line 188
    kernValue = float(thisline[3:])
ValueError: could not convert string to float: 'gle right quote  0'

Can you paste the text you had in InDesign?

Sure, that error is from a little section of the InDesign file that had the following:

x’ y’ z’

and it had errors for each paring with the right single quote.

You can ignore these for now. The x’ and y’ and z’ do get set. Just the quoteright followed by a space is not parsed properly at the moment. Will look into this. For the rest, it works as expected.

OK thank you

Fixed it. It is a weird issue in InDesign that I need to circumvent with a little hack in the script.