{"id":125,"date":"2002-08-14T12:00:00","date_gmt":"2002-08-14T12:00:00","guid":{"rendered":"http:\/\/editorium.com\/archive\/?p=125"},"modified":"2013-10-25T23:10:20","modified_gmt":"2013-10-25T23:10:20","slug":"sorting-index-entries-letter-by-letter","status":"publish","type":"post","link":"https:\/\/editorium.com\/archive\/sorting-index-entries-letter-by-letter\/","title":{"rendered":"Sorting Index Entries Letter by Letter"},"content":{"rendered":"<p>If you've used Microsoft Word's Index feature, you know that Word alphabetizes index entries word by word, like this:<\/p>\n<p>New Deal<\/p>\n<p>New World<\/p>\n<p>Newborn<\/p>\n<p>News release<\/p>\n<p>Most indexers and publishers, however, prefer to sort index entries letter by letter, like this:<\/p>\n<p>Newborn<\/p>\n<p>New Deal<\/p>\n<p>News release<\/p>\n<p>New World<\/p>\n<p>Is there a way to get Word to sort entries in this way? Yes--with some manual intervention. (If you've never used Word's indexing feature, you might want to read about it in Word Help before continuing.)<\/p>\n<p>A typical Word index entry looks like this--<\/p>\n<p>{XE \"New Deal\"}<\/p>\n<p>--and it will sort in word-by-word order.<\/p>\n<p>However, if you add a semicolon to the entry, followed by a letter-by-letter spelling (in other words, a spelling that omits the space between words), you can make the entry sort letter by letter. (In case you're wondering, this feature isn't documented in Word Help; you have to dig for it on Microsoft's Web site.)<\/p>\n<p>The edited entry should look like this:<\/p>\n<p>{XE \"New Deal;NewDeal\"}<\/p>\n<p>So for our other examples above, the edited entries would look like this:<\/p>\n<p>{XE \"New World;NewWorld\"}<\/p>\n<p>{XE \"Newborn\"}<\/p>\n<p>{XE \"News release;Newsrelease\"}<\/p>\n<p>(\"Newborn\" doesn't need editing, since it's already just one word.)<\/p>\n<p>If we then have Word generate an index using those entries, they'll be sorted letter by letter, like this:<\/p>\n<p>Newborn<\/p>\n<p>New Deal<\/p>\n<p>News release<\/p>\n<p>New World<\/p>\n<p>Neat!<\/p>\n<p>But now I'm wondering: Is there an automated way to edit those index entries?<\/p>\n<p>[Offstage, right: Loud clanks and clunks as your correspondent rifles through his toolbox.]<\/p>\n<p>Hmmm. Here's something that *might* do the job. I'll try it and get back to you in about a week.<\/p>\n<\/p>\n<p>_________________________________________<\/p>\n<p>READERS WRITE<\/p>\n<p>After reading last week's article \"Glorious Color,\" Word expert Steve Hudson wrote:<\/p>\n<p>I *knew* I had an unsettled feeling about your post. It's gelled.<\/p>\n<p>#1: H9 sure - but yellow on white?<\/p>\n<p>#2: <the biggy> Printing on a black and white printer...<\/p>\n<p>After reading Steve's note, I could see where it might be easy to miss what I had in mind, so here's a clarification:<\/p>\n<p> #1: H9 sure - but yellow on white?<\/p>\n<p>DARK yellow, which looks pretty good on screen. Regular yellow, as Steve points out, doesn't work well.<\/p>\n<p> #2: <the biggy> Printing on a black and white printer...<\/p>\n<p>The point is that you use the colors only while editing on-screen. When you're ready to print, you attach the *real* template for the final look--and then print.<\/p>\n<p>Thanks to Steve for helping me clarify things.<\/p>\n<p>After reading our article about making punctuation big and bold, Phil Rabichow wrote:<\/p>\n<p>I enjoyed your technique for making punctuation stand out for those of us, er uh, those whose eyes may not be the sharpest (or to avoid eyestrain). I took your idea and expanded on it. I created a macro that would:<\/p>\n<p>1. Create a character style called Standout that was Times New Roman, 18 points, bold, and red.<\/p>\n<p>2. Handle the error in case the style already existed.<\/p>\n<p>3. Replace all punctuation marks in one fell swoop with the new style.<\/p>\n<p>Because of the error handling in 2. above, you can run the macro, add text with additional punctuation, and run the macro again. Also, instead of doing successive Find\/Replace operations, it uses wildcards and Finds: [.,:;\"'\"\"?!] i.e., all types of punctuation. The backslash in front of the question and exclamation marks finds those characters. The macro also finds all quotes (\") and apostrophes. Although it doesn't show in an email, what appears to be 7 apostrophes are really 1 set of quotes, 1 apostrophe, 1 opening smart quote (Alt+0147) and 1 closing smart quote (Alt+0148). [On a Macintosh, the character numbers would be 210 and 211.] Replace contains: ^& (the operator for Find What Text) and is formatted for the Standout character style.<\/p>\n<p>The macro is:<\/p>\n<pre><span style=\"color: black; font-family: Courier New; font-size: small;\">\nSub BigPunctuation()\n' BigPunctuation Macro\n' Macro recorded 8\/11\/02 by Phil Rabichow\n' Creates Standout style & replaces punctuation\n' of selection with large red bold font\n'\nOn Error Resume Next\nActiveDocument.Styles.Add Name:=\"Standout\", _\nType:=wdStyleTypeCharacter\nActiveDocument.Styles(\"Standout\").BaseStyle = _\n\"Default Paragraph Font\"\nWith ActiveDocument.Styles(\"Standout\").Font\n.Name = \"Times New Roman\"\n.Size = 18\n.Bold = True\n.Color = wdColorRed\nEnd With\nWith ActiveDocument.Styles(\"Standout\").Font\nWith .Shading\n.Texture = wdTextureNone\n.ForegroundPatternColor = wdColorAutomatic\n.BackgroundPatternColor = wdColorAutomatic\nEnd With\n.Borders(1).LineStyle = wdLineStyleNone\n.Borders.Shadow = False\nEnd With\n' Selection.HomeKey Unit:=wdStory\nSelection.Find.ClearFormatting\nSelection.Find.Replacement.ClearFormatting\nWith Selection.Find\n.Text = \"\"\n.Replacement.Text = \"\"\n.Forward = True\n.Wrap = wdFindContinue\n.Format = False\n.MatchCase = False\n.MatchWholeWord = False\n.MatchWildcards = False\n.MatchSoundsLike = False\n.MatchAllWordForms = False\nEnd With\nSelection.Find.ClearFormatting\nSelection.Find.Replacement.ClearFormatting\nSelection.Find.Replacement.Style = _\nActiveDocument.Styles(\"Standout\")\nWith Selection.Find\n.Text = _\n\"[.,:;\"\"\" & ChrW(8220) & ChrW(8221) & \"'?!]\"\n.Replacement.Text = \"^&\"\n.Forward = True\n.Wrap = wdFindStop\n.Format = True\n.MatchCase = False\n.MatchWholeWord = False\n.MatchAllWordForms = False\n.MatchSoundsLike = False\n.MatchWildcards = True\nEnd With\nSelection.Find.Execute Replace:=wdReplaceAll\nEnd Sub\n<\/pre>\n<p><\/span><\/p>\n<p>Note that this macro will apply to a selection in case you only want to change some of the punctuation. If you remove the apostrophe before the line<\/p>\n<p>Selection.HomeKey Unit:=wdStory<\/p>\n<p>the macro will work on the entire document.<\/p>\n<p>Thank you again for your time and a wonderful publication.<\/p>\n<p>Thanks to Steve for the terrific macro! If you don't know how to use macros like this one, you can find out <a href=\"https:\/\/editorium.com\/archive\/using-found-macros\/\" target=\"_blank\">here.<\/a><\/p>\n<p>And you can learn more about improving the visibility of punctuation (including how to get the big, bold punctuation back to normal) here:<\/p>\n<p>http:\/\/www.topica.com\/lists\/editorium\/read\/message.html?mid=1710712423<\/p>\n<\/p>\n<p>_________________________________________<\/p>\n<p>RESOURCES<\/p>\n<p>The American Society of Indexers is \"the only professional organization in the United States devoted solely to the advancement of indexing, abstracting, and database building.\" Their site has lots of links to indexing and publishing resources and, of course, tons of information about indexing:<\/p>\n<p>http:\/\/www.asindexing.org\/site\/index.html<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/editorium.com\/archive\/sorting-index-entries-letter-by-letter\/\" rel=\"bookmark\" title=\"Permalink to Sorting Index Entries Letter by Letter\"><p>If you&#8217;ve used Microsoft Word&#8217;s Index feature, you know that Word alphabetizes index entries word by word, like this: New Deal New World Newborn News release Most indexers and publishers, however, prefer to sort index entries letter by letter, like this: Newborn New Deal News release New World Is there a way to get Word [&hellip;]<\/p>\n<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":{"0":"post-125","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-indexing","7":"h-entry","8":"hentry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3gfno-21","_links":{"self":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":3,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":810,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts\/125\/revisions\/810"}],"wp:attachment":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}