Reply to topic  [ 8 posts ] 
How to find m-dash without specific Character Style? 
Author Message

Joined: 2013-03-19 16:22:50
Posts: 68
Hi,
I've been puzzling over this one, reading in the power-find etc. , but can't figure it out.

It will be tricky to explain, here goes:

--I have about 3 thousand m-dashes in a 500 page book, and almost all have a character style that makes them Font X.
--The problem: a few times I forgot to add the character style. So there are a few dashes, here and there, that are original Font A, which is the same Font as the entire document (the whole body text).

Now: how can I easily select the handful of dashes with Font A, ie., where I forgot to apply Character Font X?

Tried:
--The logical thing would be 'Find' with 'attributes' checked -- but this doesn't work for the Font A dashes. I don't know why, perhaps it's a bug. Instead all of them get selected.
--I also tried the macro for selecting Font A, but that selects the whole document (except the Font X Characters), which is not what I need either.

So, to recap:
I need to select a specific character throughout my document, EXCEPT when that character has Character Style for "Font X" applied.

Suggestions?

Thanks
WF


2015-09-07 13:22:46
Profile

Joined: 2007-11-09 15:27:25
Posts: 86
Hi,
Do you want all m-dashes to have the same font/character style?
If so, can’t you simply find all m-dashes with Attribute Sensitive turned off—this will find all m-dashes—and then apply the font or character style?


2015-09-07 16:04:18
Profile

Joined: 2013-03-19 16:22:50
Posts: 68
jb wrote:
Hi,
Do you want all m-dashes to have the same font/character style?
If so, can’t you simply find all m-dashes with Attribute Sensitive turned off—this will find all m-dashes—and then apply the font or character style?


Short form:
Aha! Silly of me.

Long form:
I didn't notice this probably because I'm working on another book at the same time, and in that one I have a complicated split of the m-dashes and font types, so it wouldn't have worked there...but I don't need it there. :roll:

And as I look through this book I see that even italic and copyright pages etc. -- all use the same different font for the m-dash. So you're right, should work fine. Thanks...

WF


2015-09-07 17:38:40
Profile

Joined: 2012-12-19 05:02:52
Posts: 226
Hi WF,

If your final intention is to assign all Em Dashes the same style attribute (Font X), then just select all Em Dashes in the document and assign them the same style attribute, and you're done.

>I need to select a specific character throughout my document, EXCEPT when that character has Character Style for "Font X" applied.

You don't need this, unless you want to do this as a sort of academic exercise. If yes, then this is how you can do it.

1. Select one of the Em Dashes with the character style Font X
2. Execute the menu command "Select All Style" from Format > Character Style > Select All Style OR click on the small Character Style icon and choose "Select All" at the bottom of the menu

Attachment:
1.png
1.png [ 10 KiB | Viewed 1635 times ]

3. Now execute the menu command "Invert Selection" (Edit > Select > Invert Selection)
4. Every character in the document is now selected EXCEPT the Em Dashes with the character style Font X
5. Change the search scope in the Find Box from "Entire File" to "In Selection".
6. Enter Em Dash as search term in the Find Box, and click Find All.
7. This will find all Em Dashes with Font A, while excluding Em Dashes with Font X


2015-09-07 17:48:36
Profile

Joined: 2013-03-19 16:22:50
Posts: 68
Þorvarður wrote:
Hi WF,
3. Now execute the menu command "Invert Selection" (Edit > Select > Invert Selection)


Nice! Thanks.

And I'm doubly silly, because as I was working on this the thought crossed my mind briefly: "If there was an invert selection command like they have in graphics programs, I could do this." And assuming that there wasn't, I didn't even look for it. :oops:


2015-09-07 20:22:21
Profile

Joined: 2014-02-08 12:57:03
Posts: 170
Location: Australia
G’day, WF et al

Quote:
WF wrote: The logical thing would be 'Find' with 'attributes' checked -- but this doesn't work for the Font A dashes. I don't know why, perhaps it's a bug.


I find this curious, too.

I tried using PowerFind Pro to find font-specific em dashes, but with no success at first. It does find font-specific words composed of usual alphabetic characters. Normal Find does find font-specific em dashes. When I subsequently tried PowerFind Pro again (after the Normal Find test), it did find font-specific em dashes.

I think there is a bug here.

Cheers,
Adrian

_________________
MacBook Pro (mid-2014)
macOS Sierra 10.12.6
Nisus Writer user since 1996


2015-09-08 03:47:16
Profile

Joined: 2013-03-19 16:22:50
Posts: 68
adryan wrote:
G’day, WF et al
I tried using PowerFind Pro to find font-specific em dashes, but with no success at first. It does find font-specific words composed of usual alphabetic characters. Normal Find does find font-specific em dashes. When I subsequently tried PowerFind Pro again (after the Normal Find test), it did find font-specific em dashes.


Interesting, but I'm not sure what you mean by 'font-specific': do you mean you used a character style applied to m-dashes, specifying the font?

Or that it's just the base font for a Paragraph Style (like Normal), and it worked to find just those, by checking 'Attributes' in the Search?

This is what didn't work for me (the latter) because the result also flagged m-dashes that had another font applied as a Character Style, without differentiating the two types.

WF


2015-09-08 08:29:11
Profile

Joined: 2014-02-08 12:57:03
Posts: 170
Location: Australia
G'day, WF et al

I didn’t use styles as such. I had a “Lorem ipsum” document in one font, into which I inserted a number of em dashes, some of which I changed to another font directly.

Cheers,
Adrian

_________________
MacBook Pro (mid-2014)
macOS Sierra 10.12.6
Nisus Writer user since 1996


2015-09-08 13:25:03
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software