Modifying glyph names

We will move topics to this forum, once we've implemented the requested feature(s) and/or enhancement(s).
Post Reply
MikeW
Posts: 404
Joined: Mon May 20, 2013 2:51 pm

Modifying glyph names

Post by MikeW » Tue Jan 31, 2017 9:50 pm

I make use of being able to copy glyph names for manipulation every single day, multiple times per day. I have some macros and spreadsheets where most of my OT Feature stuff is written, then copied into the text editor to swap out tabs for spaces, ready to be pasted into the feature. Works great and is fast if more than a few glyphs are involved.

What I would now like to request is being able to paste glyph names into selected glyphs.

I have a current font with between 6 and 13 variations for every single main glyph. So a thousand or so variations to rename. It takes a bit to use the glyph properties dialog box, highlight something as meaningful as glyph678, type a.1 or whatever, press enter, use the mouse to select the next glyph and rinse & repeat for what seems like forever.

As the Copy/paste of glyph names uses a paragraph return for each name, perhaps Erwin could see the text on the clipboard and with a paste, each name could be changed, one glyph per paragraph?

Or, even if a script needed to be used.

I do use a script to both create empty glyphs and name them. But it only works when I am in control of the project from the beginning. I have, in the past, used my script to create more glyphs at the end of the current glyphs, then copy and paste the outlines/metrics into them, then delete the original glyphs. But that is more prone to error (as I found out, it's easy to get lost) and the proposed method would be cleaner/more simple to my thinking.

Mike

Erwin Denissen
Moderator
Moderator
Posts: 6645
Joined: Fri Oct 04, 2002 12:41 am
Location: De Bilt, The Netherlands
Contact:

Re: Modifying glyph names

Post by Erwin Denissen » Tue Mar 07, 2017 8:28 am

We intend to add a search and replace for glyph names with support for regular expressions. This is not exactly what you request, but it might help.
Erwin Denissen
High-Logic
Proven Font Technology

MikeW
Posts: 404
Joined: Mon May 20, 2013 2:51 pm

Re: Modifying glyph names

Post by MikeW » Tue Mar 07, 2017 2:51 pm

I am uncertain how a single f/r for glyph names will aid anyone much less myself.

So I would prefer my original request stand. Thank you.

Erwin Denissen
Moderator
Moderator
Posts: 6645
Joined: Fri Oct 04, 2002 12:41 am
Location: De Bilt, The Netherlands
Contact:

Re: Modifying glyph names

Post by Erwin Denissen » Tue Mar 07, 2017 3:12 pm

MikeW wrote:I am uncertain how a single f/r for glyph names will aid anyone much less myself.
With regular expressions it allows you to quickly change part of a name into something else. We should provide some examples to get novice people started, but I'm sure some people will benefit from it.
MikeW wrote:So I would prefer my original request stand. Thank you.
Point taken :wink:
Erwin Denissen
High-Logic
Proven Font Technology

BabelStone
Posts: 28
Joined: Tue Nov 24, 2009 5:08 pm
Contact:

Re: Modifying glyph names

Post by BabelStone » Tue Apr 04, 2017 2:15 pm

MikeW wrote:What I would now like to request is being able to paste glyph names into selected glyphs.
I would also very much welcome some way to batch change glyph names. For me the most useful feature would be to open glyph names in a simple text editor (similar to how the OpenType features can be edited as a text file), and/or ability to import/export glyph names as a text file.

PJMiller
Top Typographer
Top Typographer
Posts: 503
Joined: Tue Jun 16, 2015 8:12 pm
Location: Sheffield, South Yorkshire
Contact:

Re: Modifying glyph names

Post by PJMiller » Tue Apr 04, 2017 5:41 pm

Regular Expressions are very powerful at pattern matching.

This should be well up to any ways you want to modify glyph names.

MikeW
Posts: 404
Joined: Mon May 20, 2013 2:51 pm

Re: Modifying glyph names

Post by MikeW » Thu Apr 06, 2017 2:25 pm

PJMiller wrote:Regular Expressions are very powerful at pattern matching.

This should be well up to any ways you want to modify glyph names.
As mentioned in the opening post, we can copy glyph names and paste into a text file. They end up one line per name.

Which would be easier, writing a regex and hopefully catching the pattern, if not catching all the correct glyphs and or catching to broadly, closing the project without saving, reloading the project (because there is no Revert to Saved in the file menu), tweaking the regex, applying it, again reviewing it...

Or, simply copying the modified names from a tweaked text file and pasting the result back to FC?

I'm pretty good with regex--I use it in ID and my programming editor. But I think I know which of the two scenarios above are faster.

Erwin Denissen
Moderator
Moderator
Posts: 6645
Joined: Fri Oct 04, 2002 12:41 am
Location: De Bilt, The Netherlands
Contact:

Re: Modifying glyph names

Post by Erwin Denissen » Thu Apr 13, 2017 5:27 pm

We'll probably add both options.
Erwin Denissen
High-Logic
Proven Font Technology

MikeW
Posts: 404
Joined: Mon May 20, 2013 2:51 pm

Re: Modifying glyph names

Post by MikeW » Mon Apr 24, 2017 1:30 am

Excellent. Thanks, Erwin.

Mike

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests