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

Toggle Text Highlighting?

  • May 7, 2024
  • 3 replies
  • 2006 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

Barb Binder
Community Expert
Community 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

 

~Barb at Rocky Mountain Training
James Gifford—NitroPress
Legend
May 8, 2024

Yes, single file. That's not a perfect[ly clean] solution but it's probably the most manageable overall, as long as I make sure to sync any style changes (not too many on this mature project).

 

Thx!

Robert at ID-Tasker
Legend
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
Legend
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
Legend
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
Community Expert
Community Expert
May 7, 2024

Sounds like you might want to use Conditional Text?

James Gifford—NitroPress
Legend
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.