Thank you for this. It seems very interesting, and it's the kind of script I would be happy to use, at least if I developed it myself.
I confess I'm not confident enough to use it now in real work situation. I still prefer manual final check…
Please test the script and let me know what you think.
I read your script, even if I don't know the programming language, and I really appreciate how well you comment it.
Some remarks:
- I wonder why fr-BE Hyphenation language is not included in HYPH_IDS? It seems to work as well as fr-FR.
- I also wonder what happens for texts with multiple languages used in a paragraph.
- If the Text Frame created with the notes outside the page had a filled background, it would be easier to read.
- Settings are kept for a document but only once the script has been applied. Before that I had many times to cancel the script dialog, check or modify something, then set everything again. The same happens when I use a new file. I think I'd prefer to have persistent settings until it's changed…
- For long texts, it's difficult to know which paragraphs have been modified.
Then I tested the script on an old file where I already did a global manual justification (with a result I'm quite satisfied with. By this test, I just wanted to see if there were some "errors" I missed).
My main settings were:

When I run the script on the whole document, I get the result here under.
Actually, I don't understand what I should do with that.
I also wonder how my preferred justification settings (mostly the normal word spacing set to 75%) are taken in account by the script. (I've seen I could change it myself in lines 122-125.)
Justify Polish: values for the text style »Corps de texte«
02.11.2026 13:33 · spacing Automatic (per paragraph) · v1.0
Spacing chosen per paragraph: Strict 1
For the text style by hand, "Strict" fits best (used most):
• Alignment: Justify Left
• Minimum / Desired / Maximum Word Spacing: 85 % / 100 % / 120 %
• Minimum / Desired / Maximum Letter Spacing: -1 % / 0 % / 2 %
• Use auto-hyphenation: on
• Max Consecutive Hyphens: 3
• Hyphenation Language: French (for text without one)
• Prevent widowed last lines: on
• Prevent orphaned first lines: on
• Optical Alignment: on
The other strengths:
• Normal: 80 % / 100 % / 133 % | -2 % / 0 % / 4 %
• Relaxed: 70 % / 90 % / 125 % | -4 % / 0 % / 8 %
Rivers after setting: 0
This note lies outside the page and is not printed.
Display More
Thereafter, I gave it another try, with a fresh text without any prior treatment. There the script did some (welcome) changes.
My prime opinion is that it's a good script for someone who would not modify by himself the Justification settings. I'm not so sure for someone more experienced.
This all being said very respectfully for all the work provided, and only after a short trial.