{"id":104,"date":"2002-03-13T12:00:00","date_gmt":"2002-03-13T12:00:00","guid":{"rendered":"http:\/\/editorium.com\/archive\/?p=104"},"modified":"2013-10-25T23:10:20","modified_gmt":"2013-10-25T23:10:20","slug":"removing-directly-applied-formatting","status":"publish","type":"post","link":"https:\/\/editorium.com\/archive\/removing-directly-applied-formatting\/","title":{"rendered":"Removing Directly Applied Formatting"},"content":{"rendered":"<p>Last week I discussed the evils of directly applied formatting but didn't explain how to get rid of it. I know what you're going to say: \"Just press CTRL + A to select all and then press CTRL + SPACE.\" That will remove it, all right. The problem is, it will also remove italics, bold, and other formatting that you want to *keep.*<\/p>\n<p>For example, let's say you're editing a scholarly tome with acres and acres of footnotes. Nearly every one of those notes is going to cite a book or journal of some kind--with the title of each publication in italics (represented here with asterisks), like this:<\/p>\n<p>39. G. B. Harrison, *The Profession of English* (New York: Anchor Books, 1967), p. 166.<\/p>\n<p>But if you do the CTRL + SPACE thing, you're going to get this:<\/p>\n<p>39. G. B. Harrison, The Profession of English (New York: Anchor Books, 1967), p. 166.<\/p>\n<p>So what are you going to do? Go back and italicize everything by hand?<\/p>\n<p>There *is* a better way. In general terms, here's the procedure:<\/p>\n<p>1. Identify each kind of directly applied formatting you want to keep--italics, strikethrough, whatever. Maybe make a list.<\/p>\n<p>2. Find and replace each kind of formatting with a unique code. For example, you might use |I| to indicate italic and |B| to indicate bold. (More on this in a minute.)<\/p>\n<p>3. Press CTRL + A to select all and CTRL + SPACE to remove all directly applied formatting.<\/p>\n<p>4. Find and replace your codes with the appropriate formatting.<\/p>\n<p>Now let's get specific and say you're trying to preserve italics. Here's what you'd do:<\/p>\n<p>1. Click Edit > Replace to open Word's Find and Replace dialog.<\/p>\n<p>2. Leave the \"Find What\" box empty but press CTRL + I to specify italic formatting. The box will now say \"Font: Italic\" underneath.<\/p>\n<p>3. In the \"Replace With\" box, enter this:<\/p>\n<p>|I|^&|I|<\/p>\n<p>That code in the middle, ^&, is the \"Find What Text\" wildcard, which tells Word to use whatever it *finds* (in this case, any italicized text) as the *replacement* between your italic codes. You can learn more about the \"Find What Text\" wildcard here:<\/p>\n<p>http:\/\/www.topica.com\/lists\/editorium\/read\/message.html?mid=1703525514<\/p>\n<p>4. Click the \"Replace All\" button. All of your italicized text will now be marked with codes, like this:<\/p>\n<p>39. G. B. Harrison, |I|The Profession of English|I| (New York: Anchor Books, 1967), p. 166.<\/p>\n<p>(If you wanted to preserve other kinds of formatting, such as bold, you'd repeat steps 1 through 4 here, with different codes for each kind of formatting.)<\/p>\n<p>5. Press CTRL + A to select all and CTRL + SPACE to remove directly applied formatting. Woo-hoo! Pretty scary, no? (You did keep a backup, right?)<\/p>\n<p>6. Click Edit > Replace to open Word's Find and Replace dialog.<\/p>\n<p>7. In the \"Find What\" box, enter the formatting codes and the * wildcard (in parentheses) to represent any text between the codes, like this:<\/p>\n<p>|I|(*)|I|<\/p>\n<p>8. Click the \"No Formatting\" button. The \"Font: Italic\" notation will go away.<\/p>\n<p>9. In the \"Replace With\" box, enter this:<\/p>\n<p>1<\/p>\n<p>That code tells Word to use any text it *finds* between italic codes as the *replacement* for the codes and the text between them. Clear as mud? You'll understand when you try it. You can learn more about the \"Find What Expression\" wildcard here:<\/p>\n<p>http:\/\/www.topica.com\/lists\/editorium\/read\/message.html?mid=1706365638<\/p>\n<p>10. With your cursor still in the \"Replace With\" box, press CTRL + I to specify italic formatting. The box will now say \"Font: Italic\" underneath.<\/p>\n<p>11. Put a checkmark in the \"Use wildcards\" (or \"Use pattern matching\") box. You may need to click the \"More\" button before this is available.<\/p>\n<p>12. Click the \"Replace All\" button. All of your italicized text will be restored to its former glory--and all of the directly applied formatting that you *didn't* want (such as 12-point Baskerville) will be gone!<\/p>\n<p>If you need to do this kind of thing a lot, you can record the procedure in a macro that you can use over and over again. You can learn more about recording macros here:<\/p>\n<p>http:\/\/www.topica.com\/lists\/editorium\/read\/message.html?mid=1706651129<\/p>\n<p>http:\/\/www.topica.com\/lists\/editorium\/read\/message.html?mid=1706748016<\/p>\n<p>http:\/\/www.topica.com\/lists\/editorium\/read\/message.html?mid=1706832239<\/p>\n<p>Or, if you'd like a macro that will clean up directly applied formatting (but preserve character formatting such as italic) in a whole folder full of documents at the same time, you might try our FileCleaner program, which you can learn more about here:<\/p>\n<p>http:\/\/www.editorium.com\/14845.htm<\/p>\n<\/p>\n<p>_________________________________________<\/p>\n<p>READERS WRITE<\/p>\n<p>Last week Rich Shattenberg asked if it's possible to use wildcards in a custom spell-check dictionary. You can read his question here:<\/p>\n<p>http:\/\/www.topica.com\/lists\/editorium\/read\/message.html?mid=1709799142<\/p>\n<p>This week, expert Word-whacker Steve Hudson sent the definitive reply:<\/p>\n<p>\"No wildcards in dic entries. Badda badda boom.\"<\/p>\n<p>Many thanks to Steve. It wasn't really the answer we wanted, but it's always good to know the facts.<\/p>\n<\/p>\n<p>_________________________________________<\/p>\n<p>RESOURCES<\/p>\n<p>The Office Letter<\/p>\n<p>The Office Letter is a weekly email newsletter that provides a plethora of tips, tricks, tools, and techniques for using Microsoft Office. It's a *nice* publication, as you can see here:<\/p>\n<p>http:\/\/www.officeletter.com\/current.html<\/p>\n<p>And hey, the current edition includes our NameSwapper macro!<\/p>\n<p>The standard edition of The Office Letter is free. The premium edition includes access to all back issues, a fast search engine, and no advertising, all for just $12 a year. You can sign up for either edition here:<\/p>\n<p>http:\/\/www.officeletter.com\/sub\/subscribe.html<\/p>\n<p>Why not check it out?<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/editorium.com\/archive\/removing-directly-applied-formatting\/\" rel=\"bookmark\" title=\"Permalink to Removing Directly Applied Formatting\"><p>Last week I discussed the evils of directly applied formatting but didn&#8217;t explain how to get rid of it. I know what you&#8217;re going to say: &#8220;Just press CTRL + A to select all and then press CTRL + SPACE.&#8221; That will remove it, all right. The problem is, it will also remove italics, bold, [&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":[3],"tags":[],"class_list":{"0":"post-104","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-editing","7":"h-entry","8":"hentry"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3gfno-1G","_links":{"self":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts\/104","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=104"}],"version-history":[{"count":2,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":654,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/posts\/104\/revisions\/654"}],"wp:attachment":[{"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/editorium.com\/archive\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}