Join David Blatner for an in-depth discussion in this video 308 Easily insert glyphs with free script, part of InDesign Secrets.
- [Instructor] You probably already know that you can insert any character from inside a font by opening the Glyphs panel. To do that, you go to the Type menu and choose Glyphs. Now, you find the character that you want inside the Glyphs panel and simply double-click on it. But this panel can get really tiresome if you have to use it a lot. For example, what if you need to type the euro symbol 50 times a day? Or some special bullet character? Sure, once you insert it once, InDesign does put it up here in the Recently Used list.
So, that helps a little bit, but even easier would be a way to type the character with your hands on the keyboard, even if the Glyphs panel is closed. And it turns out you can do that by downloading one of a couple of free scripts. To find those scripts, go to this URL, indesignsecrets.com/free, then just scroll down this list until you see the scripts Unicode Injector and Insert GID character.
Now, we've already talked about downloading and installing scripts in an earlier InDesign Secrets movie, so I'm not going to show that now, but in this case I downloaded Insert GID character, and you can see it inside InDesign's Scripts panel. So I'll switch back to InDesign, I'll go to the Window menu, choose Utilities, and then choose Scripts. Now, inside the Scripts panel I'll open the User folder and you'll see, this is the script I downloaded. It has sort of a strange name, 1254 floralheart and so on.
Let's move these panels around so I can see them both at the same time. Now I want to insert a character inside this text frame, so I'm going to click where I want it to be inserted, and next I'm going to go up to the control panel and choose the character mode, so I can see what font I'm currently getting. You'll see that it's currently set to Minion Pro, and that's important because see here inside the Scripts panel, part of the name of this says Minion Pro. This script is setup to insert a particular character from inside the Minion Pro font.
Okay, I'll double-click the script and that runs it, and you'll see all it does is insert a character. This floral heart character. So that's great, but why did I get that particular character? Well this is the character with the glyph ID number, or GID number, of 1254 inside Minion Pro. And I know that because, here let me go ahead and select this character and inside the Glyphs panel you'll see it also becomes selected, and if I hover my cursor on top of it, you'll see a tool tip and inside the tool tip it says GID number 1254.
You see, every character in a font has a GID number. Like this one over here is number 1270. So, what if I want that character instead of this floral heart? Well here's the magic thing about this script. You don't have to edit the script or anything technical like that. You just have to edit the name of the script. To do that I'm going to come back to the Scripts panel, and I'll right-click on this script, and I get this little context menu. And here I'll choose Reveal in Finder.
On Windows it would say Reveal in Explorer. So there it is. There's the script I downloaded and installed inside the Scripts Panel folder. So I'm going to duplicate this script by copying it. I'll just do a Command + C on the Mac or Control + C on Windows, and then Command + V or Control + V, and that duplicates the script inside this folder. Now, I'm going to right-click on this script and choose Rename. And the first thing I'll do is remove this word, copy, at the end. I don't need that.
Next, and this is the important part, I'm going to change the number at the beginning from 1254 to 1270. That was the GID number of the other character I liked, right? Next, I'll change the name of this character here from floral heart to something different. It actually doesn't matter what you type here. The only part that matters is that number at the beginning of the name. That's the GID number. All the other stuff is just to remind you what character you're going to get, and what font you should be set to.
All right, let's try it. I'll switch back to InDesign and I'll see my new script right here in the Scripts panel. Next, I'll click out here in the text frame and I'll press Return to go to the next line. And now to insert that special character, all I need to do is double-click on my new script. Now remember, this GID script only works with a specific font. In this case, the current position of the text cursor has to be set to Minion Pro when you run this script, or else you're going to get some unexpected glyph.
Now that other script I mentioned, the Unicode Injector, that one works with special characters that show up in more than one font, because it's based on the Unicode number instead of the GID number. It can even insert more than one character at a time, so that's pretty cool. Okay, let me show you one more example. Let's say I'm working on a document and the font is something else, like I'll delete all of this and I'm going to change the font to Adobe Garamond. I'm going to choose adobe Garamond Pro Regular, and let's say this is a math textbook, so I'm going to be typing a lot of equations, like six times nine.
But I don't want this dorky X character. That's the letter X, I want a real multiplication symbol. So I'm going to get a script to type the character for me, and then I'm going to show you how to set a keyboard shortcut for that script so I can run it even faster. Now first I need to find the character I want, so I'm going to choose that X, come over to the Glyphs panel, and change the Show popup menu from Entire Font to just Math Symbols. Here we go, there's the X I want, the real multiplication sign.
So I'm going to hover my cursor over it and I can see that this character has GID number 168. Now remember, this is the GID for this character in this particular font. So now let's make a script to work with that character. I'll switch back out here to Mac Finder or Windows Explorer, and once again I'll duplicate the script. Now I need to rename it. I'm going to remove the word copy. I'm going to change the font to something else.
In this case it's Garamond Pro. And now I'm going to change the number to the number I was looking for. GID number 168. Let's go ahead and change the name of this to multiply. Now let's go ahead and test it. So I'll switch back to InDesign and you can see my new script is there. All I need to do to test it is remove that X and then come over here and double-click on the script. There we go, there's the correct character for this font.
Now obviously you wouldn't want to have to double-click the script each time you want the character, right? No, we need to assign a keyboard shortcut to this character. So to do that, I'll go to the Edit menu and choose Keyboard Shortcuts, way down here at the bottom. Next, I want to make sure that I'm using my own custom set here. I'm going to choose David's Set. If you don't have your own set made already, you can create one by clicking the New Set button over here. Then, from the Product Area popup menu, choose Scripts.
You need to find the script that you created, and it's probably going to be down at the bottom of the list inside the User area. There it is. User 168_multiply. Now I'll come down here and choose a shortcut for this. I'm going to choose Control + Option + X, but you can choose any keyboard shortcut you want. I suggest setting the Context menu to Text. That way the shortcut is only triggered when the text cursor is active in a story. Finally, I'll click Assign, and then OK.
Now whenever you press that shortcut, the glyph will be inserted. Let's try it. On the next line here, I'll type eight, then a space, and then I'll press my keyboard shortcut and you can see it inserted that character, and then I'll press nine. So there you go. Now obviously, you wouldn't go through all this trouble if you just had to insert this character a few times. But if you need these kinds of special characters dozens or hundreds of times a day, well wow, this script is a huge lifesaver.
Updated
12/23/2020Released
8/25/2011New techniques will be added to the collection every other week, so check back early and often. Find more tips and tricks at indesignsecrets.com.Note: Because this is an ongoing series, viewers will not receive a certificate of completion.
Skill Level Intermediate
Duration
Views
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Related Courses
-
InDesign: Interactive PDFs
with David Blatner2h 27m Intermediate -
InDesign CC to EPUB
with Anne-Marie Concepción4h 35m Intermediate -
InDesign CC 2019 Essential Training
with David Blatner5h 23m Beginner -
InDesign Quick Start
with David Blatner22m Beginner
-
This Week's Secret
-
Introduction
-
Welcome to InDesign Secrets1m 10s
-
-
December 2020
-
November 2020
-
October 2020
-
September 2020
-
Use one frame, not many4m 37s
-
August 2020
-
July 2020
-
June 2020
-
May 2020
-
Threading filled frames3m 14s
-
Custom page numbering tricks5m 13s
-
November 2012
-
October 2012
-
061 Embedding images7m 44s
-
-
September 2012
-
057 Text wrapping6m 54s
-
-
August 2012
-
July 2012
-
June 2012
-
May 2012
-
April 2012
-
March 2012
-
January 2012
-
April 2020
-
Making speech bubbles3m 32s
-
Working with ligatures5m 9s
-
February 2012
-
December 2011
-
016 Running a script9m 33s
-
November 2011
-
October 2011
-
August 2011
-
September 2011
-
March 2020
-
February 2020
-
Auto-expand acronyms4m 39s
-
-
January 2020
-
December 2019
-
November 2019
-
October 2019
-
409 Copy and paste effects4m 39s
-
-
September 2019
-
408 The master page trick1m 46s
-
August 2019
-
July 2019
-
June 2019
-
May 2019
-
April 2019
-
March 2019
-
February 2019
-
376 Make cast shadows3m 35s
-
-
January 2019
-
November 2018
-
December 2018
-
369 Shared CC Libraries tips5m 15s
-
October 2018
-
360 Find spacing problems4m 50s
-
363 Export all text8m 16s
-
-
August 2018
-
351 Change default fonts5m 51s
-
352 Best default RGB4m 45s
-
-
September 2018
-
July 2018
-
May 2018
-
343 Border spacing fix4m 59s
-
June 2018
-
346 Export to HTML55m 38s
-
April 2018
-
February 2018
-
March 2018
-
January 2018
-
325 Link text frames6m 10s
-
December 2017
-
November 2017
-
September 2017
-
October 2017
-
313 Quick Apply preferences6m 35s
-
August 2017
-
July 2017
-
May 2017
-
290 Work with scripts3m 35s
-
June 2017
-
April 2017
-
286 How to format ellipses5m 39s
-
March 2017
-
281 Share a CC library7m 10s
-
January 2017
-
February 2017
-
December 2016
-
271 Add images to an index4m 39s
-
November 2016
-
September 2016
-
October 2016
-
260 Batch process images7m 33s
-
263 Sync master pages5m 51s
-
-
August 2016
-
July 2016
-
June 2016
-
April 2016
-
May 2016
-
240 Side-by-side tables5m 35s
-
March 2016
-
February 2016
-
228 Setting text at an angle6m 24s
-
December 2015
-
January 2016
-
222 Adding paragraph shading1m 50s
-
October 2015
-
November 2015
-
September 2015
-
July 2015
-
August 2015
-
204 Creating a8m 14s
-
205 Managing scripts5m 38s
-
May 2015
-
189 Placing InDesign files5m 14s
-
-
June 2015
-
193 Printing tracked changes5m 41s
-
-
April 2015
-
186 Making long shadows5m 41s
-
February 2015
-
March 2015
-
January 2015
-
December 2014
-
November 2014
-
October 2014
-
September 2014
-
August 2014
-
July 2014
-
148 Cropping with paste into5m 18s
-
-
June 2014
-
May 2014
-
141 Inserting glyphs6m 42s
-
April 2014
-
March 2014
-
February 2014
-
January 2014
-
December 2013
-
November 2013
-
October 2013
-
September 2013
-
August 2013
-
105 Working with MiniBridge5m 45s
-
106 Customize your QR codes6m 17s
-
July 2013
-
June 2013
-
May 2013
-
April 2013
-
March 2013
-
February 2013
-
December 2012
-
069 Ten uses of the Story Editor11m 39s
-
-
January 2013
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: 308 Easily insert glyphs with free script