🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
2 messages
2 total messages Started by subhaoviya Sat, 10 Jan 2009 13:33
how to find the glyphs character using js in indesign cs2?
#2173
Author: subhaoviya
Date: Sat, 10 Jan 2009 13:33
5 lines
846 bytes
want to find whether the glyphs character(registered trademark symbol)is applied with character style superscript or not, i cant able to fix the glyphs character in the find preference, how to do it?

thanks

subha
Re: how to find the glyphs character using js in indesign cs2?
#2178
Author: jongware
Date: Sat, 10 Jan 2009 16:58
14 lines
2460 bytes
You are mixing two concepts. There is a major difference between a glyph and a character.

A glyph is any singular graphic in a font.
A character is an instance of a character set (in InDesign, and in Mac OS X, it's the Unicode set; older programs use 'code pages' to translate codes into characters).

Why are they different? Well, a ligature ('ffi', for example) is not a single character, containing the characters 'f', 'f', and 'i'. It is a single glyph in most fonts, but (usually!) you cannot insert an 'ffi' directly. Programs that do allow insertion of glyphs (again, such as InDesign) are also smart enough to decompose it into single characters 'f', 'f', and 'i' again.

Why is this distinction important? In CS2, you can search for characters but not for glyphs (in CS3 and higher you can, but you cannot specify "+superscript").

All aside, you can insert a trademark character directly into InDesign by calling up the Glyphs :-) panel and double-click the glyph. (It works because the 'TM' is also a valid Unicode character.) Then just cut it, and paste into the 'Find' field of the Find Text box. Alternatively, since you can see the Unicode value in the Glyphs panel, you can enter the Unicode directly into the search field, surrounded by less-greater than: < 2122 > (without the spaces). This works for all Unicode characters.

Even better is that the character is also in the Find drop down menu -- "Registered Trademark Symbol". This inserts the shortcut "^r" in the Find box -- but it only works for a selected set of characters.

Since this is the Scripting forum, I'm guessing you want to use this in a script. Well, both "< 2212 >", and "^r" can be used in the search string to specify the character. Do the search and examine for each found item if it has a position Superscript or not.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads