> After changing the ID version number (5.5) in the script and the character style name to one I created (“missingglyphs”) I tried running it on text that had been formatted as Garamond Premier Pro to pick up its support of Cyrillic glyphs.
>
> I changed one word to Univers 45 Light and got pink highlighting and blank glyphs (i.e., not a square with an x in it, just blank). Running the script just shows a null field (--> {}) in the replies section of the event log (AS Editor 2.3), and no characters get the character style applied to them.
Univers seems like an odd duck for this script, but i found a
solution; first how i found it:
i pasted some sample Cyrillic text into a doc
На берегу пустынных волн
Стоял он, дум великих полн,
И вдаль глядел. Пред ним широко
Река неслася; бедный чёлн
По ней стремился одиноко.
then i applied Univers 45 to some of it and observed the same "blank
pink glyphs" you described
while probing further i found a clue, and i believe this technique may
have broader application:
i copied a character represented one of these glyphs, went into
Find/Change > Glyph, set the Font prefs to Univers 45 and the ID
pop-up to Unicode; then pasted; the Cyrillic glyph displayed, but when
i changed the pop-up to GID/CID, the glyph was replaced by the number
229
the GID is an index into the font's tables, and may vary according to
the character set the font uses use; when i opened InDesign's Glyph
window for Univers 45 and used the flyout menu to sort by CID/GID
(yes, the acronyms are reversed in this flyout versus the Find/Change
pop-up); scrolling to the end it was immediately evident that the
highest GID for Univers is 228
(aside, if you try this in Suitcase Fusion's View Glyphs window,
you'll see an off-by-one error — Suitcase thinks there's a glyph 229
because it starts counting glyphs at one instead of zero)
the upshot is that the pink blanks representing missing glyphs are
represented by GID 229 and we can use that in the script; if you've
got the script set up already, just replace 0 with 229 and give it a
try
(i tried several other fonts and found only one other that works like
Univers in this respect; for Carta Medium the magic number was 189;
from scant evidence, these unusual missing glyphs seem to use the
highest GID in the font plus one)