Discussion:
How To Add Glyph to Character Style?
(too old to reply)
C***@adobeforums.com
2008-12-21 17:27:55 UTC
Permalink
Specifically, i want to add the "math x" as a Character Style. The font is Adobe Janson Pro, and the "glyph" (what we used to call a "character") is present. I could add by hand, but i have a lot of them. In the menus that define the character(s) you want to add, i can't find an option that will add a *specific* character-- in this case the math x. Or an accented character, for that matter (ΓΌ?)

Thanks very much.
D***@adobeforums.com
2008-12-21 17:48:14 UTC
Permalink
The "math x" is a glyph. You can't change glyphs with a character style (at least not in this fashion -- some opentype options do change glyphs on the fly).

Dave
R***@adobeforums.com
2008-12-22 15:34:29 UTC
Permalink
I just got CS4 and haven't been messing with it much yet, but would it be possible to write a Nested Style GREP to do this? Let's say: any time a whole-word x is followed by a space and then a digit, the x would be replaced by the math x. This way it should catch 4 x 4 matrix and 3 km x 3 km, but wouldn't get x - y, (x, y), or x-axis.

Rodney
j***@adobeforums.com
2008-12-22 16:01:37 UTC
Permalink
No go. The GREP styles can only apply a character style to its Found text, not change it.
R***@adobeforums.com
2008-12-22 19:08:51 UTC
Permalink
Okay, I see. I tried one more thing -- since the Symbol character for the math x font is option-y (which is the "yen" symbol in most fonts) I tried having the Nested GREP apply a character style including the Symbol font to all option-Y characters -- but Indesign is too clever for that, and shows an empty box (since there's no Yen symbol in the Symbol font).

I give up. Keep the "Glyphs" palette handy, and once you've entered one math x symbol, it will be on the "recently used glyphs" row, and you can enter them by double-clicking. Or, you can search for space-x-space and replace with space-math x-space where needed.

Rodney
j***@adobeforums.com
2008-12-22 20:42:16 UTC
Permalink
Well, fortunately, when using the latter option GREP Search & Replace comes in handy. No need to rely on single exes. Search for

(?<=\d) ?x ?(?=\d)




and replace with a single multiply (with or without spaces or thin spaces -- ~< -- left and right).
Loading...