You have an InDesign document with text formatted using styles, but some parts of the text show various attribute overrides or local formatting, highlighted by the plus sign (+) displayed next to the style name. Most overrides are deliberate and must be preserved, but we want to selectively suppress some of them, for example all occurrences of the “underlined ”local formatting overriding a given style sheet in the whole document. Of course it is possible to do a fastidious “Find-replace” based on attributes with repetitive use of the “Clear Overrides” command. But the Ukrainian designer Wadym Martynowski told me about a technique he developed:

  1. Select (or place the cursor in) some text with a paragraph style applied and some unwanted overridden attributes (causing the “+” to be displayed),
  2. Duplicate the applied paragraph style,
  3. Redefine the original style from selection to include the unwanted attribute (for example all the styled text becomes underlined),
  4. Delete the original style, replacing it with its copy kept without the unwanted attribute, this attribute then disappears everywhere the style is applied in the document,
  5. Rename the copy with the original style name.

perfectionist of styles 004en 01 12So this new script is the automated version of this process. But this automation wasn’t easy[1], I received help from Uwe Laubender, Timothy Ariel Walden and especially Kasyan Servetsky to solve some problems actually caused by a bug in Russian-localized InDesign versions. Then I also worked further on improving it for some specific cases submitted to me by Wadym, where some unwanted replacements were not suppressed neither with the manual method nor with its equivalent scripted version, or where it suppressed replacements that should be preserved (such as a “bold” attribute applied using a character style causing the overridden “bold” attributes to disappear elsewhere). I also included the equivalent routine for character styles. In this final release some limitations remain eventually: for example in the case where the overrides affect both a paragraph style and a character style simultaneously applied to the selected text, it turns out sometimes (for example when the weight matches neither the paragraph style nor the character style) impossible to eradicate the unwanted attribute for all the occurrences of the paragraph style, but only for the character style.

The examples showed here are the “underlined” and other visible attributes in order to provide a more explicit demonstration, but sometimes we want to suppress some invisible replacements affecting unused attributes (drop-cap alignment/scale parameters in a style without drop-cap, new parameter from CC 2015 version “paragraph shading color”, affected by a default value although unchecked when opening a document saved in an older version, advanced undocumented OpenType parameters such as “IdeoSpaceBehavior”) nevertheless causing a “+” sign to be displayed, irritating for meticulous designers like Wadym Martynowski or me, hence the name of this script “perfectionist-of-styles”.

[1] Since the “Redefine style” command has no equivalent in the InDesign ExtendScript API, we need to simulate the manual selection of this command from the menus of the user interface, by invoking a “MenuAction”.

Add comment

Comments   
Charissa
0 # Charissa 2021-01-23 19:43
I savor, cause I discovered exactly what I used to be having a look for.
You've ended my four day long hunt! God Bless you man. Have a
nice day. Bye

My blog: Edwardo: http://cadetmove.ru/user/Casimira1277/
Reply
Faustino
0 # Faustino 2021-01-23 19:21
Whats up this is kinda of off topic but I was wondering if blogs
use WYSIWYG editors or if you have to manually code with
HTML. I'm starting a blog soon but have no coding skills so I wanted to get advice from someone
with experience. Any help would be enormously appreciated!


Have a look at my homepage; Roxanne: http://www.1z2te.cn/space-uid-42980.html
Reply
June
0 # June 2021-01-23 19:11
Write more, thats all I have to say. Literally, it seems as
though you relied on the video to make your point. You obviously know what
youre talking about, why waste your intelligence
on just posting videos to your blog when you could be giving us
something enlightening to read?

Feel free to surf to my blog post :: Shanna: https://wikidiversity.org/wiki/User:PeggyMacFarland
Reply
Aja
0 # Aja 2021-01-23 18:29
Its like you learn my mind! You seem to understand a lot about this,
like you wrote the ebook in it or something. I feel that you simply could do with a
few percent to drive the message home a little bit, however instead
of that, this is magnificent blog. A fantastic read. I will certainly be back.


my webpage - Cecelia: https://muchocacharro.com/members/chadwickco.6072/
Reply
Trisha
0 # Trisha 2021-01-23 18:12
If you desire to grow your experience only keep visiting this site and be updated with the most up-to-date gossip posted here.


Also visit my web page :: Kellie: http://ilvermornyschool.com/mybb/member.php?action=profile&uid=660
Reply
Laurene
0 # Laurene 2021-01-23 18:08
Hi there, I found your web site via Google even as looking
for a similar matter, your website came up, it seems to be great.
I have bookmarked it in my google bookmarks.
Hi there, just was alert to your weblog through Google,
and found that it's really informative. I'm going to watch out
for brussels. I will appreciate when you continue this
in future. Numerous folks will probably
be benefited out of your writing. Cheers!

Check out my blog post ... Tawnya: http://hairtherapy.ru/user/WSVJung10635/
Reply
Jodie
0 # Jodie 2021-01-23 16:30
Fantastic goods from you, man. I have take into account your stuff prior to and you're simply extremely great.
I really like what you've acquired right here, really like what you're saying
and the way during which you say it. You make it
entertaining and you continue to take care of to keep it smart.
I can not wait to read far more from you. This is really
a wonderful web site.

Look into my page: Swen: http://featur.vs120084.hl-users.com/bys/index.php?mod=users&action=view&id=970259
Reply
Shani
0 # Shani 2021-01-23 15:12
Please let me know if you're looking for a author for your site.

You have some really great articles and I believe I would be a good asset.
If you ever want to take some of the load off, I'd
love to write some articles for your blog in exchange for a
link back to mine. Please send me an email if interested.
Thank you!

Also visit my page - Sharyl: http://forum.yiffalicious.com/profile/carsonpawl
Reply
Glenn
0 # Glenn 2021-01-23 13:51
What's up mates, nice article and fastidious urging commented at this place, I am truly enjoying by
these.

Check out my webpage :: Laurene: https://www.surya-aji.org/wiki/User:NolaMarmon03
Reply
Shay
0 # Shay 2021-01-23 13:03
Greetings! Very helpful advice within this article!
It's the little changes that will make the biggest changes.
Thanks a lot for sharing!

Here is my web blog Jeramy: http://schlucke.bplaced.net/kckk/member.php?action=profile&uid=914904
Reply
Deanne
0 # Deanne 2021-01-23 12:51
Good post. I learn something new and challenging
on sites I stumbleupon every day. It will always be exciting to read
articles from other authors and use a little something from
other sites.

Also visit my web page; Wyatt: http://n707170c.beget.tech/user/Lena05W35632/
Reply
Penni
0 # Penni 2021-01-23 12:20
I am truly grateful to the owner of this web site who has shared this
great article at here.

my web page - Cyril: https://designpatterns.wiki/article/User:WalkerMacarthur
Reply
Lizzie
0 # Lizzie 2021-01-23 11:44
I am not sure where you're getting your information, but good topic.

I needs to spend some time learning more or understanding
more. Thanks for magnificent info I was looking for this information for my mission.

Review my web blog ... Dorothea: https://forum.adultscriptpro.com/profile.php?id=207189
Reply
Brittny
0 # Brittny 2021-01-23 11:42
Oh my goodness! Amazing article dude! Thank you
so much, However I am experiencing difficulties with your RSS.

I don't understand why I cannot subscribe to it. Is there anybody else getting the same RSS issues?

Anybody who knows the answer can you kindly respond?
Thanks!!

Look into my homepage ... Myron: https://www.sekasao.go.th/sekaforum/profile.php?id=300443
Reply
Cooper
0 # Cooper 2021-01-23 00:05
Hey There. I found your blog using msn. This is a really
well written article. I'll be sure to bookmark it and return to read more of your useful
info. Thanks for the post. I will certainly comeback.



Feel free to visit my webpage; Sidney: http://wiki.feedle.net/index.php?title=Le_Ottimali_App_Android_Gratis
Reply
Cliff
0 # Cliff 2021-01-22 23:21
If some one wishes expert view regarding blogging then i recommend him/her to
pay a quick visit this weblog, Keep up the
nice work.

Stop by my website: Candice: http://sevastopolkino.ru/user/LizetteBown/
Reply
Laurie
0 # Laurie 2021-01-21 18:28
how much is [spam] generic
buy [spam] online in india http://viagarajjq.com/ - [spam] uk
otc
where can i get [spam] online buy
generic [spam]: http://viagarajjq.com/
buy [spam] discount
Reply

Follow Scriptopedia to Social Network

Scriptopedia sur facebook

About Scriptopedia.org

An original idea from Loic Aigon, designed by Eddy.VH. It 's a scripts library for Desktop Publishing Adobe products. Find Javascript for Photoshop, Illustrator, inDesign and Acrobat or ATN scripts ( Photoshop actions ) you need.