SmokeWordStacks PL

For use with Adobe® InDesign® 2026 or higher.

SmokeWordStacks Logo

What is SmokeWordStacks?

SmokeWordStacks is a free script for Adobe InDesign that helps you identify and highlight word stacks in your documents. It is non-destructive: it marks the issues with frames on a separate layer.

Word stacks occur when identical words repeat vertically across lines of text, which can be distracting and visually unappealing in layout design.

This script helps designers quickly find and address these repetitions, ensuring a cleaner and more professional-looking document.

SmokeWordStacks is fully functional and free to use. However, it occasionally shows a donation reminder dialog. If you’d like to donate and suppress the dialog for a while, you can make a donation by using PluginInstaller.

Installing SmokeWordStacks PL

  1. Download, install and start PluginInstaller. Close InDesign. Clicking the following link will trigger PluginInstaller.
  2. Click this link to fetch SmokeWordStacks PL: SmokeWordStacks PL. Then click the Install… button, or click the … button to see all install options.
  3. Restart InDesign.

PluginInstaller installs the files for you. SmokeWordStacks.jsx and Copy Sample File with Documentation to Desktop.jsx appear in the User section of the InDesign Scripts panel (Window → Utilities → Scripts).

Alternatively, you can install this software directly from PluginInstaller. Select Available Software, then scroll through the list and/or use the Search box to locate SmokeWordStacks PL.

Using the Sample File

The InDesign Scripts panel also includes an entry called Copy Sample File with Documentation to Desktop.jsx.

Double-click this script to access a sample InDesign file containing a reusable sample configuration.

You can use this file to experiment with SmokeWordStacks and understand how it works.

You can ‘undo’ the effect of running the script by deleting the SmokeWordStacks Markers layer.

Donating

The script is free and fully functional, but donations are encouraged. When you run the script, it will occasionally show a reminder dialog.

To donate, find SmokeWordStacks PL in PluginInstaller’s Available Software list and use its donation option. Once the donation is activated, the reminder dialog stays away for a year.

Configuration

You can change the behavior of the script by modifying the configuration data in the text frame on the pasteboard.

INI configuration frame

The format is pretty self-explanatory; skip over this section if too much info.

The detailed TL;DR information for the formatting rules:

The text frame is formatted in a format similar to the old-style Windows INI format, with some additional flexibility built-in.

The advantages of this approach is that each document can ‘carry’ its own configuration and the configuration is plain for everyone to see, in a human-readable form, rather than being hidden away on some preferences dialog.

  • The information is spread over multiple paragraphs or lines.
  • There are two types of relevant lines: [SECTION] or name=value. Any lines that do not consist of either a name in square brackets or a name, an equal sign and a value are ignored.
  • The information within the square brackets (the SECTION) or information to the left of the equal signs should not be edited (the name).
  • The name to the left of the = are case-insensitive and only letters a-z and digits 0-9 are taken into account. Names like abc, a B c, or A'b'c are all interpreted as the same thing – abc
  • The information to the right of the equal signs can be freely edited
  • By default, leading and trailing spaces are ignored.
    someData =some Value
    someData=       some Value
          someData      =        some Value

    are all equivalent – they all mean someData="some Value"

  • Quotes can be used to express leading or trailing spaces. Curly quotes are seen as equivalent to regular quotes.
    someData = "  some Value  "
    someData= “  some Value  ”

    both indicate that someData="  some Value  " including the leading and trailing spaces.

  • Numeric values can have units and the script will auto-convert between units as needed. If the horizontal unit is cm and the label frame width is written as 1 inch, the width will automatically be interpreted as 2.54 cm

Description of the options

The INI data contains two or more sections. There is a section [main] which is a ‘template’ for the other sections.

Then there are one or more sections [profile: SomeProfileName] which are provided as options when the script is run.

Each of these sections starts out identical to [main]  but with some individual settings overridden.

horizontal position tolerance

How far to the left or the right can the text on the second line shift and still be recognized as a ‘stack’. Can include measurement unit in the setting (e.g. “30 pt”).

For words at the begin or end of the line we can optionally set a separate tolerance: the eye might pick these up easier than words in the middle of the line – see at end of line horizontal position tolerance and at begin of line horizontal position tolerance. Similar also for hyphenation horizontal position tolerance

at end of line horizontal position tolerance

Optional. Set a separate tolerance at the end of the line: the eye might pick these up easier than words in the middle of the line. Can include measurement unit in the setting (e.g. “30 pt”).

at begin of line horizontal position tolerance

Optional. Set a separate tolerance at the beginning of the line: the eye might pick these up easier than words in the middle of the line. Can include measurement unit in the setting (e.g. “30 pt”).

hyphenation horizontal position tolerance

Optional. Set a separate tolerance for hyphenation stacks. Can include measurement unit in the setting (e.g. “30 pt”).

check in middle of line

Check in the middle of the line. Type a Yes or a No here.

check at begin of line

Check at the beginning of the line. Type a Yes or a No here.

check at end of line

Check at the end of the line. Type a Yes or a No here.

check for hyphenation stacks

The script can check for ‘hyphenation stacks’ – i.e. consecutive lines that end in hyphens. Set this to Yes if you want to find such stacks.

case sensitive

The script will ignore case differences when you set this to No, e.g. “The” and “the” would be considered equivalent. Probably you want to leave this at Yes for most purposes.

ignore non letters

The script can ignore non-letters. Normally, you want this set to No for most purposes.

check whole words

Whether to only compare whole words vs. segments within words. Type a Yes or a No here.

num letters to overlap

Leave this empty, or set to 0, to check for whole words only. Set this to a value (e.g. 3) to check for overlap at the end or beginning of a word. E.g. numLettersToOverlap = 3 would consider ‘mondrian’ and ‘monday’ (mon…) as overlaps, as well as ‘overuse’ and ‘mouse’ (…use).

Marker Options

The following settings affect the markers that are created to point out the issues.

marker layer name

SmokeWordStacks adds a layer with markers. This setting allows you to change the name of that layer. The default is SmokeWordStacks Markers.

text stack marker color name, text stack marker RGB values, text stack marker fill opacity

These settings affect the color and opacity of the markers used for text stacks

The RGB values are between 0 and 255 and are comma-separated

The opacity is a value 0 – 100

hyphenation stack marker color name, hyphenation stack marker RGB values, hyphenation stack marker fill opacity

These settings affect the color and opacity of the markers used for hyphenation stacks

The RGB values are between 0 and 255 and are comma-separated

The opacity is a value 0 – 100

Version history

Version 2.0.8: October 20, 2026

  • Updated to the latest CRDT_ES

Version 2.0.6: April 20, 2026

  • Updated to the latest CRDT_ES

Version 2.0.5: June 25, 2024

  • Updated to the latest CRDT_ES

Version 2.0.4: June 26, 2024

  • Updated to CRDT_ES 0.1.2

Version 2.0.3: June 21, 2024

  • Instead of using character styles, now uses a separate layer with markers to indicate where the problems are.

Version 2.0.2: June 9, 2024

  • Improved sample document

Version 2.0.1: June 1, 2024

  • Bug fix: an unspecified atEndOfLineHorizontalPositionTolerance, atBeginOfLineHorizontalPositionTolerance,  hyphenationHorizontalPositionTolerance did not automatically default to the value of horizontalPositionTolerance.

Version 2.0.0: May 30, 2024

  • Bug fix: if a particular word was repeated on a line, the stack detection could fail.
  • Converted to use PluginInstaller.