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   
Tory
0 # Tory 2020-11-23 10:48
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 click to read more: https://1bankir.ru/user/FreemanFogg391/ your weblog when you
could be giving us something informative to read? my latest blog post: http://bestdeals.qhub.com/member/2134463 pop over to this web-site: https://forum.broadcasters-complain.net/profile.php?id=186768 check my reference: https://agile.kiwi/index.php?title=Generic_Viagra_Canada_56942 great site: https://www.readysetassist.org/wiki/index.php?title=Purchase_Viagra_Online_94353 look here: https://btmi.mobyte.org/index.php/Cost_Of_Viagra_58647 official statement: https://wiki506.buildtools.com/index.php/Cost_For_Generic_Sildenafil_17227 hop over to this web-site: https://multi.wiki/index.php/Online_Pharmacy_Viagra_40994 learn the
facts here now: https://www.art2dec.co/mediawiki/Online_Pharmacy_Viagra_15729 web: https://wiki.smawidyanusantara.sch.id/index.php/Cheapest_Generic_Viagra_72856 click here for more: https://support.sportssites.us/index.php?title=User:JonnieOldham0 go to the website: http://wiki.feedle.net/index.php?title=User:BobbyWitzel4458 useful site: https://porno365.su/user/LoriMurakami/
click for more: http://wiki.feedle.net/index.php?title=User:JamelKeenan5349 visit their website: https://ultrapedia.org/wiki/index.php/Online_Viagra_Prescription_47697 this: https://ffxiv-knights-ivalice.org/index.php?title=Viagra_100mg_50211
Reply
Josefina
0 # Josefina 2020-11-23 02:15
I am regular visitor, how are you everybody? This paragraph posted at pop over to this site: http://www.l2monkey.com/forum/index.php?topic=515088.0 site is actually nice.
the original source: https://exalted.mushhaven.com/index.php?title=Cheap_Viagra_Online_13567 pop over to these
guys: http://moonandcactus.org/mediawiki/index.php/User:ErnestineZ35 Extra resources: https://x4wiki.grayghostindustries.com/index.php?title=User:NZZMelisa82
here: https://codigodeltrabajo.com/index.php?title=Viagra_Without_Doctor_Prescription_88611 like this: https://aarth-codex.com/index.php/User:AlexandraLozano her comment is here: http://tianwei.lineage888.cc/home.php?mod=space&uid=205256&do=profile&from=space
check out this site: https://multi.wiki/index.php/Viagra_Price_62313 More about
the author: http://waldseer-fasnachtswiki.de/index.php?title=Benutzer:RalfLfu1681139 official statement: http://supportwakefield.com/index.php/Buying_Generic_Viagra_Online_36705 pop over to this site: https://macymcadoo.org/index.php/User:Vito48C77710 try these out: https://multi.wiki/index.php/User:AntoineHennessy navigate to this website: https://wikicorp.org/index.php?title=User:Kassie5265 More
Info: https://multi.wiki/index.php/User:GertieBussey8 my website: https://screenplay.press/index.php?action=profile;u=94451 More
Bonuses: http://www.ffxiv-wiki.com/index.php?title=Viagra_Online_Cheap_35342
Reply
Christena
0 # Christena 2020-11-20 21:01
Thanks a lot, Helpful stuff!
Best Essay writing
essay helper: https://termpaperwriterservice.com
Reply
Devin
0 # Devin 2020-11-15 20:30
These are in fact impressive ideas in on the topic of blogging.
You have touched some pleasant points here.
Any way keep up wrinting.

My blog; look at
this site for more info: http://news.ezyget.com/884-sky777/profile
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.