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:
- Select (or place the cursor in) some text with a paragraph style applied and some unwanted overridden attributes (causing the “+” to be displayed),
- Duplicate the applied paragraph style,
- Redefine the original style from selection to include the unwanted attribute (for example all the styled text becomes underlined),
- 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,
- Rename the copy with the original style name.
So 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”.
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/
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
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
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/
Also visit my web page :: Kellie: http://ilvermornyschool.com/mybb/member.php?action=profile&uid=660
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/
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
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
these.
Check out my webpage :: Laurene: https://www.surya-aji.org/wiki/User:NolaMarmon03
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
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/
great article at here.
my web page - Cyril: https://designpatterns.wiki/article/User:WalkerMacarthur
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
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
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
pay a quick visit this weblog, Keep up the
nice work.
Stop by my website: Candice: http://sevastopolkino.ru/user/LizetteBown/
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
RSS feed for comments to this post