Skip to main content
James Gifford—NitroPress
Brainiac
May 7, 2024
Answered

Toggle Text Highlighting?

  • May 7, 2024
  • 3 replies
  • 2002 views

So I have a peculiar technical need, and I can't figure out an elegant solution. I feel as if I'm overlooking some simple, integral ID function.

 

I use a layout method in which Body, BodyA, BodyB and BodyC are identical clones in the InDesign layout, and for print (PDF) export. However, these styles are processed differently for EPUB export, mostly with spacing variations. It's essential that I use each variant in the right place/s, and be able to know at a glance what styles are applied.

 

The only method for managing this I've come up with is to define three color swatches (HiliteA, HiliteB, HiliteC) and assign them as an outline stroke to the three variant styles. When each is defined (with a faint tint of red, blue, green etc.), the related paragraphs have that halo color. Easy-peasy to visually track and validate my layout. At print time, I set each swatch to None or Paper/White, so the halo/outline disappears for print/PDF export.

 

It is fairly tedious to do both swaps, the more so to set a precise tint on each that's distinctive but doesn't overwhelm the layout.

 

What I am seeking is some way to toggle this highlighting, with some single and preferably integral ID feature — something vaguely like having the type on one layer and the highlight (which could be anything, including shading) on another, so switching that layer on and off would show/hide the highlighting. (No, that doesn't work, as far as I know.)

 

Yes, yes, a script could toggle the values of those three color swatches, but that (starting with all the linked swatches) seems clumsy, I'm not really a script guy and, as I said, I feel like I'm missing some obvious technical solution here.

 

Thoughts?

This topic has been closed for replies.
Correct answer Robert at ID-Tasker

Same issue with keeping all styles in sync and intact, I would think. If the book is COLORS-ON, COLORS-OFF and MASTER PARENT, syncing styles from the first two would overwrite any changes in the primary, much the same as just loading the styles as an isolated step. Perhaps a more "organic" approach, but same two limitations. Unless I'm missing something.

 

It's really a trivial need — I just took a whole 42 seconds to null out the highlight swatches to white when I was done editing. It's just annoying to have to reverse the process and set fairly precise tint shades for those swatches (each color has an optimal percentage for a balanced, non-distracting look while editing).

 

And I can't think of a good use for this switch except in my very narrow workflow of editing certain dual-format books.

 

I would have just gone with a script except for my crankiness about them. 🙂


quote

Same issue with keeping all styles in sync and intact, I would think. If the book is COLORS-ON, COLORS-OFF and MASTER PARENT, syncing styles from the first two would overwrite any changes in the primary, much the same as just loading the styles as an isolated step. Perhaps a more "organic" approach, but same two limitations. Unless I'm missing something. [....]🙂


By @James Gifford—NitroPress

 

Two books:

 

Book-ON:

1st_file_ON - master for synchornisation - with colors-ON - no need for any Char/ParaStyles

Your_file - your document using colors defined in 1st file

 

Book-OFF:

1st_file_OFF - master for synchornisation - with colors-OFF - no need for any Char/ParaStyles

Your_file - your document using colors defined in 1st file

 

In the 1st_file_ON/OFF files - you would have colors with the same names - but in OFF they would be Black - and in ON - yellow/green/etc.

 

In your document - you would use those colors in the Styles you want to highlight.

 

When you open Book-ON - your document will use yellow/green/etc. colors in your Styles - "imported" from the "master" - 1st_file_ON file.

When you open Book-OFF - your document will use Black color in your Styles - "imported" from the "master" - 1st_file_OFF file.

 

 

It's like with WordPress - or any other CMS - you have your data in a database - but you can easily switch between Templates.

 

3 replies

Adobe Expert
May 8, 2024

James, is this a book or a single .indd file?

 

If a single file, why can't you save save two copies, one with the colors and one without and remove the content to remove confusion and just load the styles you need. You could do it with a keyboard shortcut. 

 

~Barb

 

James Gifford—NitroPress
Brainiac
May 15, 2024

And a late (postmortem) report back: while this method has promise, it's a wonky nightmare in real use. (Thanks again for the suggestion, though, @Barb Binder !)

 

I was doing a major edit of a book and using the style highlighting system mentioned to keep easy visual track of where the special styles are applied (they are visually identical to the base styles). I started by creating the two "style change" files, with no content, and the relevant paragraph styles assigned to use the highlight color in one version, and shed it in the other. Tests worked fine.

 

However, on moving forward, I had the common issue of needing to tweak styles in the work document. So to keep the style-load from reverting these changes, I stripped each to just the affected styles.

 

Which lost me a day of work when I discovered the fault in this approach by stepping in it. Some of the "switched" styles are dependent/children of styles that are not highlighted... so I left the parent styles out of the format documents. Which means that when I loaded, say, the "no highlight" version, the child styles were no longer properly anchored to the parents, even though those styles were in the master document. The link broke at some point in the import/update process.

 

So this method would work as long as (1) no styles are changed in the work document without somehow updating them in the two format docs as well, and (2) any weeding of the styles in the format docs is done with a very, very careful eye to parent/child hierarchies... which in most documents means few styles could actually be deleted.

 

Good idea, too fragile for use except in those very narrow conditions. Oh, well.

 

So my conclusion is that no, there is no way to do this "switch" using any combination of ID native features. One of those things that seems to be accessible and trivial and turns out to have a bad case of "Ya can't get there from here, buddy!" 🙂

 

A script could do it easily, I think. Maybe I'll draft a functional description and ask real nice.

Robert at ID-Tasker
Brainiac
May 15, 2024

@James Gifford—NitroPress

 

How about my Book idea?

 

You wouldn't have this problem - as you would be only "using" colors from the "color template" file - and working on your original file.

 

So any changes to the styles - are always made in your main file. 

 

Kind of importing same data - using different templates. 

 

Robert at ID-Tasker
Brainiac
May 7, 2024

@James Gifford—NitroPress 

 

I'm not sure I follow?

 

Do you need to see different texts - in the same place? Because setting color to "[None]" will still leave an empty space?

 

James Gifford—NitroPress
Brainiac
May 7, 2024

The text, and style, need to remain under all conditions. The only thing I am changing i n my method is the text outline, which as a faint 1pt tint works perfectly for my needs, and set to White/Paper effectively disappears.

 

The highlighting can/could be anything, as long as it doesn't show on print/PDF export (or distort the text layout). But most forms need to be turned off before PDF export, lest they show, even as a faint haze around text.

 

They're completely irrelevant to the EPUB export.

 

I would like an easier way to toggle the highlighting on and off, between editing mode and PDF export mode, while preserving the multiple colors or variations (I need to know WHICH variant is applied, not just that ONE OF the variants is in play.)

 

A script to turn text shading on and off, setting it to specific faint values for 'on,' is the only solution that comes to mind, but it's not very flexible should I change my highlighted styles around.

 

Picture, thousand words, all that—

— I need this page to print exactly as-is to PDF, sans the color halos. But I need those halos during editing to make sure I have the correct styles applied. Some way to toggle this highlighting, as easily as possible, is what I'm after.

Robert at ID-Tasker
Brainiac
May 7, 2024

@James Gifford—NitroPress 

 

How about using BasedOn in styles - so one "master" style at the top = change in one place?

 

Or ... Book option?

 

brian_p_dts
Brainiac
May 7, 2024

Sounds like you might want to use Conditional Text?

James Gifford—NitroPress
Brainiac
May 7, 2024

Good shot; clean miss. 🙂 I already use CT for other purposes in this process. None of this text is conditional; it all needs to go into all exports. It also needs to be by style, not by manual application.