Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Change text color except hyperlinks

Community Beginner ,
Sep 05, 2022 Sep 05, 2022

I regularly get a Word document that needs to go into InDesign. The problem is that the "black" text is various shades of black and I need it all to be R0 G0 B0 but I don't want the blue color (R0 G0 B255) of the hyperlinks to be changed. Can anyone think of a script that could accomplish this?

TOPICS
Scripting
416
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 08, 2022 Sep 08, 2022

You can simply select all text, in Word or InDesign, and click the Black color swatch. That will reset or override all styles to black.

 

If you want to avoid spot overrides, make sure all styles are already set to Black. (Ideally, all the Word styles in use should be so configured, as well as the InDesign styles; you may have to clean this up at the Word stage on any received document.)

 

There are also methods to force-reapply styles throughout a document and remove any existing overrides to v

...
Translate
Community Expert ,
Sep 08, 2022 Sep 08, 2022

Hi ,

 

Couple of questions.

1. does the text get any styles attached to it?

2. Are the links are underlined? is anything else underlined?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 08, 2022 Sep 08, 2022

You can simply select all text, in Word or InDesign, and click the Black color swatch. That will reset or override all styles to black.

 

If you want to avoid spot overrides, make sure all styles are already set to Black. (Ideally, all the Word styles in use should be so configured, as well as the InDesign styles; you may have to clean this up at the Word stage on any received document.)

 

There are also methods to force-reapply styles throughout a document and remove any existing overrides to varying colors (even "other blacks.")

 

The blue of hyperlinks, in Word at least, is a live override, not a truly applied color. You can preserve the hyperlinks as a character style in ID and do pretty much anything you want with them in styling.

 

—

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 10, 2022 Sep 10, 2022

Use the Find Color tool to find all the hyperlinks and apply a character style to them. Then apply a paragraph style with the correct black to all text. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2022 Sep 11, 2022

If these colours have been added to your Colour List, simply select all the "extra" Word ones and delete them. e.g. select the weird "black" ones that you want to be consistent Black and delete that/those swatches. You will be asked to replace with another colour from your list, so, in your case, replace it with InDesign's "Black". You can also do the same for any weird RGB colours... like replace 100R0G0B with Red, etc. or whatever colours you want.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 11, 2022 Sep 11, 2022
LATEST

This, in general, on all Word imports. Word loves to create new color swatches at every turn, and taking a moment to delete all those not used and convert the rest to more standard(ized) swatches is good practice on any but the hastiest projects.

 

I find it useful to do this after doing most document cleanup, as that eliminates the use of many of these spot/ad-hoc colors and allows them to be simply deleted.

 

(I once had a 700-page book file that had been worked on for years. It had both hundreds of on-the-fly text styles and hundreds of spot color swatches...)

 

—

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines