Find and replace multiple glyphs

In the edit menu there is a function “find and replace” which works perfectly if you want to change endings of glyph name but is there somehow the option to find for example: a, b, c, d, e and rename this characters to: uniF400, uniF401, uniF402, uniF403, uniF404 ? So that the unicode position is also changed.

is that somehow possible with “find and replace” or there is a need of new script?

Thanks :heart:

You can use regex if you like, but I do not now what you want to do. Rename uniF400 to… what?

so, there are many ASCII fonts in Georgia, they have “ა” on the latin “a” and so one…
If I want to make it as a normal font I need to copy and replace all characters those glyphs one by one.
With find and rename would be it easier. For example: a, b, c, d, > ა, ბ, ც, დ, or like this: a, b, c, d, > 10D0, 10D1, 10D2, 10D3,
there are some Fonts also, that have some Georgian letters in private area, for example: F400, F401, F402, F403, and if it would be possible to rename those multiple glyphs and change the unicode positions at the same time — would be really great :slight_smile:

Better first change the Unicode and then update glyph info.

But the unicode change one by one?

I have a script that can apply a range of Unicode values to a selection, but that only makes sense if the glyphs are actually already in the right order, and I doubt that is the case. How would you want to automate the changing of codes when there is no system to the order of glyphs?

If you need to apply that often, you can write a list of replacements and apply that with a script.

there is standard to the order of glyphs, I mean “ა” is always on the position of “a”
ბ↪b, ც↪c, დ↪d and so one.

Yes, I think it is the only solution. The script that changes the unicode: 0061 to 10D0, 0062 to 10D1, 0063 to 10EA, 0064 to 10D3, and so one.

Use this script as basis:

And adapt it to your needs, I suggest renaming to uniXXXX names and afterwards updating glyph infos.

Explanation is in the code.

1 Like

:heart:️ Thank you

in glyphs mini - my find and replace is greyed out… what am i doing wrong?

In Glyphs Mini:

  1. Select some glyphs in the Font tab
  2. Edit > Find > Search and Replace

sollte gehen aber tuts leider nicht…

Hast du Glyphen ausgewählt?
Welche Version von Mini verwendest du?

ja habe welche ausgewählt… Version 1.5.7 (49)

ich mach jetzt mal einen upgrade auf mini 2.0

I have a script that can apply a range of Unicode values to a selection, but that only makes sense if the glyphs are actually already in the right order

After having used https://github.com/adobe-type-tools/box-drawing, this sounds precisely like what I am looking for. Could you point me in the right direction?
(It’s not the script mentioned above, I take it?)

Edit: sorry, it really wasn’t that hard to find: https://github.com/mekkablue/Glyphs-Scripts/blob/master/Glyph%20Names%2C%20Notes%20and%20Unicode/Add%20PUA%20Unicode%20Values%20to%20Selected%20Glyphs.py

Thanks :slight_smile: