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
Modifying glyph names
-
- Moderator
- Posts: 11157
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Modifying glyph names
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.
Re: Modifying glyph names
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.
So I would prefer my original request stand. Thank you.
-
- Moderator
- Posts: 11157
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Modifying glyph names
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:I am uncertain how a single f/r for glyph names will aid anyone much less myself.
Point takenMikeW wrote:So I would prefer my original request stand. Thank you.
-
- Posts: 46
- Joined: Tue Nov 24, 2009 5:08 pm
- Contact:
Re: Modifying glyph names
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.MikeW wrote:What I would now like to request is being able to paste glyph names into selected glyphs.
-
- Top Typographer
- Posts: 977
- Joined: Tue Jun 16, 2015 8:12 pm
- Location: Sheffield, South Yorkshire
- Contact:
Re: Modifying glyph names
Regular Expressions are very powerful at pattern matching.
This should be well up to any ways you want to modify glyph names.
This should be well up to any ways you want to modify glyph names.
Re: Modifying 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.PJMiller wrote:Regular Expressions are very powerful at pattern matching.
This should be well up to any ways you want to modify glyph names.
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.
-
- Moderator
- Posts: 11157
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: Modifying glyph names
We'll probably add both options.
Re: Modifying glyph names
Excellent. Thanks, Erwin.
Mike
Mike