Of course you can do this, but you may need to be a bit careful.
Generally Nisus has commands to change formatting like:
as it's described in the reference. So if you have everything selected and use
Then all bold is removed from your document. Interestingly enough this will even apply to the Bold that is applied through styles. It seems Nisus adds an "Unbold" attribute to those sections.
In the same way you should be able to use
Where the "0" stands for no underline. If the underline was applied directly this will remove it. If the underline was applied with a style it will 'cover it' with a 'no underline' attribute.
Then you say you want to "remove the text color".Of course there always has to be some text color. I guess most people consider "black" the default. The command Set Text Color
requires a color argument. I can't see a way to say "none".
Code: Select all
$black = Color.black
Set Text Color $black
Again if the color is applied via a style this will 'hide' the color by applying black over it.
Finally removing character styles: First select all in the style and the use "Remove Character Styles". For example you can select all in the style using Find
. In that case it's a good idea to use a test to make sure you only remove the style in case some was found.
Code: Select all
if Find All $doc.styleWithName 'Hyperlink'
Remove Character Styles
[NB: I'm assuming you have set $doc to the the current document.]
Finally for the paragraph spacing you will have to know more specifically how you want to change it. There are command to set the spacing before and after, but the line height will have to be set using the menu formatting.
Finally remember that you can also reapply paragraph styles in order to enforce the default formatting as another way to clean up applied attributes.